Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_tlsv12/sys/src/ape/lib/bsd/send.c – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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