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