7 #include <sys/socket.h>
12 int threadedFileDescriptor(int fd);
13 int threadedSocket(int af, int type, int proto);
14 int threadedOpen(char* path, int flags, int mode);
15 int threadedConnect(int fd, struct sockaddr* addr, int len);
16 int threadedAccept(int fd, struct sockaddr* addr, int* len);
17 int threadedRead(int fd, char* buf, int len);
18 int threadedWrite(int fd, char* buf, int len);
20 #define threadedFileDescriptor(fd)
21 #define threadedRead(fd,buf,len) read(fd,buf,len)
22 #define threadedWrite(fd,buf,len) write(fd,buf,len)