recv.c revision 71579
162587Sitojun/* 291671Sume * Copyright (c) 1988, 1993 362587Sitojun * The Regents of the University of California. All rights reserved. 455009Sshin * 591671Sume * Redistribution and use in source and binary forms, with or without 655009Sshin * modification, are permitted provided that the following conditions 755009Sshin * are met: 891671Sume * 1. Redistributions of source code must retain the above copyright 991671Sume * notice, this list of conditions and the following disclaimer. 1091671Sume * 2. Redistributions in binary form must reproduce the above copyright 1191671Sume * notice, this list of conditions and the following disclaimer in the 1291671Sume * documentation and/or other materials provided with the distribution. 1391671Sume * 3. All advertising materials mentioning features or use of this software 1491671Sume * must display the following acknowledgement: 1591671Sume * This product includes software developed by the University of 1691671Sume * California, Berkeley and its contributors. 1791671Sume * 4. Neither the name of the University nor the names of its contributors 1891671Sume * may be used to endorse or promote products derived from this software 1955009Sshin * without specific prior written permission. 2091671Sume * 2191671Sume * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2291671Sume * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2355009Sshin * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2455009Sshin * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2591671Sume * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2655009Sshin * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2755009Sshin * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2855009Sshin * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2955009Sshin * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3055009Sshin * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3155009Sshin * SUCH DAMAGE. 3255009Sshin * 3355009Sshin * $FreeBSD: head/lib/libc/net/recv.c 71579 2001-01-24 13:01:12Z deischen $ 3455009Sshin */ 3555009Sshin 3691671Sume#if defined(LIBC_SCCS) && !defined(lint) 3791671Sumestatic char sccsid[] = "@(#)recv.c 8.2 (Berkeley) 2/21/94"; 3891671Sume#endif /* LIBC_SCCS and not lint */ 3991671Sume 4091671Sume#include "namespace.h" 4191671Sume#include <sys/types.h> 4291671Sume#include <sys/socket.h> 4391671Sume 4455009Sshin#include <stddef.h> 4555009Sshin#include "un-namespace.h" 4655009Sshin 4755009Sshinssize_t 4855009Sshinrecv(s, buf, len, flags) 4955009Sshin int s, flags; 5055009Sshin size_t len; 5155009Sshin void *buf; 5255009Sshin{ 5355009Sshin return (_recvfrom(s, buf, len, flags, NULL, 0)); 5455009Sshin} 5591671Sume