The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/compat/irix/syscalls.master

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1         $NetBSD: syscalls.master,v 1.52 2008/04/23 14:07:49 ad Exp $
    2 
    3 ;       @(#)syscalls.master     8.1 (Berkeley) 7/19/93
    4 
    5 ; NetBSD COMPAT_IRIX system call name/number "master" file.
    6 ; (See syscalls.conf to see what it is processed into.)
    7 ;
    8 ; Fields: number type [type-dependent ...]
    9 ;       number  system call number, must be in order
   10 ;       type    one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
   11 ;               the compatibility options defined in syscalls.conf.
   12 ;
   13 ; types:
   14 ;       STD     always included
   15 ;       OBSOL   obsolete, not included in system
   16 ;       UNIMPL  unimplemented, not included in system
   17 ;       NODEF   included, but don't define the syscall number
   18 ;       NOARGS  included, but don't define the syscall args structure
   19 ;
   20 ; The compat options are defined in the syscalls.conf file, and the
   21 ; compat option name is prefixed to the syscall name.  Other than
   22 ; that, they're like NODEF (for 'compat' options), or STD (for
   23 ; 'libcompat' options).
   24 ;
   25 ; The type-dependent arguments are as follows:
   26 ; For STD, NODEF, NOARGS, and compat syscalls:
   27 ;       { pseudo-proto } [alias]
   28 ; For other syscalls:
   29 ;       [comment]
   30 ;
   31 ; #ifdef's, etc. may be included, and are copied to the output files.
   32 ; #include's are copied to the syscall names and switch definition files only.
   33 
   34 #if defined(_KERNEL_OPT)
   35 #include "opt_ntp.h"
   36 #include "opt_sysv.h"
   37 #include "opt_compat_43.h"
   38 #endif
   39 
   40 #include <sys/param.h>
   41 #include <sys/systm.h>
   42 #include <sys/signal.h>
   43 #include <sys/mount.h>
   44 #include <sys/poll.h>
   45 #include <sys/ioctl_compat.h>
   46 #include <sys/syscallargs.h>
   47 
   48 #include <compat/svr4/svr4_types.h>
   49 #include <compat/svr4/svr4_signal.h>
   50 #include <compat/svr4/svr4_ucontext.h>
   51 #include <compat/svr4/svr4_lwp.h>
   52 #include <compat/svr4/svr4_statvfs.h>
   53 #include <compat/svr4/svr4_syscallargs.h>
   54 
   55 #include <compat/irix/irix_types.h>
   56 #include <compat/irix/irix_signal.h>
   57 #include <compat/irix/irix_syscallargs.h>
   58 
   59 %%
   60 
   61 0       NOARGS          { int sys_nosys(void); } syscall
   62 1       NOARGS          { int sys_exit(int rval); }
   63 2       NOARGS          { int sys_fork(void); }
   64 3       NOARGS          { int sys_read(int fd, char *buf, u_int nbyte); }
   65 4       NOARGS          { int sys_write(int fd, char *buf, u_int nbyte); }
   66 5       STD             { int irix_sys_open(const char *path, int flags, \
   67                             int mode); }
   68 6       NOARGS          { int sys_close(int fd); }
   69 7       OBSOL           wait
   70 8       NOARGS          { int svr4_sys_creat(const char *path, int mode); }
   71 9       NOARGS          { int sys_link(char *path, char *link); }
   72 10      NOARGS          { int sys_unlink(char *path); }
   73 11      NOARGS          { int svr4_sys_execv(const char *path, char **argp); }
   74 12      NOARGS          { int sys_chdir(char *path); }
   75 13      NOARGS          { int svr4_sys_time(svr4_time_t *t); }
   76 14      OBSOL           mknod
   77 15      NOARGS          { int sys_chmod(char *path, int mode); }
   78 16      NOARGS          { int sys___posix_chown(char *path, int uid, \
   79                             int gid); } chown
   80 17      STD             { int irix_sys_break(void *nsize); }
   81 18      OBSOL           stat
   82 19      NOARGS          { long compat_43_sys_lseek(int fd, long offset, \
   83                             int whence); }
   84 20      NOARGS          { pid_t sys_getpid(void); }
   85 21      UNIMPL          old_mount
   86 22      UNIMPL          System V umount
   87 23      NOARGS          { int sys_setuid(uid_t uid); }
   88 24      NOARGS          { uid_t sys_getuid_with_euid(void); }
   89 25      UNIMPL          stime
   90 26      UNIMPL          ptrace
   91 27      NOARGS          { int svr4_sys_alarm(unsigned sec); }
   92 28      NOARGS          { int svr4_sys_fstat(int fd, struct svr4_stat *sb); }
   93 29      NOARGS          { int svr4_sys_pause(void); }
   94 30      NOARGS          { int svr4_sys_utime(const char *path, \
   95                              struct svr4_utimbuf *ubuf); }
   96 31      UNIMPL          was stty
   97 32      UNIMPL          was gtty
   98 33      NOARGS          { int svr4_sys_access(const char *path, int flags); }
   99 34      NOARGS          { int svr4_sys_nice(int prio); }
  100 35      UNIMPL          statfs
  101 36      NOARGS          { int sys_sync(void); }
  102 37      NOARGS          { int svr4_sys_kill(int pid, int signum); }
  103 38      UNIMPL          fstatfs
  104 39      NOARGS          { int svr4_sys_pgrpsys(int cmd, int pid, int pgid); }
  105 40      STD             { ptrdiff_t irix_sys_syssgi(int request, void *arg1, \
  106                             void *arg2, void *arg3, void *arg4, void *arg5); }
  107 41      NOARGS          { int sys_dup(u_int fd); }
  108 42      NOARGS          { int sys_pipe(void); }
  109 43      NOARGS          { int svr4_sys_times(struct tms *tp); }
  110 44      UNIMPL          profil
  111 45      UNIMPL          plock
  112 46      NOARGS          { int sys_setgid(gid_t gid); }
  113 47      NOARGS          { gid_t sys_getgid_with_egid(void); }
  114 48      OBSOL           ssig
  115 #ifdef SYSVMSG
  116 49      NOARGS          { int svr4_sys_msgsys(int what, int a2, int a3, \
  117                                               int a4, int a5); }
  118 #else
  119 49      UNIMPL          msgsys
  120 #endif
  121 50      UNIMPL          sysmips
  122 51      UNIMPL          acct
  123 #ifdef SYSVSHM
  124 52      STD             { int irix_sys_shmsys(int what, int a2, int a3, \
  125                                               int a4); }
  126 #else
  127 52      UNIMPL          shmsys
  128 #endif
  129 #ifdef SYSVSEM
  130 53      NOARGS          { int svr4_sys_semsys(int what, int a2, int a3, \
  131                                               int a4, int a5); }
  132 #else
  133 53      UNIMPL          semsys
  134 #endif
  135 54      STD             { int irix_sys_ioctl(int fd, u_long com, \
  136                             void *data); }
  137 55      UNIMPL          uadmin
  138 56      STD             { int irix_sys_sysmp(int cmd, void *arg1, void *arg2, \
  139                             void *arg3, void *arg4); }
  140 57      STD             { int irix_sys_utssys(void *a1, void *a2, int sel, \
  141                             void *a3); }
  142 58      UNIMPL
  143 59      NOARGS          { int svr4_sys_execve(const char *path, char **argp, \
  144                             char **envp); }
  145 60      NOARGS          { int sys_umask(int newmask); }
  146 61      NOARGS          { int sys_chroot(char *path); }
  147 62      STD             { int irix_sys_fcntl(int fd, int cmd, char *arg); }
  148 63      NOARGS          { long svr4_sys_ulimit(int cmd, long newlimit); }
  149 64      UNIMPL          reserved for unix/pc
  150 65      UNIMPL          reserved for unix/pc
  151 66      UNIMPL          reserved for unix/pc
  152 67      UNIMPL          reserved for unix/pc
  153 68      UNIMPL          reserved for unix/pc
  154 69      UNIMPL          reserved for unix/pc
  155 70      OBSOL           advfs
  156 71      OBSOL           unadvfs
  157 72      OBSOL           rmount
  158 73      OBSOL           rumount
  159 74      OBSOL           rfstart
  160 75      STD             { int irix_sys_getrlimit64(int resource, \
  161                             struct irix_rlimit64 *rlp); }
  162 76      STD             { int irix_sys_setrlimit64(int resource, \
  163                             const struct irix_rlimit64 *rlp); }
  164 77      NOARGS          { int sys_nanosleep(const struct timespec *rqtp, \
  165                             struct timespec *rmtp); }
  166 78      STD             { irix_off64_t irix_sys_lseek64(int fd, int pad1, \
  167                             irix_off64_t offset, int whence, \
  168                             int pad2, int pad3, int pad4); }
  169 79      NOARGS          { int sys_rmdir(char *path); }
  170 80      NOARGS          { int sys_mkdir(char *path, int mode); }
  171 81      STD             { int irix_sys_getdents(int fildes, \
  172                             irix_dirent_t *buf, int nbytes); }
  173 82      STD             { long irix_sys_sginap (long ticks); }
  174 83      UNIMPL          sgikopt
  175 84      UNIMPL          sysfs
  176 85      NOARGS          { int svr4_sys_getmsg(int fd, struct svr4_strbuf *ctl, \
  177                             struct svr4_strbuf *dat, int *flags); }
  178 86      NOARGS          { int svr4_sys_putmsg(int fd, struct svr4_strbuf *ctl, \
  179                             struct svr4_strbuf *dat, int flags); }
  180 87      NOARGS          { int sys_poll(struct pollfd *fds, u_int nfds, \
  181                             int timeout); }
  182 88      STD             { int irix_sys_sigreturn(struct irix_sigcontext *scp, \
  183                             struct irix_ucontext *ucp, int signo); }
  184 89      NOARGS          { int compat_43_sys_accept(int s, \
  185                             struct sockaddr *name, int *anamelen); }
  186 90      NOARGS          { int sys_bind(int s, const struct sockaddr *name, \
  187                             int namelen); }
  188 91      NOARGS          { int sys_connect(int s, const struct sockaddr *name, \
  189                             int namelen); }
  190 92      NOARGS          { int32_t compat_43_sys_gethostid(void); }
  191 93      NOARGS          { int compat_43_sys_getpeername(int fdes, \
  192                             struct sockaddr *asa, int *alen); }
  193 94      NOARGS          { int compat_43_sys_getsockname(int fdes, \
  194                             struct sockaddr *asa, int *alen); }
  195 95      NOARGS          { int sys_getsockopt(int s, int level, int name, \
  196                             void *val, int *avalsize); }
  197 96      NOARGS          { int sys_listen(int s, int backlog); }
  198 97      NOARGS          { int compat_43_sys_recv(int s, void *buf, int len, \
  199                             int flags); }
  200 98      NOARGS          { ssize_t compat_43_sys_recvfrom(int s, void *buf, \
  201                             size_t len, int flags, struct sockaddr *from, \
  202                             int *fromlenaddr); }
  203 99      NOARGS          { ssize_t compat_43_sys_recvmsg(int s, \
  204                             struct msghdr *msg, int flags); }
  205 100     NOARGS          { int sys_select(int nd, fd_set *in, fd_set *ou, \
  206                             fd_set *ex, struct timeval *tv); }
  207 101     NOARGS          { int compat_43_sys_send(int s, void *buf, int len, \
  208                             int flags); }
  209 102     NOARGS          { ssize_t compat_43_sys_sendmsg(int s, \
  210                             const struct msghdr *msg, int flags); }
  211 103     NOARGS          { ssize_t sys_sendto(int s, const void *buf, \
  212                             size_t len, int flags, const struct sockaddr *to, \
  213                             int tolen); }
  214 104     NOARGS          { int compat_43_sys_sethostid(int32_t hostid); }
  215 105     NOARGS          { int sys_setsockopt(int s, int level, int name, \
  216                             const void *val, int valsize); }
  217 106     NOARGS          { int sys_shutdown(int s, int how); }
  218 107     NOARGS          { int svr4_sys_socket(int domain, int type, \
  219                             int protocol); }
  220 108     NOARGS          { int compat_43_sys_gethostname(char *hostname, \
  221                             u_int len); }
  222 109     NOARGS          { int compat_43_sys_sethostname(const char *hostname, \
  223                             u_int len); }
  224 110     NOARGS          { int compat_09_sys_getdomainname(char *domainname, \
  225                             int len); }
  226 111     NOARGS          { int compat_09_sys_setdomainname(char *domainname, \
  227                             int len); }
  228 112     NOARGS          { int sys_truncate(const char *path, long length); }
  229 113     NOARGS          { int sys_ftruncate(int fd, long length); }
  230 114     NOARGS          { int sys_rename(const char *from, const char *to); }
  231 115     NOARGS          { int sys_symlink(const char *path, \
  232                             const char *link); }
  233 116     NOARGS          { int sys_readlink(const char *path, char *buf, \
  234                             size_t count); }
  235 117     UNIMPL          lstat
  236 118     UNIMPL
  237 119     UNIMPL          nfs_svc
  238 120     UNIMPL          nfs_getfh
  239 121     UNIMPL          async_daemon
  240 122     UNIMPL          exportfs
  241 123     NOARGS          { int sys_setregid(gid_t rgid, gid_t egid); }
  242 124     NOARGS          { int sys_setreuid(uid_t ruid, uid_t euid); }
  243 125     NOARGS          { int sys_getitimer(u_int which, \
  244                             struct itimerval *itv); }
  245 126     NOARGS          { int sys_setitimer(u_int which, \
  246                             struct itimerval *itv, struct itimerval *oitv); }
  247 127     NOARGS          { int sys_adjtime(struct timeval *delta, \
  248                             struct timeval *olddelta); }
  249 128     NOARGS          { int svr4_sys_gettimeofday(struct timeval *tp); }
  250 129     STD             { irix_pid_t irix_sys_sproc(void *entry, \
  251                             unsigned int inh, void *arg); }
  252 130     STD             { ptrdiff_t irix_sys_prctl(unsigned int option, \
  253                             void *arg1); }
  254 131     STD             { int irix_sys_procblk(int cmd, pid_t pid, int count); }
  255 132     STD             { irix_pid_t irix_sys_sprocsp(void *entry, \
  256                             unsigned int inh, void *arg, void *sp, \
  257                             irix_size_t len); }
  258 133     UNIMPL          sgigsc
  259 134     STD             { void *irix_sys_mmap(void *addr, irix_size_t len, \
  260                             int prot, int flags, int fd, irix_off_t pos); }
  261 135     STD             { int irix_sys_munmap(void *addr, int len); }
  262 136     STD             { int irix_sys_mprotect(void *addr, \
  263                             int len, int prot); }
  264 137     NOARGS          { int sys___msync13(void *addr, \
  265                             size_t len, int flags); }
  266 138     UNIMPL          madvise
  267 139     UNIMPL          pagelock
  268 140     UNIMPL          getpagesize
  269 141     UNIMPL          quotactl
  270 142     UNIMPL
  271 143     NOARGS          { int sys_getpgrp(void); }
  272 144     STD             { int irix_sys_setpgrp(int pid, int pgid); }
  273 145     UNIMPL          vhangup
  274 146     NOARGS          { int sys_fsync(int fd); }
  275 147     NOARGS          { int sys_fchdir(int fd); }
  276 148     STD             { int irix_sys_getrlimit(int resource, \
  277                              struct irix_rlimit *rlp); }
  278 149     STD             { int irix_sys_setrlimit(int resource, \
  279                             const struct irix_rlimit *rlp); }
  280 150     UNIMPL          cacheflush
  281 151     UNIMPL          cachectl
  282 152     NOARGS          { int sys___posix_fchown(int fd, int uid, int gid); } \
  283                             fchown
  284 153     NOARGS          { int sys_fchmod(int fd, int mode); }
  285 154     UNIMPL          wait3
  286 155     UNIMPL          socketpair
  287 156     STD             { long irix_sys_systeminfo(int what, char *buf, \
  288                             long len); }
  289 157     STD             { int irix_sys_uname(struct irix_utsname *name); }
  290 158     STD             { int irix_sys_xstat(const int version, \
  291                             const char *path, struct stat *buf); }
  292 159     STD             { int irix_sys_lxstat(const int version, \
  293                             const char *path, struct stat *buf); }
  294 160     STD             { int irix_sys_fxstat(const int version, \
  295                             const int fd, struct stat *buf); }
  296 161     UNIMPL          xmknod
  297 162     STD             { int irix_sys_sigaction(int signum, \
  298                             const struct svr4_sigaction *nsa, \
  299                             struct svr4_sigaction *osa, void *sigtramp); }
  300 163     NOARGS          { int svr4_sys_sigpending(int what, \
  301                             svr4_sigset_t *set); }
  302 164     STD             { int irix_sys_sigprocmask(int how, \
  303                             const irix_sigset_t *set, \
  304                             irix_sigset_t *oset); }
  305 165     NOARGS          { int svr4_sys_sigsuspend( \
  306                             const svr4_sigset_t *set); }
  307 166     UNIMPL          sigpoll_sys
  308 167     STD             { int irix_sys_swapctl(int cmd, void *arg); }
  309 168     STD             { int irix_sys_getcontext(irix_ucontext_t *ucp); }
  310 169     STD             { int irix_sys_setcontext(const irix_ucontext_t *ucp); }
  311 170     STD             { int irix_sys_waitsys(int type, int pid, \
  312                             struct irix_irix5_siginfo *info, int options, \
  313                             struct rusage *ru); }
  314 171     UNIMPL          sigstack
  315 172     UNIMPL          sigaltstack
  316 173     UNIMPL          sigsendset
  317 174     NOARGS          { int svr4_sys_statvfs(const char *path, \
  318                             struct svr4_statvfs *fs); }
  319 175     NOARGS          { int svr4_sys_fstatvfs(int fd, \
  320                             struct svr4_statvfs *fs); }
  321 176     UNIMPL          getpmsg
  322 177     UNIMPL          putpmsg
  323 178     UNIMPL          lchown
  324 179     UNIMPL          priocntl
  325 180     UNIMPL          sigqueue
  326 181     NOARGS          { ssize_t sys_readv(int fd, \
  327                             const struct iovec *iovp, int iovcnt); }
  328 182     NOARGS          { ssize_t sys_writev(int fd, \
  329                             const struct iovec *iovp, int iovcnt); }
  330 183     NOARGS          { int sys_truncate(const char *path, int pad, \
  331                             off_t length); } truncate64
  332 184     NOARGS          { int sys_ftruncate(int fd, int pad, off_t length); } \
  333                             ftruncate64
  334 185     STD             { void *irix_sys_mmap64(void *addr, irix_size_t len, \
  335                             int prot, int flags, int fd, int pad1, \
  336                             irix_off_t pos); }
  337 186     UNIMPL          dmi
  338 187     NOARGS          { ssize_t svr4_sys_pread(int fd, void *buf, \
  339                             size_t nbyte, svr4_off_t off); }
  340 188     NOARGS          { ssize_t svr4_sys_pwrite(int fd, const void *buf, \
  341                             size_t nbyte, svr4_off_t off); }
  342 189     UNIMPL          fdatasync
  343 190     UNIMPL          sgifastpath
  344 191     UNIMPL          attr_get
  345 192     UNIMPL          attr_getf
  346 193     UNIMPL          attr_set
  347 194     UNIMPL          attr_setf
  348 195     UNIMPL          attr_remove
  349 196     UNIMPL          attr_removef
  350 197     UNIMPL          attr_list
  351 198     UNIMPL          attr_listf
  352 199     UNIMPL          attr_multi
  353 200     UNIMPL          attr_multif
  354 201     UNIMPL          statvfs64
  355 202     UNIMPL          fstatvfs64
  356 203     STD             { int irix_sys_getmountid(const char *path, \
  357                             irix_mountid_t *buf); }
  358 204     UNIMPL          nsproc
  359 205     STD             { int irix_sys_getdents64(int fildes, \
  360                             irix_dirent64_t *buf, int nbytes); }
  361 206     UNIMPL          afs_syscall
  362 207     STD             { int irix_sys_ngetdents(int fildes, \
  363                             irix_dirent_t *buf, unsigned short nbyte, \
  364                             int *eof); }
  365 208     STD             { int irix_sys_ngetdents64(int fildes, \
  366                             irix_dirent64_t *buf, unsigned short nbyte, \
  367                             int *eof); }
  368 209     UNIMPL          sgi_sesmgr
  369 210     STD             { irix_pid_t irix_sys_pidsprocsp(void *entry, \
  370                             unsigned int inh, void *arg, void *sp, \
  371                             irix_size_t len, irix_pid_t pid); }
  372 211     UNIMPL          rexec
  373 212     UNIMPL          timer_create
  374 213     UNIMPL          timer_delete
  375 214     UNIMPL          timer_settime
  376 215     UNIMPL          timer_gettime
  377 216     UNIMPL          timer_setoverrun
  378 217     UNIMPL          sched_rr_get_interval
  379 218     UNIMPL          sched_yield
  380 219     UNIMPL          sched_getscheduler
  381 220     UNIMPL          sched_setscheduler
  382 221     UNIMPL          sched_getparam
  383 222     UNIMPL          sched_setparam
  384 223     STD             { int irix_sys_usync_cntl(int cmd, void *arg); }
  385 224     UNIMPL          psema_cntl
  386 225     UNIMPL          restartreturn
  387 226     UNIMPL          sysget
  388 227     UNIMPL          xpg4_recvmsg
  389 228     UNIMPL          umfscall
  390 229     UNIMPL          nsproctid
  391 230     UNIMPL          rexec_complete
  392 231     UNIMPL          xpg4_sigaltstack
  393 232     UNIMPL          xpg4_sigaltstack
  394 233     UNIMPL          xpg4_setregid
  395 234     UNIMPL          linkfollow
  396 235     UNIMPL          utimets

Cache object: 7250dccfef99272d5e82422e427ccc1e


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.