aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/mhd_itc.h
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-10-11 15:20:56 +0000
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-10-11 15:20:56 +0000
commit5688db4e34f1e0742a3c3cd714ea6f0e10799923 (patch)
tree1634c5303067a0082fda0a8ee6540b0fd494974d /src/microhttpd/mhd_itc.h
parent21ffb5e8420d6b4284932ae0eb6021f2118e21be (diff)
downloadlibmicrohttpd-5688db4e34f1e0742a3c3cd714ea6f0e10799923.tar.gz
libmicrohttpd-5688db4e34f1e0742a3c3cd714ea6f0e10799923.zip
Renamed 'MHD_pipe_' -> 'MHD_itc_init_'
Diffstat (limited to 'src/microhttpd/mhd_itc.h')
-rw-r--r--src/microhttpd/mhd_itc.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/microhttpd/mhd_itc.h b/src/microhttpd/mhd_itc.h
index d91ebccf..b41bfc33 100644
--- a/src/microhttpd/mhd_itc.h
+++ b/src/microhttpd/mhd_itc.h
@@ -55,9 +55,11 @@
55typedef int MHD_itc_; 55typedef int MHD_itc_;
56 56
57/** 57/**
58 * create pipe 58 * Initialise ITC by generating eventFD
59 * @param itc the itc to initialise
60 * @return non-zero if succeeded, zero otherwise
59 */ 61 */
60#define MHD_pipe_(itc) ((-1 == (itc = eventfd (0, EFD_CLOEXEC | EFD_NONBLOCK))) ? 0 : !0) 62#define MHD_itc_init_(itc) ((-1 == ((itc) = eventfd (0, EFD_CLOEXEC | EFD_NONBLOCK))) ? 0 : !0)
61 63
62/*** 64/***
63 * Get description string of last errno for pipe operations. 65 * Get description string of last errno for pipe operations.
@@ -134,9 +136,11 @@ struct MHD_Itc
134typedef struct MHD_Itc MHD_itc_; 136typedef struct MHD_Itc MHD_itc_;
135 137
136/** 138/**
137 * create pipe 139 * Initialise ITC by generating pipe
140 * @param itc the itc to initialise
141 * @return non-zero if succeeded, zero otherwise
138 */ 142 */
139#define MHD_pipe_(pip) (!pipe((pip).fd)) 143#define MHD_itc_init_(itc) (!pipe((itc).fd))
140 144
141/*** 145/***
142 * Get description string of last errno for pipe operations. 146 * Get description string of last errno for pipe operations.
@@ -211,9 +215,11 @@ struct MHD_Itc
211typedef struct MHD_Itc MHD_itc_; 215typedef struct MHD_Itc MHD_itc_;
212 216
213/** 217/**
214 * Create two connected sockets to emulate a pipe. 218 * Initialise ITC by generating socketpair
219 * @param itc the itc to initialise
220 * @return non-zero if succeeded, zero otherwise
215 */ 221 */
216#define MHD_pipe_(pip) MHD_socket_pair_((pip.fd)) 222#define MHD_itc_init_(itc) MHD_socket_pair_((itc).fd)
217 223
218/** 224/**
219 * Get description string of last pipe error 225 * Get description string of last pipe error