recvfrom.c 282 字节
Newer Older
R
Rich Felker 已提交
1 2 3 4 5 6 7 8
#include <sys/socket.h>
#include "syscall.h"
#include "libc.h"

ssize_t recvfrom(int fd, void *buf, size_t len, int flags, struct sockaddr *addr, socklen_t *alen)
{
	ssize_t r;
	CANCELPT_BEGIN;
9
	r = socketcall(recvfrom, fd, buf, len, flags, addr, alen);
R
Rich Felker 已提交
10 11 12
	CANCELPT_END;
	return r;
}