source: rtems-libbsd/rtemsbsd/include/machine/rtems-bsd-syscall-api.h @ 08264c8

4.1155-freebsd-126-freebsd-12freebsd-9.3
Last change on this file since 08264c8 was 08264c8, checked in by Sebastian Huber <sebastian.huber@…>, on 10/28/13 at 08:54:33

Use poll() from FreeBSD

  • Property mode set to 100644
File size: 3.2 KB
Line 
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/poll.h>
49#include <sys/select.h>
50#include <sys/socket.h>
51#include <sys/sysctl.h>
52
53__BEGIN_DECLS
54
55int pselect(int, fd_set *__restrict, fd_set *__restrict, fd_set *__restrict,
56        const struct timespec *__restrict, const sigset_t *__restrict);
57
58int     select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
59
60int     accept(int, struct sockaddr * __restrict, socklen_t * __restrict);
61
62int     bind(int, const struct sockaddr *, socklen_t);
63
64int     connect(int, const struct sockaddr *, socklen_t);
65
66int     getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict);
67
68int     getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict);
69
70int     getsockopt(int, int, int, void * __restrict, socklen_t * __restrict);
71
72int     listen(int, int);
73
74int     poll(struct pollfd _pfd[], nfds_t _nfds, int _timeout);
75
76ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict);
77
78ssize_t recvmsg(int, struct msghdr *, int);
79
80ssize_t sendto(int, const void *, size_t, int, const struct sockaddr *, socklen_t);
81
82ssize_t sendmsg(int, const struct msghdr *, int);
83
84int     setsockopt(int, int, int, const void *, socklen_t);
85
86int     shutdown(int, int);
87
88int     socket(int, int, int);
89
90int     sysctl(int *, u_int, void *, size_t *, void *, size_t);
91
92int     sysctlbyname(const char *, void *, size_t *, void *, size_t);
93
94int     sysctlnametomib(const char *, int *, size_t *);
95
96__END_DECLS
97
98#endif /* _RTEMS_BSD_MACHINE_RTEMS_BSD_SYSCALL_API_H_ */
Note: See TracBrowser for help on using the repository browser.