* sysdeps/unix/sysv/linux/Versions: Move sync_file_range to
[glibc.git] / sysdeps / unix / sysv / linux / socketcall.h
blobd836534f3aad2b7b6ddee4af8efe303ca4b22c04
1 /* ID for functions called via socketcall system call.
2 Copyright (C) 1995, 1996 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
22 #define _SYS_SOCKETCALL_H 1
24 /* Define unique numbers for the operations permitted on socket. Linux
25 uses a single system call for all these functions. The relevant code
26 file is /usr/include/linux/net.h.
27 We cannot use a enum here because the values are used in assembler
28 code. */
30 #define SOCKOP_socket 1
31 #define SOCKOP_bind 2
32 #define SOCKOP_connect 3
33 #define SOCKOP_listen 4
34 #define SOCKOP_accept 5
35 #define SOCKOP_getsockname 6
36 #define SOCKOP_getpeername 7
37 #define SOCKOP_socketpair 8
38 #define SOCKOP_send 9
39 #define SOCKOP_recv 10
40 #define SOCKOP_sendto 11
41 #define SOCKOP_recvfrom 12
42 #define SOCKOP_shutdown 13
43 #define SOCKOP_setsockopt 14
44 #define SOCKOP_getsockopt 15
45 #define SOCKOP_sendmsg 16
46 #define SOCKOP_recvmsg 17
48 #endif /* _SYS_SOCKETCALL_H */