1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup rtems_bsd_machine |
---|
5 | * |
---|
6 | * @brief TODO. |
---|
7 | * |
---|
8 | * This file helps to ensure that the system calls match the user space |
---|
9 | * declaration. The user space declaration is normally not visible to the |
---|
10 | * kernel space due to the _KERNEL guard. |
---|
11 | */ |
---|
12 | |
---|
13 | /* |
---|
14 | * Copyright (c) 2013 embedded brains GmbH. All rights reserved. |
---|
15 | * |
---|
16 | * embedded brains GmbH |
---|
17 | * Dornierstr. 4 |
---|
18 | * 82178 Puchheim |
---|
19 | * Germany |
---|
20 | * <rtems@embedded-brains.de> |
---|
21 | * |
---|
22 | * Redistribution and use in source and binary forms, with or without |
---|
23 | * modification, are permitted provided that the following conditions |
---|
24 | * are met: |
---|
25 | * 1. Redistributions of source code must retain the above copyright |
---|
26 | * notice, this list of conditions and the following disclaimer. |
---|
27 | * 2. Redistributions in binary form must reproduce the above copyright |
---|
28 | * notice, this list of conditions and the following disclaimer in the |
---|
29 | * documentation and/or other materials provided with the distribution. |
---|
30 | * |
---|
31 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND |
---|
32 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
---|
33 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
---|
34 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE |
---|
35 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
---|
36 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
---|
37 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
---|
38 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
---|
39 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
---|
40 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
---|
41 | * SUCH DAMAGE. |
---|
42 | */ |
---|
43 | |
---|
44 | #ifndef _RTEMS_BSD_MACHINE_RTEMS_BSD_SYSCALL_API_H_ |
---|
45 | #define _RTEMS_BSD_MACHINE_RTEMS_BSD_SYSCALL_API_H_ |
---|
46 | |
---|
47 | #include <sys/cdefs.h> |
---|
48 | #include <sys/select.h> |
---|
49 | #include <sys/socket.h> |
---|
50 | |
---|
51 | __BEGIN_DECLS |
---|
52 | |
---|
53 | int pselect(int, fd_set *__restrict, fd_set *__restrict, fd_set *__restrict, |
---|
54 | const struct timespec *__restrict, const sigset_t *__restrict); |
---|
55 | |
---|
56 | int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); |
---|
57 | |
---|
58 | int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); |
---|
59 | |
---|
60 | int bind(int, const struct sockaddr *, socklen_t); |
---|
61 | |
---|
62 | int connect(int, const struct sockaddr *, socklen_t); |
---|
63 | |
---|
64 | int getsockopt(int, int, int, void * __restrict, socklen_t * __restrict); |
---|
65 | |
---|
66 | int listen(int, int); |
---|
67 | |
---|
68 | int setsockopt(int, int, int, const void *, socklen_t); |
---|
69 | |
---|
70 | int shutdown(int, int); |
---|
71 | |
---|
72 | int socket(int, int, int); |
---|
73 | |
---|
74 | __END_DECLS |
---|
75 | |
---|
76 | #endif /* _RTEMS_BSD_MACHINE_RTEMS_BSD_SYSCALL_API_H_ */ |
---|