diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-05-27 04:44:01 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-05-27 04:44:01 +0200 |
commit | a0e0e9898a7c1abeb4dbf6ba188a9bcaf523e003 (patch) | |
tree | 0c2051ecd915712ef5ca4f47feb89b47394c33a9 /src/poll.c | |
parent | 556284a10e482027f741f9afe6cbaa1b4e2207f8 (diff) | |
download | fastd-a0e0e9898a7c1abeb4dbf6ba188a9bcaf523e003.tar fastd-a0e0e9898a7c1abeb4dbf6ba188a9bcaf523e003.zip |
More documentation
Diffstat (limited to 'src/poll.c')
-rw-r--r-- | src/poll.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -23,6 +23,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +/** + \file poll.h + + Portable polling API implementations +*/ + #include "poll.h" #include "async.h" @@ -90,6 +96,7 @@ static inline int handshake_timeout(void) { #include <sys/epoll.h> +/** Initializes the poll interface */ void fastd_poll_init(void) { ctx.epoll_fd = epoll_create1(0); if (ctx.epoll_fd < 0) @@ -103,6 +110,7 @@ void fastd_poll_init(void) { exit_errno("epoll_ctl"); } +/** Frees the poll interface */ void fastd_poll_free(void) { if (close(ctx.epoll_fd)) pr_warn_errno("closing EPOLL: close"); |