| The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 1 | /**************************************************************************** | 
|  | 2 | **************************************************************************** | 
|  | 3 | *** | 
|  | 4 | ***   This header was automatically generated from a Linux kernel header | 
|  | 5 | ***   of the same name, to make information necessary for userspace to | 
|  | 6 | ***   call into the kernel available to libc.  It contains only constants, | 
|  | 7 | ***   structures, and macros generated from the original header, and thus, | 
|  | 8 | ***   contains no copyrightable information. | 
|  | 9 | *** | 
|  | 10 | **************************************************************************** | 
|  | 11 | ****************************************************************************/ | 
|  | 12 | #ifndef _LINUX_NET_H | 
|  | 13 | #define _LINUX_NET_H | 
|  | 14 |  | 
|  | 15 | #include <linux/wait.h> | 
|  | 16 | #include <asm/socket.h> | 
|  | 17 |  | 
|  | 18 | struct poll_table_struct; | 
|  | 19 | struct inode; | 
|  | 20 |  | 
|  | 21 | #define NPROTO 32 | 
|  | 22 |  | 
|  | 23 | #define SYS_SOCKET 1 | 
|  | 24 | #define SYS_BIND 2 | 
|  | 25 | #define SYS_CONNECT 3 | 
|  | 26 | #define SYS_LISTEN 4 | 
|  | 27 | #define SYS_ACCEPT 5 | 
|  | 28 | #define SYS_GETSOCKNAME 6 | 
|  | 29 | #define SYS_GETPEERNAME 7 | 
|  | 30 | #define SYS_SOCKETPAIR 8 | 
|  | 31 | #define SYS_SEND 9 | 
|  | 32 | #define SYS_RECV 10 | 
|  | 33 | #define SYS_SENDTO 11 | 
|  | 34 | #define SYS_RECVFROM 12 | 
|  | 35 | #define SYS_SHUTDOWN 13 | 
|  | 36 | #define SYS_SETSOCKOPT 14 | 
|  | 37 | #define SYS_GETSOCKOPT 15 | 
|  | 38 | #define SYS_SENDMSG 16 | 
|  | 39 | #define SYS_RECVMSG 17 | 
|  | 40 |  | 
|  | 41 | typedef enum { | 
|  | 42 | SS_FREE = 0, | 
|  | 43 | SS_UNCONNECTED, | 
|  | 44 | SS_CONNECTING, | 
|  | 45 | SS_CONNECTED, | 
|  | 46 | SS_DISCONNECTING | 
|  | 47 | } socket_state; | 
|  | 48 |  | 
|  | 49 | #define __SO_ACCEPTCON (1 << 16) | 
|  | 50 |  | 
|  | 51 | #endif |