blob: e46346a031ffa39193e9ffdeccaaa4f2b0bd6312 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/* posix */
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
/* bsd extensions */
#include <sys/uio.h>
#include <sys/socket.h>
#include "priv.h"
int
send(int fd, char *a, int n, int flags)
{
if(flags & MSG_OOB){
errno = EOPNOTSUPP;
return -1;
}
return write(fd, a, n);
}
int
recv(int fd, char *a, int n, int flags)
{
if(flags & MSG_OOB){
errno = EOPNOTSUPP;
return -1;
}
return read(fd, a, n);
}
|