1*248eba16Smaya /* $NetBSD: accept4.c,v 1.2 2017/02/08 18:03:57 maya Exp $ */
2708af075Smaya
3708af075Smaya /*-
4708af075Smaya * Copyright (c) 2017 The NetBSD Foundation, Inc.
5708af075Smaya * All rights reserved.
6708af075Smaya *
7708af075Smaya * Redistribution and use in source and binary forms, with or without
8708af075Smaya * modification, are permitted provided that the following conditions
9708af075Smaya * are met:
10708af075Smaya * 1. Redistributions of source code must retain the above copyright
11708af075Smaya * notice, this list of conditions and the following disclaimer.
12708af075Smaya * 2. Redistributions in binary form must reproduce the above copyright
13708af075Smaya * notice, this list of conditions and the following disclaimer in the
14708af075Smaya * documentation and/or other materials provided with the distribution.
15708af075Smaya *
16708af075Smaya * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
17708af075Smaya * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18708af075Smaya * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19708af075Smaya * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
20708af075Smaya * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21708af075Smaya * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22708af075Smaya * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23708af075Smaya * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24708af075Smaya * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25708af075Smaya * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26708af075Smaya * POSSIBILITY OF SUCH DAMAGE.
27708af075Smaya */
28708af075Smaya
29708af075Smaya #include <sys/cdefs.h>
30*248eba16Smaya __RCSID("$NetBSD: accept4.c,v 1.2 2017/02/08 18:03:57 maya Exp $");
31708af075Smaya
32708af075Smaya #include "namespace.h"
33708af075Smaya #include <sys/socket.h>
34708af075Smaya
35708af075Smaya #include <stddef.h>
36708af075Smaya
37708af075Smaya int
accept4(int s,struct sockaddr * restrict addr,socklen_t * restrict addrlen,int flags)38708af075Smaya accept4(int s, struct sockaddr * restrict addr, socklen_t * restrict addrlen,
39708af075Smaya int flags)
40708af075Smaya {
41708af075Smaya return paccept(s, addr, addrlen, NULL, flags);
42708af075Smaya }
43