diff options
Diffstat (limited to 'system/include/sys')
-rw-r--r-- | system/include/sys/bitypes.h | 3 | ||||
-rw-r--r-- | system/include/sys/io.h | 14 | ||||
-rw-r--r-- | system/include/sys/ioctl.h | 78 | ||||
-rw-r--r-- | system/include/sys/poll.h | 31 | ||||
-rw-r--r-- | system/include/sys/select.h | 16 | ||||
-rw-r--r-- | system/include/sys/sendfile.h | 16 | ||||
-rw-r--r-- | system/include/sys/socket.h | 247 | ||||
-rw-r--r-- | system/include/sys/socketvar.h | 3 | ||||
-rw-r--r-- | system/include/sys/statvfs.h | 32 | ||||
-rw-r--r-- | system/include/sys/sysctl.h | 14 | ||||
-rw-r--r-- | system/include/sys/uio.h | 22 | ||||
-rw-r--r-- | system/include/sys/un.h | 66 |
12 files changed, 0 insertions, 542 deletions
diff --git a/system/include/sys/bitypes.h b/system/include/sys/bitypes.h deleted file mode 100644 index 88c62c0b..00000000 --- a/system/include/sys/bitypes.h +++ /dev/null @@ -1,3 +0,0 @@ - -#include <sys/types.h> - diff --git a/system/include/sys/io.h b/system/include/sys/io.h deleted file mode 100644 index 8caea237..00000000 --- a/system/include/sys/io.h +++ /dev/null @@ -1,14 +0,0 @@ - -#ifndef _SYS_IO_H -#define _SYS_IO_H - -#ifdef __cplusplus -extern "C" { -#endif - -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/system/include/sys/ioctl.h b/system/include/sys/ioctl.h deleted file mode 100644 index 047329cb..00000000 --- a/system/include/sys/ioctl.h +++ /dev/null @@ -1,78 +0,0 @@ -#ifndef _IOCTL_H -#define _IOCTL_H - -#ifdef __cplusplus -extern "C" { -#endif - -#define TIOCGSIZE 80 // bogus -#define TIOCGWINSZ 80 // bogus - -#define FIONREAD 1 -#define FIONBIO 2 - -int ioctl(int d, int request, ...); - -#define SO_RCVTIMEO 1000 -#define SO_SNDTIMEO 2000 - -#define SIOCADDRT 0x890B -#define SIOCDELRT 0x890C -#define SIOCRTMSG 0x890D -#define SIOCGIFNAME 0x8910 -#define SIOCSIFLINK 0x8911 -#define SIOCGIFCONF 0x8912 -#define SIOCGIFFLAGS 0x8913 -#define SIOCSIFFLAGS 0x8914 -#define SIOCGIFADDR 0x8915 -#define SIOCSIFADDR 0x8916 -#define SIOCGIFDSTADDR 0x8917 -#define SIOCSIFDSTADDR 0x8918 -#define SIOCGIFBRDADDR 0x8919 -#define SIOCSIFBRDADDR 0x891a -#define SIOCGIFNETMASK 0x891b -#define SIOCSIFNETMASK 0x891c -#define SIOCGIFMETRIC 0x891d -#define SIOCSIFMETRIC 0x891e -#define SIOCGIFMEM 0x891f -#define SIOCSIFMEM 0x8920 -#define SIOCGIFMTU 0x8921 -#define SIOCSIFMTU 0x8922 -#define SIOCSIFNAME 0x8923 -#define SIOCSIFHWADDR 0x8924 -#define SIOCGIFENCAP 0x8925 -#define SIOCSIFENCAP 0x8926 -#define SIOCGIFHWADDR 0x8927 -#define SIOCGIFSLAVE 0x8929 -#define SIOCSIFSLAVE 0x8930 -#define SIOCADDMULTI 0x8931 -#define SIOCDELMULTI 0x8932 -#define SIOCGIFINDEX 0x8933 -#define SIOGIFINDEX SIOCGIFINDEX -#define SIOCSIFPFLAGS 0x8934 -#define SIOCGIFPFLAGS 0x8935 -#define SIOCDIFADDR 0x8936 -#define SIOCSIFHWBROADCAST 0x8937 -#define SIOCGIFCOUNT 0x8938 -#define SIOCGIFBR 0x8940 -#define SIOCSIFBR 0x8941 -#define SIOCGIFTXQLEN 0x8942 -#define SIOCSIFTXQLEN 0x8943 -#define SIOCDARP 0x8953 -#define SIOCGARP 0x8954 -#define SIOCSARP 0x8955 -#define SIOCDRARP 0x8960 -#define SIOCGRARP 0x8961 -#define SIOCSRARP 0x8962 -#define SIOCGIFMAP 0x8970 -#define SIOCSIFMAP 0x8971 -#define SIOCADDDLCI 0x8980 -#define SIOCDELDLCI 0x8981 -#define SIOCDEVPRIVATE 0x89F0 -#define SIOCPROTOPRIVATE 0x89E0 - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/system/include/sys/poll.h b/system/include/sys/poll.h deleted file mode 100644 index 7521ed0e..00000000 --- a/system/include/sys/poll.h +++ /dev/null @@ -1,31 +0,0 @@ - -#ifndef _SYS_POLL_H -#define _SYS_POLL_H - -#ifdef __cplusplus -extern "C" { -#endif - -#define POLLIN 1 -#define POLLOUT 2 -#define POLLNVAL 4 -#define POLLERR 8 -#define POLLHUP 16 -#define POLLPRI 32 - -struct pollfd { - int fd; - short events; - short revents; -}; - -typedef unsigned int nfds_t; - -int poll(struct pollfd *data, nfds_t num, int extra); - -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/system/include/sys/select.h b/system/include/sys/select.h deleted file mode 100644 index d6957fea..00000000 --- a/system/include/sys/select.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef _SELECT_H -#define _SELECT_H - -#include <unistd.h> - -#ifdef __cplusplus -extern "C" { -#endif - -int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/system/include/sys/sendfile.h b/system/include/sys/sendfile.h deleted file mode 100644 index 1f58f0dd..00000000 --- a/system/include/sys/sendfile.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef _SYS_SENDFILE_H -#define _SYS_SENDFILE_H - -#include <sys/types.h> - -#ifdef __cplusplus -extern "C" { -#endif - -ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/system/include/sys/socket.h b/system/include/sys/socket.h deleted file mode 100644 index abc0aa62..00000000 --- a/system/include/sys/socket.h +++ /dev/null @@ -1,247 +0,0 @@ -#ifndef _SYS_SOCKET_H -#define _SYS_SOCKET_H - -#include <netdb.h> -#include <sys/select.h> -#include <sys/uio.h> -#include <unistd.h> - -#ifdef __cplusplus -extern "C" { -#endif - -#define SOCK_STREAM 1 -#define SOCK_DGRAM 2 -#define SOCK_RAW 3 -#define SOCK_RDM 4 -#define SOCK_SEQPACKET 5 -#define SOCK_DCCP 6 -#define SOCK_PACKET 10 -#define SOCK_CLOEXEC 02000000 -#define SOCK_NONBLOCK 04000 - -#define PF_UNSPEC 0 -#define PF_LOCAL 1 -#define PF_UNIX PF_LOCAL -#define PF_FILE PF_LOCAL -#define PF_INET 2 -#define PF_AX25 3 -#define PF_IPX 4 -#define PF_APPLETALK 5 -#define PF_NETROM 6 -#define PF_BRIDGE 7 -#define PF_ATMPVC 8 -#define PF_X25 9 -#define PF_INET6 10 -#define PF_ROSE 11 -#define PF_DECnet 12 -#define PF_NETBEUI 13 -#define PF_SECURITY 14 -#define PF_KEY 15 -#define PF_NETLINK 16 -#define PF_ROUTE PF_NETLINK -#define PF_PACKET 17 -#define PF_ASH 18 -#define PF_ECONET 19 -#define PF_ATMSVC 20 -#define PF_RDS 21 -#define PF_SNA 22 -#define PF_IRDA 23 -#define PF_PPPOX 24 -#define PF_WANPIPE 25 -#define PF_LLC 26 -#define PF_CAN 29 -#define PF_TIPC 30 -#define PF_BLUETOOTH 31 -#define PF_IUCV 32 -#define PF_RXRPC 33 -#define PF_ISDN 34 -#define PF_PHONET 35 -#define PF_IEEE802154 36 -#define PF_CAIF 37 -#define PF_ALG 38 -#define PF_NFC 39 -#define PF_MAX 40 - -#define AF_UNSPEC PF_UNSPEC -#define AF_LOCAL PF_LOCAL -#define AF_UNIX PF_UNIX -#define AF_FILE PF_FILE -#define AF_INET PF_INET -#define AF_AX25 PF_AX25 -#define AF_IPX PF_IPX -#define AF_APPLETALK PF_APPLETALK -#define AF_NETROM PF_NETROM -#define AF_BRIDGE PF_BRIDGE -#define AF_ATMPVC PF_ATMPVC -#define AF_X25 PF_X25 -#define AF_INET6 PF_INET6 -#define AF_ROSE PF_ROSE -#define AF_DECnet PF_DECnet -#define AF_NETBEUI PF_NETBEUI -#define AF_SECURITY PF_SECURITY -#define AF_KEY PF_KEY -#define AF_NETLINK PF_NETLINK -#define AF_ROUTE PF_ROUTE -#define AF_PACKET PF_PACKET -#define AF_ASH PF_ASH -#define AF_ECONET PF_ECONET -#define AF_ATMSVC PF_ATMSVC -#define AF_RDS PF_RDS -#define AF_SNA PF_SNA -#define AF_IRDA PF_IRDA -#define AF_PPPOX PF_PPPOX -#define AF_WANPIPE PF_WANPIPE -#define AF_LLC PF_LLC -#define AF_CAN PF_CAN -#define AF_TIPC PF_TIPC -#define AF_BLUETOOTH PF_BLUETOOTH -#define AF_IUCV PF_IUCV -#define AF_RXRPC PF_RXRPC -#define AF_ISDN PF_ISDN -#define AF_PHONET PF_PHONET -#define AF_IEEE802154 PF_IEEE802154 -#define AF_CAIF PF_CAIF -#define AF_ALG PF_ALG -#define AF_NFC PF_NFC -#define AF_MAX PF_MAX - -#define SOMAXCONN 128 - -#define SOL_SOCKET 1 - -#define SO_DEBUG 1 -#define SO_REUSEADDR 2 -#define SO_TYPE 3 -#define SO_ERROR 4 -#define SO_DONTROUTE 5 -#define SO_BROADCAST 6 -#define SO_SNDBUF 7 -#define SO_RCVBUF 8 -#define SO_SNDBUFFORCE 32 -#define SO_RCVBUFFORCE 33 -#define SO_KEEPALIVE 9 -#define SO_OOBINLINE 10 -#define SO_NO_CHECK 11 -#define SO_PRIORITY 12 -#define SO_LINGER 13 -#define SO_BSDCOMPAT 14 -#ifndef SO_PASSCRED -#define SO_PASSCRED 16 -#define SO_PEERCRED 17 -#define SO_RCVLOWAT 18 -#define SO_SNDLOWAT 19 -#define SO_RCVTIMEO 20 -#define SO_SNDTIMEO 21 -#endif -#define SO_SECURITY_AUTHENTICATION 22 -#define SO_SECURITY_ENCRYPTION_TRANSPORT 23 -#define SO_SECURITY_ENCRYPTION_NETWORK 24 -#define SO_BINDTODEVICE 25 -#define SO_ATTACH_FILTER 26 -#define SO_DETACH_FILTER 27 -#define SO_PEERNAME 28 -#define SO_TIMESTAMP 29 -#define SCM_TIMESTAMP SO_TIMESTAMP -#define SO_ACCEPTCONN 30 -#define SO_PEERSEC 31 -#define SO_PASSSEC 34 -#define SO_TIMESTAMPNS 35 -#define SCM_TIMESTAMPNS SO_TIMESTAMPNS -#define SO_MARK 36 -#define SO_TIMESTAMPING 37 -#define SCM_TIMESTAMPING SO_TIMESTAMPING -#define SO_PROTOCOL 38 -#define SO_DOMAIN 39 -#define SO_RXQ_OVFL 40 - -#if __BSD_VISIBLE -#define SO_NOSIGPIPE 0x0800 -#endif - -#define MSG_OOB 0x01 -#define MSG_PEEK 0x02 -#define MSG_DONTROUTE 0x04 -#ifdef __USE_GNU -# define MSG_TRYHARD MSG_DONTROUTE -#endif -#define MSG_CTRUNC 0x08 -#define MSG_PROXY 0x10 -#define MSG_TRUNC 0x20 -#define MSG_DONTWAIT 0x40 -#define MSG_EOR 0x80 -#define MSG_WAITALL 0x100 -#define MSG_FIN 0x200 -#define MSG_SYN 0x400 -#define MSG_CONFIRM 0x800 -#define MSG_RST 0x1000 -#define MSG_ERRQUEUE 0x2000 -#define MSG_NOSIGNAL 0x4000 -#define MSG_MORE 0x8000 -#define MSG_WAITFORONE 0x10000 -#define MSG_CMSG_CLOEXEC 0x40000000 - -#define SHUT_RD 0 -#define SHUT_WR 1 -#define SHUT_RDWR 2 - -#define FIOSETOWN 0x8901 -#define SIOCSPGRP 0x8902 -#define FIOGETOWN 0x8903 -#define SIOCGPGRP 0x8904 -#define SIOCATMARK 0x8905 -#define SIOCGSTAMP 0x8906 -#define SIOCGSTAMPNS 0x8907 - -typedef unsigned int sa_family_t; - -struct sockaddr { - sa_family_t sa_family; - char sa_data[16]; -}; - -struct sockaddr_storage { - sa_family_t ss_family; - unsigned short ss_port; - unsigned long ss_addr; - char ss_zero[6]; -}; - -ssize_t recvfrom(int socket, void *buffer, size_t length, int flags, struct sockaddr *address, socklen_t *address_len); -int getpeername(int socket, struct sockaddr *address, socklen_t *address_len); -int getsockname(int socket, struct sockaddr *address, socklen_t *address_len); -int socket(int domain, int type, int protocol); -int bind(int sockfd, const struct sockaddr *my_addr, socklen_t addrlen); -int listen(int sockfd, int backlog); -int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen); -int connect(int sockfd, const struct sockaddr *serv_addr, socklen_t addrlen); -int shutdown(int sockfd, int how); -int getsockopt(int s, int level, int optname, void *optval, socklen_t *optlen); -ssize_t recv(int s, void *buf, size_t len, int flags); -ssize_t send(int s, const void *buf, size_t len, int flags); -int setsockopt(int s, int level, int optname, const void *optval, socklen_t optlen); -ssize_t sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); -int socketpair(int domain, int type, int protocol, int sv[2]); - -struct msghdr -{ - void *msg_name; - socklen_t msg_namelen; - struct iovec *msg_iov; - size_t msg_iovlen; - void * msg_control; - size_t msg_controllen; - int msg_flags; -}; - -struct linger { - int l_onoff; - int l_linger; -}; - -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/system/include/sys/socketvar.h b/system/include/sys/socketvar.h deleted file mode 100644 index 58fe99cf..00000000 --- a/system/include/sys/socketvar.h +++ /dev/null @@ -1,3 +0,0 @@ - -#include <sys/socket.h> - diff --git a/system/include/sys/statvfs.h b/system/include/sys/statvfs.h deleted file mode 100644 index 8e17f817..00000000 --- a/system/include/sys/statvfs.h +++ /dev/null @@ -1,32 +0,0 @@ - -#ifndef _SYS_STATVFS_H -#define _SYS_STATVFS_H - -#ifdef __cplusplus -extern "C" { -#endif - -struct statvfs { - int f_bsize; - int f_frsize; - int f_blocks; - int f_bfree; - int f_bavail; - int f_files; - int f_ffree; - int f_favail; - int f_fsid; - int f_flag; - int f_namemax; -}; - -int statvfs(const char *path, struct statvfs *s); - -#define ST_RDONLY 0 - -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/system/include/sys/sysctl.h b/system/include/sys/sysctl.h deleted file mode 100644 index 2863201a..00000000 --- a/system/include/sys/sysctl.h +++ /dev/null @@ -1,14 +0,0 @@ - -#ifndef _SYS_POLL_H -#define _SYS_POLL_H - -#ifdef __cplusplus -extern "C" { -#endif - -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/system/include/sys/uio.h b/system/include/sys/uio.h deleted file mode 100644 index 07f169ee..00000000 --- a/system/include/sys/uio.h +++ /dev/null @@ -1,22 +0,0 @@ - -#ifndef _SYS_UIO_H -#define _SYS_UIO_H - -#ifdef __cplusplus -extern "C" { -#endif - -struct iovec { - void *iov_base; - size_t iov_len; -}; - -ssize_t readv(int, const struct iovec *, int); -ssize_t writev(int, const struct iovec *, int); - -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/system/include/sys/un.h b/system/include/sys/un.h deleted file mode 100644 index ca002158..00000000 --- a/system/include/sys/un.h +++ /dev/null @@ -1,66 +0,0 @@ -/*- - * Copyright (c) 1982, 1986, 1993 - * The Regents of the University of California. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 4. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @(#)un.h 8.3 (Berkeley) 2/19/95 - * $FreeBSD$ - */ - -#ifndef _SYS_UN_H_ -#define _SYS_UN_H_ - -#include <sys/cdefs.h> -#include <sys/_types.h> -#include <sys/socket.h> - -/* - * Definitions for UNIX IPC domain. - */ -struct sockaddr_un { - unsigned char sun_len; /* sockaddr len including null */ - sa_family_t sun_family; /* AF_UNIX */ - char sun_path[104]; /* path name (gag) */ -}; - -#if __BSD_VISIBLE - -/* Socket options. */ -#define LOCAL_PEERCRED 0x001 /* retrieve peer credentials */ -#define LOCAL_CREDS 0x002 /* pass credentials to receiver */ -#define LOCAL_CONNWAIT 0x004 /* connects block until accepted */ - -#ifndef _KERNEL - -/* actual length of an initialized sockaddr_un */ -#define SUN_LEN(su) \ - (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path)) - -#endif /* !_KERNEL */ - -#endif /* __BSD_VISIBLE */ - -#endif /* !_SYS_UN_H_ */ |