]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/io.h
New configuration option "NoZeroConf" to disable ZeroConf registration
[ngircd-alex.git] / src / ngircd / io.h
index 10444872d3f1d461c102eb70f4fe8cad387fc98a..2f4c964551d31627ae8ba743b700378979d6cc9c 100644 (file)
@@ -7,10 +7,10 @@
  *
  * I/O abstraction interface header
  *
- * $Id: io.h,v 1.2 2005/07/09 20:22:29 fw Exp $
+ * $Id: io.h,v 1.4 2006/12/25 22:53:52 alex Exp $
  */
 
-#ifndef io_H_inclucded
+#ifndef io_H_included
 #define io_H_included
 
 #include "portab.h"
@@ -19,8 +19,9 @@
 #define IO_WANTREAD    1
 #define IO_WANTWRITE   2
 
-/* init library.  sets up epoll/kqueue descriptors and tries to allocate space for ioevlen file descriptors.
-   ioevlen is just the _initial_ size, not a limit. */
+/* init library.
+   sets up epoll/kqueue descriptors and tries to allocate space for ioevlen
+   file descriptors. ioevlen is just the _initial_ size, not a limit. */
 bool io_library_init PARAMS((unsigned int ioevlen));
 
 /* shutdown and free all internal data structures */
@@ -44,6 +45,9 @@ bool io_close PARAMS((int fd));
 /* set O_NONBLOCK */
 bool io_setnonblock PARAMS((int fd));
 
+/* set O_CLOEXEC */
+bool io_setcloexec PARAMS((int fd));
+
 /* watch fds for activity */
 int io_dispatch PARAMS((struct timeval *tv));