1 2 3 4 5 6 7 8 9 10 11
/* * recv.c */ #include <stddef.h> #include <sys/socket.h> int recv(int s, void *buf, size_t len, unsigned int flags) { return recvfrom(s, buf, len, flags, NULL, 0); }