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

55-freebsd-126-freebsd-12freebsd-9.3
Last change on this file since f0aaa04 was dd96574, checked in by Sebastian Huber <sebastian.huber@…>, on 11/16/15 at 08:51:44

SOCKETPAIR(2): Port to RTEMS

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