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

« back to all changes in this revision

Viewing changes to linux/sparc/syscall.h

  • Committer: Bazaar Package Importer
  • Author(s): Anand Kumria
  • Date: 2001-10-01 14:22:25 UTC
  • Revision ID: james.westby@ubuntu.com-20011001142225-h6l10cregbilmpw5
Tags: 4.4-1.2
* NMU
* Quick one-liner to allow building on the ARM. Closes: #109993.
* Re-ran autoconf, hopefully I didn't break other arches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
 
3
 * Copyright (c) 1993, 1994, 1995, 1996 Rick Sladkey <jrs@world.std.com>
 
4
 * All rights reserved.
 
5
 *
 
6
 * Redistribution and use in source and binary forms, with or without
 
7
 * modification, are permitted provided that the following conditions
 
8
 * are met:
 
9
 * 1. Redistributions of source code must retain the above copyright
 
10
 *    notice, this list of conditions and the following disclaimer.
 
11
 * 2. Redistributions in binary form must reproduce the above copyright
 
12
 *    notice, this list of conditions and the following disclaimer in the
 
13
 *    documentation and/or other materials provided with the distribution.
 
14
 * 3. The name of the author may not be used to endorse or promote products
 
15
 *    derived from this software without specific prior written permission.
 
16
 *
 
17
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
 
18
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 
19
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 
20
 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
 
21
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
 
22
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 
23
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
27
 *
 
28
 *      $Id: syscall.h,v 1.5 2001/08/03 11:37:07 wichert Exp $
 
29
 */
 
30
#include "dummy.h"
 
31
 
 
32
int     sys_nosys();
 
33
int     sys_nullsys();
 
34
int     sys_errsys();
 
35
 
 
36
/* 1.1 processes and protection */
 
37
int     sys_gethostid(),sys_sethostname(),sys_gethostname(),sys_getpid();
 
38
int     sys_setdomainname(),sys_getdomainname();
 
39
int     sys_fork(),sys_clone(),sys_exit(),sys_execv(),sys_execve(),sys_wait4(),sys_waitpid();
 
40
int     sys_setuid(),sys_setgid(),sys_getuid(),sys_setreuid(),sys_getgid(),sys_getgroups(),sys_setregid(),sys_setgroups();
 
41
int     sys_getpgrp(),sys_setpgrp();
 
42
int     sys_setsid(), sys_setpgid();
 
43
int     sys_uname(), sys_sysinfo();
 
44
 
 
45
/* 1.2 memory management */
 
46
int     sys_brk(),sys_sbrk(),sys_sstk();
 
47
int     sys_getpagesize(),sys_mmap(),sys_mctl(),sys_munmap(),sys_mprotect(),sys_mincore(), sys_mremap();
 
48
int     sys_omsync(),sys_omadvise(), sys_madvise(),sys_mlockall();
 
49
 
 
50
/* 1.3 signals */
 
51
int     sys_sigvec(),sys_sigblock(),sys_sigsetmask(),sys_sigpause(),sys_sigstack(),sys_sigcleanup(), sys_sigreturn();
 
52
int     sys_kill(), sys_killpg(), sys_sigpending(), sys_signal(), sys_sigaction(), sys_sigsuspend(), sys_sigprocmask();
 
53
 
 
54
/* 1.4 timing and statistics */
 
55
int     sys_gettimeofday(),sys_settimeofday();
 
56
int     sys_adjtime(), sys_adjtimex();
 
57
int     sys_getitimer(),sys_setitimer();
 
58
 
 
59
/* 1.5 descriptors */
 
60
int     sys_getdtablesize(),sys_dup(),sys_dup2(),sys_close();
 
61
int     sys_oldselect(),sys_select(),sys_getdopt(),sys_setdopt(),sys_fcntl(),sys_flock();
 
62
 
 
63
/* 1.6 resource controls */
 
64
int     sys_getpriority(),sys_setpriority(),sys_getrusage(),sys_getrlimit(),sys_setrlimit();
 
65
int     sys_oldquota(), sys_quotactl();
 
66
int     sys_rtschedule(), sys_personality();
 
67
 
 
68
/* 1.7 system operation support */
 
69
int     sys_mount(),sys_unmount(),sys_swapon(),sys_pivotroot();
 
70
int     sys_sync(),sys_reboot();
 
71
int     sys_sysacct();
 
72
int     sys_auditsys();
 
73
 
 
74
/* 2.1 generic operations */
 
75
int     sys_read(),sys_write(),sys_readv(),sys_writev(),sys_ioctl();
 
76
 
 
77
/* 2.1.1 asynch operations */
 
78
int     sys_aioread(), sys_aiowrite(), sys_aiowait(), sys_aiocancel();
 
79
 
 
80
/* 2.2 file system */
 
81
int     sys_chdir(),sys_chroot();
 
82
int     sys_fchdir(),sys_fchroot();
 
83
int     sys_mkdir(),sys_rmdir(),sys_getdirentries(), sys_getdents(),sys_readdir();
 
84
int     sys_creat(),sys_open(),sys_mknod(),sys_unlink(),sys_stat(),sys_fstat(),sys_lstat();
 
85
int     sys_chown(),sys_fchown(),sys_chmod(),sys_fchmod(),sys_utimes();
 
86
int     sys_link(),sys_symlink(),sys_readlink(),sys_rename();
 
87
int     sys_lseek(),sys_truncate(),sys_ftruncate(),sys_access(),sys_fsync(),sys_sysctl();
 
88
int     sys_statfs(),sys_fstatfs(),sys_msync();
 
89
int sys_stat64(), sys_lstat64(), sys_fstat64();
 
90
int sys_truncate64(), sys_ftruncate64();
 
91
 
 
92
 
 
93
/* 2.3 communications */
 
94
int     sys_socket(),sys_bind(),sys_listen(),sys_accept(),sys_connect();
 
95
int     sys_socketpair(),sys_sendto(),sys_send(),sys_recvfrom(),sys_recv();
 
96
int     sys_sendmsg(),sys_recvmsg(),sys_shutdown(),sys_setsockopt(),sys_getsockopt();
 
97
int     sys_getsockname(),sys_getpeername(),sys_pipe();
 
98
 
 
99
int sys_setresuid(), sys_setresgid(), sys_getresuid(), sys_getresgid(), sys_pread();
 
100
int sys_pwrite(), sys_getcwd();
 
101
int sys_sigaltstack(), sys_rt_sigprocmask(), sys_rt_sigaction();
 
102
int sys_rt_sigpending(), sys_rt_sigsuspend(), sys_rt_sigqueueinfo();
 
103
int sys_rt_sigtimedwait(), sys_prctl(), sys_poll();
 
104
int sys_sendfile(), sys_query_module(), sys_capget(), sys_capset();
 
105
int sys_create_module(), sys_init_module();
 
106
 
 
107
int     sys_umask();            /* XXX */
 
108
 
 
109
/* 2.3.1 SystemV-compatible IPC */
 
110
int     sys_semsys(), sys_semctl(), sys_semget();
 
111
#define SYS_semsys_subcall      200
 
112
#define SYS_semsys_nsubcalls    3
 
113
#define SYS_semctl              (SYS_semsys_subcall + 0)
 
114
#define SYS_semget              (SYS_semsys_subcall + 1)
 
115
#define SYS_semop               (SYS_semsys_subcall + 2)
 
116
int     sys_msgsys(), sys_msgget(), sys_msgctl(), sys_msgrcv(), sys_msgsnd();
 
117
#define SYS_msgsys_subcall      203
 
118
#define SYS_msgsys_nsubcalls    4
 
119
#define SYS_msgget              (SYS_msgsys_subcall + 0)
 
120
#define SYS_msgctl              (SYS_msgsys_subcall + 1)
 
121
#define SYS_msgrcv              (SYS_msgsys_subcall + 2)
 
122
#define SYS_msgsnd              (SYS_msgsys_subcall + 3)
 
123
int     sys_shmsys(), sys_shmat(), sys_shmctl(), sys_shmdt(), sys_shmget();
 
124
#define SYS_shmsys_subcall      207
 
125
#define SYS_shmsys_nsubcalls    4
 
126
#define SYS_shmat               (SYS_shmsys_subcall + 0)
 
127
#define SYS_shmctl              (SYS_shmsys_subcall + 1)
 
128
#define SYS_shmdt               (SYS_shmsys_subcall + 2)
 
129
#define SYS_shmget              (SYS_shmsys_subcall + 3)
 
130
 
 
131
/* 2.4 processes */
 
132
int     sys_ptrace();
 
133
 
 
134
/* 2.5 terminals */
 
135
 
 
136
/* emulations for backwards compatibility */
 
137
int     sys_otime();            /* now use gettimeofday */
 
138
int     sys_ostime();           /* now use settimeofday */
 
139
int     sys_oalarm();           /* now use setitimer */
 
140
int     sys_outime();           /* now use utimes */
 
141
int     sys_opause();           /* now use sigpause */
 
142
int     sys_onice();            /* now use setpriority,getpriority */
 
143
int     sys_oftime();           /* now use gettimeofday */
 
144
int     sys_osetpgrp();         /* ??? */
 
145
int     sys_otimes();           /* now use getrusage */
 
146
int     sys_ossig();            /* now use sigvec, etc */
 
147
int     sys_ovlimit();          /* now use setrlimit,getrlimit */
 
148
int     sys_ovtimes();          /* now use getrusage */
 
149
int     sys_osetuid();          /* now use setreuid */
 
150
int     sys_osetgid();          /* now use setregid */
 
151
int     sys_ostat();            /* now use stat */
 
152
int     sys_ofstat();           /* now use fstat */
 
153
 
 
154
/* BEGIN JUNK */
 
155
int     sys_profil();           /* 'cuz sys calls are interruptible */
 
156
int     sys_vhangup();          /* should just do in sys_exit() */
 
157
int     sys_vfork();            /* XXX - was awaiting fork w/ copy on write */
 
158
int     sys_ovadvise();         /* awaiting new madvise */
 
159
int     sys_indir();            /* indirect system call */
 
160
int     sys_ustat();            /* System V compatibility */
 
161
int     sys_owait();            /* should use wait4 interface */
 
162
int     sys_owait3();           /* should use wait4 interface */
 
163
int     sys_umount();           /* still more Sys V (and 4.2?) compatibility */
 
164
int     sys_umount2();
 
165
int     sys_pathconf();         /* posix */
 
166
int     sys_fpathconf();                /* posix */
 
167
int     sys_sysconf();          /* posix */
 
168
int     sys_delete_module();
 
169
int sys_debug();
 
170
/* END JUNK */
 
171
 
 
172
int     sys_vtrace();           /* kernel event tracing */
 
173
 
 
174
/* nfs */
 
175
int     sys_async_daemon();             /* client async daemon */
 
176
int     sys_nfs_svc();          /* run nfs server */
 
177
int     sys_nfs_getfh();                /* get file handle */
 
178
int     sys_exportfs();         /* export file systems */
 
179
 
 
180
int     sys_rfssys();           /* RFS-related calls */
 
181
 
 
182
int     sys_getmsg();
 
183
int     sys_putmsg();
 
184
int     sys_poll();
 
185
 
 
186
int     sys_vpixsys();          /* VP/ix system calls */
 
187
 
 
188
#include "syscall1.h"