4.4BSD snapshot (revision 8.1); add 1993 to copyright
[unix-history] / usr / src / lib / libc / net / recv.c
CommitLineData
14d1aea4 1/*
67039e6d
KB
2 * Copyright (c) 1988, 1993
3 * The Regents of the University of California. All rights reserved.
14d1aea4 4 *
269a7923 5 * %sccs.include.redist.c%
14d1aea4
KB
6 */
7
8#if defined(LIBC_SCCS) && !defined(lint)
67039e6d 9static char sccsid[] = "@(#)recv.c 8.1 (Berkeley) %G%";
14d1aea4
KB
10#endif /* LIBC_SCCS and not lint */
11
12#include <sys/types.h>
13#include <sys/socket.h>
14#include <stdio.h>
15
16recv(s, buf, len, flags)
17 int s, len, flags;
24fac7d8 18 void *buf;
14d1aea4
KB
19{
20 return(recvfrom(s, buf, len, flags, (struct sockaddr *)NULL, 0));
21}