1*36430Sbostic /* 2*36430Sbostic * Copyright (c) 1988 The Regents of the University of California. 3*36430Sbostic * All rights reserved. 4*36430Sbostic * 5*36430Sbostic * Redistribution and use in source and binary forms are permitted 6*36430Sbostic * provided that the above copyright notice and this paragraph are 7*36430Sbostic * duplicated in all such forms and that any documentation, 8*36430Sbostic * advertising materials, and other materials related to such 9*36430Sbostic * distribution and use acknowledge that the software was developed 10*36430Sbostic * by the University of California, Berkeley. The name of the 11*36430Sbostic * University may not be used to endorse or promote products derived 12*36430Sbostic * from this software without specific prior written permission. 13*36430Sbostic * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 14*36430Sbostic * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 15*36430Sbostic * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16*36430Sbostic */ 17*36430Sbostic 18*36430Sbostic #if defined(LIBC_SCCS) && !defined(lint) 19*36430Sbostic static char sccsid[] = "@(#)recv.c 5.1 (Berkeley) 12/16/88"; 20*36430Sbostic #endif /* LIBC_SCCS and not lint */ 21*36430Sbostic 22*36430Sbostic #include <sys/types.h> 23*36430Sbostic #include <sys/socket.h> 24*36430Sbostic #include <stdio.h> 25*36430Sbostic 26*36430Sbostic recv(s, buf, len, flags) 27*36430Sbostic int s, len, flags; 28*36430Sbostic char *buf; 29*36430Sbostic { 30*36430Sbostic return(recvfrom(s, buf, len, flags, (struct sockaddr *)NULL, 0)); 31*36430Sbostic } 32