chiark / gitweb /
Introduce setnonblock()
[secnet.git] / secnet.h
index 1bfe8a183d5a0becb31a6926558833014b79b2de..b2f6927af03ff29fd4d0c35482f84e245db25031 100644 (file)
--- a/secnet.h
+++ b/secnet.h
@@ -174,6 +174,7 @@ extern void *safe_realloc_ary(void *p, size_t size, size_t count,
                              const char *message);
 
 void setcloexec(int fd); /* cannot fail */
+void setnonblock(int fd); /* cannot fail */
 void pipe_cloexec(int fd[2]); /* pipe(), setcloexec() twice; cannot fail */
 
 extern int sys_cmd(const char *file, const char *argc, ...);