~ubuntu-branches/ubuntu/saucy/strace/saucy

« back to all changes in this revision

Viewing changes to linux/syscall.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeff Bailey
  • Date: 2005-07-12 03:41:49 UTC
  • mfrom: (0.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050712034149-wewli8z223w7lhjv
Tags: 4.5.12-1ubuntu1
Do not include linux/socket.h in configure.  There are 
no parts in here that we use.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
27
 *
28
 
 *      $Id: syscall.h,v 1.37 2004/04/16 21:48:44 roland Exp $
 
28
 *      $Id: syscall.h,v 1.45 2005/06/07 23:21:28 roland Exp $
29
29
 */
30
30
 
31
31
#include "dummy.h"
96
96
int sys_semtimedop(), sys_statfs64(), sys_fstatfs64(), sys_tgkill();
97
97
int sys_mq_open(), sys_mq_timedsend(), sys_mq_timedreceive();
98
98
int sys_mq_notify(), sys_mq_getsetattr();
99
 
 
 
99
int sys_epoll_create(), sys_epoll_ctl(), sys_epoll_wait();
 
100
int sys_waitid(), sys_fadvise64(), sys_fadvise64_64();
 
101
int sys_mbind(), sys_get_mempolicy(), sys_set_mempolicy();
 
102
int sys_arch_prctl();
 
103
int sys_io_setup(), sys_io_submit(), sys_io_cancel(), sys_io_getevents(), sys_io_destroy();
100
104
 
101
105
/* sys_socketcall subcalls */
102
106
 
123
127
#endif
124
128
 
125
129
 
126
 
#if !defined(ALPHA) && !defined(MIPS) && !defined(HPPA) && !defined(X86_64)
 
130
#ifndef SYS_waitid
 
131
# ifdef I386
 
132
#  define SYS_waitid 284
 
133
# elif defined ALPHA
 
134
#  define SYS_waitid 438
 
135
# elif defined ARM
 
136
#  define SYS_waitid (NR_SYSCALL_BASE + 280)
 
137
# elif defined IA64
 
138
#  define SYS_waitid 1270
 
139
# elif defined M68K
 
140
#  define SYS_waitid 277
 
141
# elif defined POWERPC
 
142
#  define SYS_waitid 272
 
143
# elif defined S390 || defined S390X
 
144
#  define SYS_waitid 281
 
145
# elif defined SH64
 
146
#  define SYS_waitid 312
 
147
# elif defined SH64
 
148
#  define SYS_waitid 312
 
149
# elif defined SH
 
150
#  define SYS_waitid 284
 
151
# elif defined SPARC || defined SPARC64
 
152
#  define SYS_waitid 279
 
153
# elif defined X86_64
 
154
#  define SYS_waitid 247
 
155
# endif
 
156
#endif
 
157
 
 
158
#if !defined(ALPHA) && !defined(MIPS) && !defined(HPPA)
127
159
# ifdef IA64
128
160
/*
129
161
 *  IA64 syscall numbers (the only ones available from standard header
151
183
#  undef SYS_recvmsg
152
184
# endif /* IA64 */
153
185
#  define SYS_socket_subcall    300
154
 
#define SYS_socket              (SYS_socket_subcall + 1)
155
 
#define SYS_bind                (SYS_socket_subcall + 2)
156
 
#define SYS_connect             (SYS_socket_subcall + 3)
157
 
#define SYS_listen              (SYS_socket_subcall + 4)
158
 
#define SYS_accept              (SYS_socket_subcall + 5)
159
 
#define SYS_getsockname         (SYS_socket_subcall + 6)
160
 
#define SYS_getpeername         (SYS_socket_subcall + 7)
161
 
#define SYS_socketpair          (SYS_socket_subcall + 8)
162
 
#define SYS_send                (SYS_socket_subcall + 9)
163
 
#define SYS_recv                (SYS_socket_subcall + 10)
164
 
#define SYS_sendto              (SYS_socket_subcall + 11)
165
 
#define SYS_recvfrom            (SYS_socket_subcall + 12)
166
 
#define SYS_shutdown            (SYS_socket_subcall + 13)
167
 
#define SYS_setsockopt          (SYS_socket_subcall + 14)
168
 
#define SYS_getsockopt          (SYS_socket_subcall + 15)
169
 
#define SYS_sendmsg             (SYS_socket_subcall + 16)
170
 
#define SYS_recvmsg             (SYS_socket_subcall + 17)
 
186
#define SYS_sub_socket          (SYS_socket_subcall + 1)
 
187
#define SYS_sub_bind            (SYS_socket_subcall + 2)
 
188
#define SYS_sub_connect         (SYS_socket_subcall + 3)
 
189
#define SYS_sub_listen          (SYS_socket_subcall + 4)
 
190
#define SYS_sub_accept          (SYS_socket_subcall + 5)
 
191
#define SYS_sub_getsockname     (SYS_socket_subcall + 6)
 
192
#define SYS_sub_getpeername     (SYS_socket_subcall + 7)
 
193
#define SYS_sub_socketpair      (SYS_socket_subcall + 8)
 
194
#define SYS_sub_send            (SYS_socket_subcall + 9)
 
195
#define SYS_sub_recv            (SYS_socket_subcall + 10)
 
196
#define SYS_sub_sendto          (SYS_socket_subcall + 11)
 
197
#define SYS_sub_recvfrom        (SYS_socket_subcall + 12)
 
198
#define SYS_sub_shutdown        (SYS_socket_subcall + 13)
 
199
#define SYS_sub_setsockopt      (SYS_socket_subcall + 14)
 
200
#define SYS_sub_getsockopt      (SYS_socket_subcall + 15)
 
201
#define SYS_sub_sendmsg         (SYS_socket_subcall + 16)
 
202
#define SYS_sub_recvmsg         (SYS_socket_subcall + 17)
171
203
 
172
204
#define SYS_socket_nsubcalls    18
173
 
#endif /* !(ALPHA || MIPS || HPPA || X86_64) */
 
205
#endif /* !(ALPHA || MIPS || HPPA) */
174
206
 
175
207
/* sys_ipc subcalls */
176
208
 
178
210
int sys_msgsnd(), sys_msgrcv(), sys_msgget(), sys_msgctl();
179
211
int sys_shmat(), sys_shmdt(), sys_shmget(), sys_shmctl();
180
212
 
181
 
#if !defined(ALPHA) && !defined(MIPS) && !defined(SPARC) && !defined(HPPA) && !defined(X86_64)
 
213
#if !defined(ALPHA) && !defined(MIPS) && !defined(SPARC) && !defined(HPPA)
182
214
# ifdef IA64
183
215
   /*
184
216
    * IA64 syscall numbers (the only ones available from standard
192
224
#  undef SYS_semop
193
225
#  undef SYS_semget
194
226
#  undef SYS_semctl
 
227
#  undef SYS_semtimedop
195
228
#  undef SYS_msgsnd
196
229
#  undef SYS_msgrcv
197
230
#  undef SYS_msgget
202
235
#  undef SYS_shmctl
203
236
# endif /* IA64 */
204
237
#define SYS_ipc_subcall         ((SYS_socket_subcall)+(SYS_socket_nsubcalls))
205
 
#define SYS_semop               (SYS_ipc_subcall + 1)
206
 
#define SYS_semget              (SYS_ipc_subcall + 2)
207
 
#define SYS_semctl              (SYS_ipc_subcall + 3)
208
 
#define SYS_semtimedop          (SYS_ipc_subcall + 4)
209
 
#define SYS_msgsnd              (SYS_ipc_subcall + 11)
210
 
#define SYS_msgrcv              (SYS_ipc_subcall + 12)
211
 
#define SYS_msgget              (SYS_ipc_subcall + 13)
212
 
#define SYS_msgctl              (SYS_ipc_subcall + 14)
213
 
#define SYS_shmat               (SYS_ipc_subcall + 21)
214
 
#define SYS_shmdt               (SYS_ipc_subcall + 22)
215
 
#define SYS_shmget              (SYS_ipc_subcall + 23)
216
 
#define SYS_shmctl              (SYS_ipc_subcall + 24)
 
238
#define SYS_sub_semop           (SYS_ipc_subcall + 1)
 
239
#define SYS_sub_semget          (SYS_ipc_subcall + 2)
 
240
#define SYS_sub_semctl          (SYS_ipc_subcall + 3)
 
241
#define SYS_sub_semtimedop      (SYS_ipc_subcall + 4)
 
242
#define SYS_sub_msgsnd          (SYS_ipc_subcall + 11)
 
243
#define SYS_sub_msgrcv          (SYS_ipc_subcall + 12)
 
244
#define SYS_sub_msgget          (SYS_ipc_subcall + 13)
 
245
#define SYS_sub_msgctl          (SYS_ipc_subcall + 14)
 
246
#define SYS_sub_shmat           (SYS_ipc_subcall + 21)
 
247
#define SYS_sub_shmdt           (SYS_ipc_subcall + 22)
 
248
#define SYS_sub_shmget          (SYS_ipc_subcall + 23)
 
249
#define SYS_sub_shmctl          (SYS_ipc_subcall + 24)
217
250
 
218
251
#define SYS_ipc_nsubcalls       25
219
 
#endif /* !(ALPHA || MIPS || SPARC || HPPA || X86_64) */
 
252
#endif /* !(ALPHA || MIPS || SPARC || HPPA) */
 
253
 
 
254
#if defined SYS_ipc_subcall && !defined SYS_ipc
 
255
# define SYS_ipc SYS_ipc_subcall
 
256
#endif
 
257
#if defined SYS_socket_subcall && !defined SYS_socketcall
 
258
# define SYS_socketcall SYS_socket_subcall
 
259
#endif
220
260
 
221
261
#ifdef IA64
222
262
  /*