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

4.1155-freebsd-126-freebsd-12freebsd-9.3
Last change on this file since 6ffb9b9 was 6ffb9b9, checked in by Sebastian Huber <sebastian.huber@…>, on 10/11/13 at 12:48:13

Use shutdown() from FreeBSD

  • Property mode set to 100644
File size: 2.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/select.h>
49#include <sys/socket.h>
50
51__BEGIN_DECLS
52
53int pselect(int, fd_set *__restrict, fd_set *__restrict, fd_set *__restrict,
54        const struct timespec *__restrict, const sigset_t *__restrict);
55
56int     select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
57
58int     shutdown(int, int);
59
60int     socket(int, int, int);
61
62__END_DECLS
63
64#endif /* _RTEMS_BSD_MACHINE_RTEMS_BSD_SYSCALL_API_H_ */
Note: See TracBrowser for help on using the repository browser.