Update copyright notices with scripts/update-copyrights
[glibc.git] / sysdeps / unix / sysv / linux / socketcall.h
blob7c2404a49050822adbbe35ef71007fd7de91c569
1 /* ID for functions called via socketcall system call.
2 Copyright (C) 1995-2014 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, see
17 <http://www.gnu.org/licenses/>. */
19 #ifndef _SYS_SOCKETCALL_H
20 #define _SYS_SOCKETCALL_H 1
22 /* Define unique numbers for the operations permitted on socket. Linux
23 uses a single system call for all these functions. The relevant code
24 file is /usr/include/linux/net.h.
25 We cannot use an enum here because the values are used in assembler
26 code. */
28 #define SOCKOP_socket 1
29 #define SOCKOP_bind 2
30 #define SOCKOP_connect 3
31 #define SOCKOP_listen 4
32 #define SOCKOP_accept 5
33 #define SOCKOP_getsockname 6
34 #define SOCKOP_getpeername 7
35 #define SOCKOP_socketpair 8
36 #define SOCKOP_send 9
37 #define SOCKOP_recv 10
38 #define SOCKOP_sendto 11
39 #define SOCKOP_recvfrom 12
40 #define SOCKOP_shutdown 13
41 #define SOCKOP_setsockopt 14
42 #define SOCKOP_getsockopt 15
43 #define SOCKOP_sendmsg 16
44 #define SOCKOP_recvmsg 17
45 #define SOCKOP_accept4 18
46 #define SOCKOP_recvmmsg 19
47 #define SOCKOP_sendmmsg 20
49 #endif /* sys/socketcall.h */