diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-05-25 01:54:13 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-05-25 01:54:13 +0000 |
commit | 0f6c8d50a99997ac7829864b1c93362b50f1bbf3 (patch) | |
tree | d0cefe3a05484e65b7b7e79d8cae4a1d2e6d19fb /src/unix.h | |
parent | c1ef3e7103cc652d2004ef1ddc9409b946207f33 (diff) | |
download | luasocket-0f6c8d50a99997ac7829864b1c93362b50f1bbf3.tar.gz luasocket-0f6c8d50a99997ac7829864b1c93362b50f1bbf3.tar.bz2 luasocket-0f6c8d50a99997ac7829864b1c93362b50f1bbf3.zip |
Porting to LUA 5.0 final
Diffstat (limited to 'src/unix.h')
-rw-r--r-- | src/unix.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/unix.h b/src/unix.h deleted file mode 100644 index 863e478..0000000 --- a/src/unix.h +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | /*=========================================================================*\ | ||
2 | * Network compatibilization module: Unix version | ||
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 | |||
34 | #define COMPAT_FD int | ||
35 | #define COMPAT_INVALIDFD (-1) | ||
36 | |||
37 | #define compat_bind bind | ||
38 | #define compat_connect connect | ||
39 | #define compat_listen listen | ||
40 | #define compat_close close | ||
41 | #define compat_select select | ||
42 | |||
43 | #endif /* UNIX_H_ */ | ||