136430Sbostic /* 2*61151Sbostic * Copyright (c) 1988, 1993 3*61151Sbostic * 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*61151Sbostic static char sccsid[] = "@(#)recv.c 8.1 (Berkeley) 06/04/93"; 1036430Sbostic #endif /* LIBC_SCCS and not lint */ 1136430Sbostic 1236430Sbostic #include <sys/types.h> 1336430Sbostic #include <sys/socket.h> 1436430Sbostic #include <stdio.h> 1536430Sbostic 1636430Sbostic recv(s, buf, len, flags) 1736430Sbostic int s, len, flags; 1846604Sbostic void *buf; 1936430Sbostic { 2036430Sbostic return(recvfrom(s, buf, len, flags, (struct sockaddr *)NULL, 0)); 2136430Sbostic } 22