luasocket/src/unix.h

39 lines
946 B
C
Raw Normal View History

2003-03-21 02:07:23 +01:00
#ifndef UNIX_H_
#define UNIX_H_
2002-07-08 22:14:09 +02:00
/*=========================================================================*\
* BSD include files
\*=========================================================================*/
/* error codes */
#include <errno.h>
/* close function */
#include <unistd.h>
/* fnctnl function and associated constants */
#include <fcntl.h>
/* struct timeval and CLK_TCK */
#include <sys/time.h>
/* times function and struct tms */
#include <sys/times.h>
/* struct sockaddr */
#include <sys/types.h>
/* socket function */
#include <sys/socket.h>
/* gethostbyname and gethostbyaddr functions */
#include <netdb.h>
/* sigpipe handling */
#include <signal.h>
2003-03-21 02:07:23 +01:00
/* IP stuff*/
2002-07-08 22:14:09 +02:00
#include <netinet/in.h>
#include <arpa/inet.h>
#define COMPAT_FD int
#define COMPAT_INVALIDFD (-1)
#define compat_bind bind
#define compat_connect connect
#define compat_listen listen
#define compat_close close
#define compat_select select
2003-03-21 02:07:23 +01:00
#endif /* UNIX_H_ */