OLD | NEW |
1 /* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. | 1 /* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. |
2 This file is part of the GNU C Library. | 2 This file is part of the GNU C Library. |
3 | 3 |
4 The GNU C Library is free software; you can redistribute it and/or | 4 The GNU C Library is free software; you can redistribute it and/or |
5 modify it under the terms of the GNU Lesser General Public | 5 modify it under the terms of the GNU Lesser General Public |
6 License as published by the Free Software Foundation; either | 6 License as published by the Free Software Foundation; either |
7 version 2.1 of the License, or (at your option) any later version. | 7 version 2.1 of the License, or (at your option) any later version. |
8 | 8 |
9 The GNU C Library is distributed in the hope that it will be useful, | 9 The GNU C Library is distributed in the hope that it will be useful, |
10 but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 Lesser General Public License for more details. | 12 Lesser General Public License for more details. |
13 | 13 |
14 You should have received a copy of the GNU Lesser General Public | 14 You should have received a copy of the GNU Lesser General Public |
15 License along with the GNU C Library; if not, write to the Free | 15 License along with the GNU C Library; if not, write to the Free |
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA | 16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
17 02111-1307 USA. */ | 17 02111-1307 USA. */ |
18 | 18 |
19 #ifndef _SYSCALL_H | 19 #ifndef _SYSCALL_H |
20 #define _SYSCALL_H 1 | 20 #define _SYSCALL_H 1 |
21 | 21 |
22 /* This file should list the numbers of the system the system knows. | 22 /* This file should list the numbers of the system the system knows. |
23 But instead of duplicating this we use the information available | 23 But instead of duplicating this we use the information available |
24 from the kernel sources. */ | 24 from the kernel sources. */ |
25 #include <asm/unistd.h> | 25 #include <asm/unistd.h> |
26 #ifdef __i386__ | 26 #ifdef __i386__ |
27 # define __NR_accept» » 325 | 27 # define __NR_accept» » 2325 |
28 # define __NR_bind» » 326 | 28 # define __NR_bind» » 2326 |
29 # define __NR_listen» » 327 | 29 # define __NR_listen» » 2327 |
30 # define __NR_connect» » 328 | 30 # define __NR_connect» » 2328 |
31 # define __NR_send» » 329 | 31 # define __NR_send» » 2329 |
32 # define __NR_sendto» » 330 | 32 # define __NR_sendto» » 2330 |
33 # define __NR_sendmsg» » 331 | 33 # define __NR_sendmsg» » 2331 |
34 # define __NR_recv» » 332 | 34 # define __NR_recv» » 2332 |
35 # define __NR_recvfrom»» 333 | 35 # define __NR_recvfrom»» 2333 |
36 # define __NR_recvmsg» » 334 | 36 # define __NR_recvmsg» » 2334 |
37 # define __NR_shutdown»» 335 | 37 # define __NR_shutdown»» 2335 |
38 # define __NR_getsockopt» » 336 | 38 # define __NR_getsockopt» » 2336 |
39 # define __NR_setsockopt» » 337 | 39 # define __NR_setsockopt» » 2337 |
40 # define __NR_getsockname» » 338 | 40 # define __NR_getsockname» » 2338 |
41 # define __NR_getpeername» » 339 | 41 # define __NR_getpeername» » 2339 |
42 # define __NR_socketpair» » 340 | 42 # define __NR_socketpair» » 2340 |
| 43 #endif |
| 44 #ifdef __x86_64__ |
| 45 # define __NR_send» » 2329 |
| 46 # define __NR_recv» » 2332 |
43 #endif | 47 #endif |
44 | 48 |
45 #ifndef _LIBC | 49 #ifndef _LIBC |
46 /* The Linux kernel header file defines macros `__NR_<name>', but some | 50 /* The Linux kernel header file defines macros `__NR_<name>', but some |
47 programs expect the traditional form `SYS_<name>'. So in building libc | 51 programs expect the traditional form `SYS_<name>'. So in building libc |
48 we scan the kernel's list and produce <bits/syscall.h> with macros for | 52 we scan the kernel's list and produce <bits/syscall.h> with macros for |
49 all the `SYS_' names. */ | 53 all the `SYS_' names. */ |
50 # include <bits/syscall.h> | 54 # include <bits/syscall.h> |
51 #endif | 55 #endif |
52 | 56 |
53 #endif | 57 #endif |
OLD | NEW |