2.9
[glibc/nacl-glibc.git] / sysdeps / unix / sysv / linux / socketcall.h
blob24ec9ee2ac3eec23f6bbbaeb410e0800f2d9a55b
1 /* ID for functions called via socketcall system call.
2 Copyright (C) 1995, 1996, 2008 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18 02111-1307 USA. */
20 #ifndef _SYS_SOCKETCALL_H
21 #define _SYS_SOCKETCALL_H 1
23 /* Define unique numbers for the operations permitted on socket. Linux
24 uses a single system call for all these functions. The relevant code
25 file is /usr/include/linux/net.h.
26 We cannot use a enum here because the values are used in assembler
27 code. */
29 #define SOCKOP_socket 1
30 #define SOCKOP_bind 2
31 #define SOCKOP_connect 3
32 #define SOCKOP_listen 4
33 #define SOCKOP_accept 5
34 #define SOCKOP_getsockname 6
35 #define SOCKOP_getpeername 7
36 #define SOCKOP_socketpair 8
37 #define SOCKOP_send 9
38 #define SOCKOP_recv 10
39 #define SOCKOP_sendto 11
40 #define SOCKOP_recvfrom 12
41 #define SOCKOP_shutdown 13
42 #define SOCKOP_setsockopt 14
43 #define SOCKOP_getsockopt 15
44 #define SOCKOP_sendmsg 16
45 #define SOCKOP_recvmsg 17
46 #define SOCKOP_paccept 18
48 #endif /* sys/socketcall.h */