aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_socket.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2002-08-16 15:27:03 +0000
committerIgor Sysoev <igor@sysoev.ru>2002-08-16 15:27:03 +0000
commite0af1b89dcd100462a3195534b2f78a838ca85b5 (patch)
tree9c9eb63c71b13cc9159209e39eb099c54c6cb6b1 /src/os/unix/ngx_socket.h
parent0c331d9f666b4f9be91009b7caea457e58a80779 (diff)
downloadnginx-e0af1b89dcd100462a3195534b2f78a838ca85b5.tar.gz
nginx-e0af1b89dcd100462a3195534b2f78a838ca85b5.zip
nginx-0.0.1-2002-08-16-19:27:03 import
Diffstat (limited to 'src/os/unix/ngx_socket.h')
-rw-r--r--src/os/unix/ngx_socket.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/os/unix/ngx_socket.h b/src/os/unix/ngx_socket.h
new file mode 100644
index 000000000..18c07f9b0
--- /dev/null
+++ b/src/os/unix/ngx_socket.h
@@ -0,0 +1,16 @@
+#ifndef _NGX_SOCKET_H_INCLUDED_
+#define _NGX_SOCKET_H_INCLUDED_
+
+
+#include <ngx_config.h>
+
+
+typedef int ngx_socket_t;
+
+#define ngx_init_sockets
+
+#define ngx_nonblocking(s) fcntl(s, F_SETFL, O_NONBLOCK)
+#define ngx_nonblocking_n "fcntl (O_NONBLOCK)"
+
+
+#endif /* _NGX_SOCKET_H_INCLUDED_ */