aboutsummaryrefslogtreecommitdiff
path: root/src/usocket.h
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2003-05-25 01:54:13 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2003-05-25 01:54:13 +0000
commit0f6c8d50a99997ac7829864b1c93362b50f1bbf3 (patch)
treed0cefe3a05484e65b7b7e79d8cae4a1d2e6d19fb /src/usocket.h
parentc1ef3e7103cc652d2004ef1ddc9409b946207f33 (diff)
downloadluasocket-0f6c8d50a99997ac7829864b1c93362b50f1bbf3.tar.gz
luasocket-0f6c8d50a99997ac7829864b1c93362b50f1bbf3.tar.bz2
luasocket-0f6c8d50a99997ac7829864b1c93362b50f1bbf3.zip
Porting to LUA 5.0 final
Diffstat (limited to 'src/usocket.h')
-rw-r--r--src/usocket.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/usocket.h b/src/usocket.h
new file mode 100644
index 0000000..f124bce
--- /dev/null
+++ b/src/usocket.h
@@ -0,0 +1,39 @@
1/*=========================================================================*\
2* Socket compatibilization module for Unix
3*
4* RCS ID: $Id$
5\*=========================================================================*/
6#ifndef UNIX_H
7#define UNIX_H
8
9/*=========================================================================*\
10* BSD include files
11\*=========================================================================*/
12/* error codes */
13#include <errno.h>
14/* close function */
15#include <unistd.h>
16/* fnctnl function and associated constants */
17#include <fcntl.h>
18/* struct timeval and CLK_TCK */
19#include <sys/time.h>
20/* times function and struct tms */
21#include <sys/times.h>
22/* struct sockaddr */
23#include <sys/types.h>
24/* socket function */
25#include <sys/socket.h>
26/* gethostbyname and gethostbyaddr functions */
27#include <netdb.h>
28/* sigpipe handling */
29#include <signal.h>
30/* IP stuff*/
31#include <netinet/in.h>
32#include <arpa/inet.h>
33
34typedef int t_sock;
35typedef t_sock *p_sock;
36
37#define SOCK_INVALID (-1)
38
39#endif /* UNIX_H */