/* posix */ #include #include #include #include /* bsd extensions */ #include #include #include "priv.h" int send(int fd, void *a, int n, int flags) { if(flags & MSG_OOB){ errno = EOPNOTSUPP; return -1; } return write(fd, a, n); } int recv(int fd, void *a, int n, int flags) { if(flags & MSG_OOB){ errno = EOPNOTSUPP; return -1; } return read(fd, a, n); }