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__ |
| 27 # define __NR_accept 325 |
| 28 # define __NR_bind 326 |
| 29 # define __NR_listen 327 |
| 30 # define __NR_connect 328 |
| 31 # define __NR_send 329 |
| 32 # define __NR_sendto 330 |
| 33 # define __NR_sendmsg 331 |
| 34 # define __NR_recv 332 |
| 35 # define __NR_recvfrom 333 |
| 36 # define __NR_recvmsg 334 |
| 37 # define __NR_shutdown 335 |
| 38 # define __NR_getsockopt 336 |
| 39 # define __NR_setsockopt 337 |
| 40 # define __NR_getsockname 338 |
| 41 # define __NR_getpeername 339 |
| 42 # define __NR_socketpair 340 |
| 43 #endif |
26 | 44 |
27 #ifndef _LIBC | 45 #ifndef _LIBC |
28 /* The Linux kernel header file defines macros `__NR_<name>', but some | 46 /* The Linux kernel header file defines macros `__NR_<name>', but some |
29 programs expect the traditional form `SYS_<name>'. So in building libc | 47 programs expect the traditional form `SYS_<name>'. So in building libc |
30 we scan the kernel's list and produce <bits/syscall.h> with macros for | 48 we scan the kernel's list and produce <bits/syscall.h> with macros for |
31 all the `SYS_' names. */ | 49 all the `SYS_' names. */ |
32 # include <bits/syscall.h> | 50 # include <bits/syscall.h> |
33 #endif | 51 #endif |
34 | 52 |
35 #endif | 53 #endif |
OLD | NEW |