xref: /csrg-svn/lib/libc/net/recv.c (revision 66182)
136430Sbostic /*
261151Sbostic  * Copyright (c) 1988, 1993
361151Sbostic  *	The Regents of the University of California.  All rights reserved.
436430Sbostic  *
542627Sbostic  * %sccs.include.redist.c%
636430Sbostic  */
736430Sbostic 
836430Sbostic #if defined(LIBC_SCCS) && !defined(lint)
9*66182Sbostic static char sccsid[] = "@(#)recv.c	8.2 (Berkeley) 02/21/94";
1036430Sbostic #endif /* LIBC_SCCS and not lint */
1136430Sbostic 
1236430Sbostic #include <sys/types.h>
1336430Sbostic #include <sys/socket.h>
1436430Sbostic 
15*66182Sbostic #include <stddef.h>
16*66182Sbostic 
17*66182Sbostic ssize_t
recv(s,buf,len,flags)1836430Sbostic recv(s, buf, len, flags)
19*66182Sbostic 	int s, flags;
20*66182Sbostic 	size_t len;
2146604Sbostic 	void *buf;
2236430Sbostic {
23*66182Sbostic 	return (recvfrom(s, buf, len, flags, NULL, 0));
2436430Sbostic }
25