4 #include <netinet/in.h>
6 #include <proto/socket.h>
7 #include <proto/exec.h>
10 #define ioctl IoctlSocket
11 #define close CloseSocket
13 extern struct Library
* SocketBase
;
15 void aros_init_socket(void);
17 #define f_flag f_flags
18 #define f_favail f_ffree
19 /* we dont have these at all */
20 #define f_fsid f_spare[0]
21 #define f_frsize f_spare[0]
22 #define f_namemax f_spare[0]
24 #define POLLIN 0x0001 /* There is data to read */
25 #define POLLPRI 0x0002 /* There is urgent data to read */
26 #define POLLOUT 0x0004 /* Writing now will not block */
27 #define POLLERR 0x0008 /* Error condition */
28 #define POLLHUP 0x0010 /* Hung up */
29 #define POLLNVAL 0x0020 /* Invalid request: fd not open */
32 int fd
; /* file descriptor */
33 short events
; /* requested events */
34 short revents
; /* returned events */
37 #define poll(x, y, z) aros_poll(x, y, z)