2 small tevent patches

Volker Lendecke Volker.Lendecke at SerNet.DE
Fri Dec 13 04:02:14 MST 2013


Hi!

Please review & push!

Thanks,

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
-------------- next part --------------
From 6cea65c7e86b83528068d3fcf71973f570d46f48 Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Fri, 13 Dec 2013 11:59:04 +0100
Subject: [PATCH 1/2] tevent: Add prototypes

... doxygen docs to be filled in :-)

Signed-off-by: Volker Lendecke <vl at samba.org>
---
 lib/tevent/tevent.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/tevent/tevent.h b/lib/tevent/tevent.h
index 0705ff3..3f8e081 100644
--- a/lib/tevent/tevent.h
+++ b/lib/tevent/tevent.h
@@ -340,6 +340,10 @@ struct tevent_signal *_tevent_add_signal(struct tevent_context *ev,
 			   #handler, __location__)
 #endif
 
+size_t tevent_num_signals(void);
+
+size_t tevent_sa_info_queue_count(void);
+
 #ifdef DOXYGEN
 /**
  * @brief Pass a single time through the mainloop
-- 
1.8.4.3


From 484841f45bb181fa7ad5409b8485428e28e9b917 Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Fri, 13 Dec 2013 11:59:43 +0100
Subject: [PATCH 2/2] tevent: Only build "std_fallback_to_poll" when epoll is
 around

Signed-off-by: Volker Lendecke <vl at samba.org>
---
 lib/tevent/tevent_standard.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/tevent/tevent_standard.c b/lib/tevent/tevent_standard.c
index 785d68d..a050901 100644
--- a/lib/tevent/tevent_standard.c
+++ b/lib/tevent/tevent_standard.c
@@ -54,6 +54,7 @@ static const struct tevent_ops std_event_ops = {
   Move us to using poll instead. If we return false here,
   caller should abort().
 */
+#ifdef HAVE_EPOLL
 static bool std_fallback_to_poll(struct tevent_context *ev, bool replay)
 {
 	void *glue_ptr = talloc_parent(ev->ops);
@@ -100,6 +101,7 @@ static bool std_fallback_to_poll(struct tevent_context *ev, bool replay)
 
 	return true;
 }
+#endif
 
 static int std_event_loop_once(struct tevent_context *ev, const char *location)
 {
-- 
1.8.4.3



More information about the samba-technical mailing list