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/sunos/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.82 2019/09/23 20:42:29 christos Exp $
    2 
    3 ;       @(#)syscalls.master     8.1 (Berkeley) 7/19/93
    4 
    5 ; NetBSD COMPAT_SUNOS 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_sysv.h"
   36 #endif
   37 
   38 #include <sys/param.h>
   39 #include <sys/systm.h>
   40 #include <sys/signal.h>
   41 #include <sys/mount.h>
   42 #include <sys/poll.h>
   43 #include <sys/sched.h>
   44 #include <sys/syscallargs.h>
   45 
   46 #include <compat/sunos/sunos.h>
   47 #include <compat/sunos/sunos_syscallargs.h>
   48 
   49 %%
   50 
   51 0       NOARGS          { int|sys||nosys(void); } syscall
   52 1       NOARGS          { int|sys||exit(int rval); }
   53 2       NOARGS          { int|sys||fork(void); }
   54 3       NOARGS          { int|sys||read(int fd, char *buf, u_int nbyte); }
   55 4       NOARGS          { int|sys||write(int fd, char *buf, u_int nbyte); }
   56 5       STD             { int|sunos_sys||open(const char *path, int flags, \
   57                             int mode); }
   58 6       NOARGS          { int|sys||close(int fd); }
   59 7       STD             { int|sunos_sys||wait4(int pid, int *status, \
   60                             int options, struct rusage50 *rusage); }
   61 8       STD             { int|sunos_sys||creat(const char *path, int mode); }
   62 9       NOARGS          { int|sys||link(char *path, char *link); }
   63 10      NOARGS          { int|sys||unlink(char *path); }
   64 11      STD             { int|sunos_sys||execv(const char *path, char **argp); }
   65 12      NOARGS          { int|sys||chdir(char *path); }
   66 13      OBSOL           old_time
   67 14      STD             { int|sunos_sys||mknod(const char *path, int mode, \
   68                             int dev); }
   69 15      NOARGS          { int|sys||chmod(char *path, int mode); }
   70 16      NOARGS          { int|sys||chown(char *path, int uid, int gid); }
   71 17      NOARGS          { int|sys||obreak(char *nsize); } break
   72 18      OBSOL           old_stat
   73 19      NOARGS          { long|compat_43_sys||lseek(int fd, long offset, int whence); }
   74 20      NOARGS          { pid_t|sys||getpid_with_ppid(void); }
   75 21      OBSOL           sunos_old_mount
   76 22      UNIMPL          System V umount
   77 23      NOARGS          { int|sys||setuid(uid_t uid); }
   78 24      NOARGS          { uid_t|sys||getuid_with_euid(void); }
   79 25      STD             { int|sunos_sys||stime(sunos_time_t *tp); }
   80 26      STD             { long|sunos_sys||ptrace(int req, pid_t pid, \
   81                             void *addr, int data, char *addr2); }
   82 27      UNIMPL          old_sunos_alarm
   83 28      UNIMPL          old_sunos_fstat
   84 29      UNIMPL          old_sunos_pause
   85 30      UNIMPL          old_sunos_utime
   86 31      UNIMPL          old_sunos_stty
   87 32      UNIMPL          old_sunos_gtty
   88 33      NOARGS          { int|sys||access(const char *path, int flags); }
   89 34      UNIMPL          old_sunos_nice
   90 35      UNIMPL          old_sunos_ftime
   91 36      NOARGS          { int|sys||sync(void); }
   92 37      NOARGS          { int|sys||kill(int pid, int signum); }
   93 38      NOARGS          { int|compat_43_sys||stat(const char *path, \
   94                             struct stat43 *ub); }
   95 39      UNIMPL          sunos_setpgrp
   96 40      NOARGS          { int|compat_43_sys||lstat(const char *path, \
   97                             struct stat43 *ub); }
   98 41      NOARGS          { int|sys||dup(int fd); }
   99 42      NOARGS          { int|sys||pipe(void); }
  100 43      UNIMPL          sunos_times
  101 44      NOARGS          { int|sys||profil(void *samples, u_int size, \
  102                             u_int offset, u_int scale); }
  103 45      UNIMPL
  104 46      NOARGS          { int|sys||setgid(uid_t gid); }
  105 47      NOARGS          { gid_t|sys||getgid_with_egid(void); }
  106 48      UNIMPL          sunos_ssig
  107 49      UNIMPL          reserved for USG
  108 50      UNIMPL          reserved for USG
  109 51      NOARGS          { int|sys||acct(char *path); }
  110 52      UNIMPL
  111 53      STD             { int|sunos_sys||mctl(void *addr, int len, int func, \
  112                             void *arg); }
  113 54      STD             { int|sunos_sys||ioctl(int fd, u_long com, \
  114                             void *data); }
  115 55      STD             { int|sunos_sys||reboot(int howto, char *bootstr); }
  116 56      OBSOL           sunos_owait3
  117 57      NOARGS          { int|sys||symlink(char *path, char *link); }
  118 58      NOARGS          { int|sys||readlink(char *path, char *buf, int count); }
  119 59      STD             { int|sunos_sys||execve(const char *path, char **argp, \
  120                             char **envp); }
  121 60      NOARGS          { int|sys||umask(int newmask); }
  122 61      NOARGS          { int|sys||chroot(char *path); }
  123 62      NOARGS          { int|compat_43_sys||fstat(int fd, struct stat43 *sb); }
  124 63      UNIMPL
  125 64      NOARGS          { int|compat_43_sys||getpagesize(void); }
  126 65      STD             { int|sunos_sys||omsync(void *addr, size_t len, \
  127                             int flags); }
  128 66      NOARGS          { int|sys||vfork(void); }
  129 67      OBSOL           vread
  130 68      OBSOL           vwrite
  131 69      OBSOL           sbrk
  132 70      OBSOL           sstk
  133 71      STD             { void *|sunos_sys||mmap(void *addr, size_t len, \
  134                             int prot, int flags, int fd, long pos); }
  135 72      NOARGS          { int|sys||ovadvise(int anom); } vadvise
  136 73      NOARGS          { int|sys||munmap(void *addr, size_t len); }
  137 74      NOARGS          { int|sys||mprotect(void *addr, size_t len, \
  138                             int prot); }
  139 75      NOARGS          { int|sys||madvise(void *addr, size_t len, \
  140                             int behav); }
  141 76      STD             { int|sunos_sys||vhangup(void); }
  142 77      UNIMPL          vlimit
  143 78      NOARGS          { int|sys||mincore(void *addr, size_t len, \
  144                             char *vec); }
  145 79      NOARGS          { int|sys||getgroups(u_int gidsetsize, gid_t *gidset); }
  146 80      NOARGS          { int|sys||setgroups(u_int gidsetsize, gid_t *gidset); }
  147 81      NOARGS          { int|sys||getpgrp(void); }
  148 82      STD             { int|sunos_sys||setpgrp(int pid, int pgid); }
  149 83      NOARGS          { int|compat_50_sys||setitimer(u_int which, \
  150                             struct itimerval50 *itv, \
  151                             struct itimerval50 *oitv); }
  152 84      UNIMPL          sunos_sys_wait
  153 85      NOARGS          { int|compat_12_sys||swapon(char *name); }
  154 86      NOARGS          { int|compat_50_sys||getitimer(u_int which, \
  155                             struct itimerval50 *itv); }
  156 87      NOARGS          { int|compat_43_sys||gethostname(char *hostname, \
  157                             u_int len); }
  158 88      NOARGS          { int|compat_43_sys||sethostname(char *hostname, \
  159                             u_int len); }
  160 89      NOARGS          { int|compat_43_sys||getdtablesize(void); }
  161 90      NOARGS          { int|sys||dup2(int from, int to); }
  162 91      UNIMPL          getdopt
  163 92      STD             { int|sunos_sys||fcntl(int fd, int cmd, void *arg); }
  164 93      NOARGS          { int|compat_50_sys||select(u_int nd, fd_set *in, \
  165                             fd_set *ou, fd_set *ex, struct timeval50 *tv); }
  166 94      UNIMPL          setdopt
  167 95      NOARGS          { int|sys||fsync(int fd); }
  168 96      NOARGS          { int|sys||setpriority(int which, int who, int prio); }
  169 97      STD             { int|sunos_sys||socket(int domain, int type, int protocol); }
  170 98      NOARGS          { int|sys||connect(int s, void *name, int namelen); }
  171 99      NOARGS          { int|compat_43_sys||accept(int s, void *name, \
  172                             int *anamelen); }
  173 100     NOARGS          { int|sys||getpriority(int which, int who); }
  174 101     NOARGS          { int|compat_43_sys||send(int s, void *buf, int len, \
  175                             int flags); }
  176 102     NOARGS          { int|compat_43_sys||recv(int s, void *buf, int len, \
  177                             int flags); }
  178 103     UNIMPL          old socketaddr
  179 104     NOARGS          { int|sys||bind(int s, void *name, int namelen); }
  180 105     STD             { int|sunos_sys||setsockopt(int s, int level, int name, \
  181                             void *val, u_int valsize); }
  182 106     NOARGS          { int|sys||listen(int s, int backlog); }
  183 107     UNIMPL          vtimes
  184 108     STD             { int|sunos_sys||sigvec(int signum, struct sigvec *nsv, \
  185                             struct sigvec *osv); }
  186 109     NOARGS          { int|compat_43_sys||sigblock(int mask); }
  187 110     NOARGS          { int|compat_43_sys||sigsetmask(int mask); }
  188 111     STD             { int|sunos_sys||sigsuspend(int mask); }
  189 112     NOARGS          { int|compat_43_sys||sigstack(struct sigstack *nss, \
  190                             struct sigstack *oss); }
  191 113     NOARGS          { int|compat_43_sys||recvmsg(int s, \
  192                             struct omsghdr *msg, int flags); }
  193 114     NOARGS          { int|compat_43_sys||sendmsg(int s, void *msg, \
  194                             int flags); }
  195 115     OBSOL           vtrace
  196 116     NOARGS          { int|compat_50_sys||gettimeofday(struct timeval50 *tp, \
  197                             struct timezone *tzp); }
  198 117     NOARGS          { int|compat_50_sys||getrusage(int who, \
  199                             struct rusage50 *rusage); }
  200 118     NOARGS          { int|sys||getsockopt(int s, int level, int name, \
  201                             void *val, int *avalsize); }
  202 119     UNIMPL
  203 120     NOARGS          { int|sys||readv(int fd, struct iovec *iovp, \
  204                             u_int iovcnt); }
  205 121     NOARGS          { int|sys||writev(int fd, struct iovec *iovp, \
  206                             u_int iovcnt); }
  207 122     NOARGS          { int|compat_50_sys||settimeofday(struct timeval50 *tv, \
  208                             struct timezone *tzp); }
  209 123     NOARGS          { int|sys||fchown(int fd, int uid, int gid); }
  210 124     NOARGS          { int|sys||fchmod(int fd, int mode); }
  211 125     NOARGS          { int|compat_43_sys||recvfrom(int s, void *buf, \
  212                             size_t len, int flags, void *from, \
  213                             int *fromlenaddr); }
  214 126     NOARGS          { int|sys||setreuid(int ruid, int euid); }
  215 127     NOARGS          { int|sys||setregid(int rgid, int egid); }
  216 128     NOARGS          { int|sys||rename(char *from, char *to); }
  217 129     NOARGS          { int|compat_43_sys||truncate(char *path, long length); }
  218 130     NOARGS          { int|compat_43_sys||ftruncate(int fd, long length); }
  219 131     NOARGS          { int|sys||flock(int fd, int how); }
  220 132     UNIMPL
  221 133     NOARGS          { int|sys||sendto(int s, void *buf, size_t len, \
  222                             int flags, void *to, int tolen); }
  223 134     NOARGS          { int|sys||shutdown(int s, int how); }
  224 135     STD             { int|sunos_sys||socketpair(int domain, int type, \
  225                             int protocol, int *rsv); }
  226 136     NOARGS          { int|sys||mkdir(char *path, int mode); }
  227 137     NOARGS          { int|sys||rmdir(char *path); }
  228 138     NOARGS          { int|compat_50_sys||utimes(char *path, \
  229                             struct timeval50 *tptr); }
  230 139     STD             { int|sunos_sys||sigreturn(struct sigcontext *sigcntxp); }
  231 140     NOARGS          { int|compat_50_sys||adjtime(struct timeval50 *delta, \
  232                             struct timeval50 *olddelta); }
  233 141     NOARGS          { int|compat_43_sys||getpeername(int fdes, void *asa, \
  234                             int *alen); }
  235 142     NOARGS          { int|compat_43_sys||gethostid(void); }
  236 143     UNIMPL          old sethostid
  237 144     STD             { int|sunos_sys||getrlimit(u_int which, \
  238                             struct orlimit *rlp); }
  239 145     STD             { int|sunos_sys||setrlimit(u_int which, \
  240                             struct orlimit *rlp); }
  241 146     NOARGS          { int|compat_43_sys||killpg(int pgid, int signum); }
  242 147     UNIMPL
  243 148     UNIMPL
  244 149     UNIMPL
  245 150     NOARGS          { int|compat_43_sys||getsockname(int fdes, void *asa, \
  246                             int *alen); }
  247 151     UNIMPL          getmsg
  248 152     UNIMPL          putmsg
  249 153     NOARGS          { int|sys||poll(struct pollfd *fds, u_int nfds, \
  250                             int timeout); }
  251 154     UNIMPL
  252 155     UNIMPL          nfssvc
  253 156     NOARGS          { int|compat_12_sys||getdirentries(int fd, char *buf, \
  254                             u_int count, long *basep); }
  255 157     STD             { int|sunos_sys||statfs(const char *path, \
  256                             struct sunos_statfs *buf); }
  257 158     STD             { int|sunos_sys||fstatfs(int fd, \
  258                             struct sunos_statfs *buf); }
  259 159     STD             { int|sunos_sys||unmount(char *path); }
  260 160     NOARGS          { int|async||daemon(void); }
  261 161     NOARGS          { int|compat_30_sys||getfh(char *fname, fhandle_t *fhp); }
  262 #ifdef COMPAT_09
  263 162     NOARGS          { int|compat_09_sys||getdomainname(char *domainname, \
  264                             int len); }
  265 163     NOARGS          { int|compat_09_sys||setdomainname(char *domainname, \
  266                             int len); }
  267 #else
  268 162     UNIMPL          compat_09_sys_getdomainname
  269 163     UNIMPL          compat_09_sys_setdomainname
  270 #endif
  271 164     UNIMPL          rtschedule
  272 165     STD             { int|sunos_sys||quotactl(int cmd, char *special, \
  273                             int uid, void *addr); }
  274 166     STD             { int|sunos_sys||exportfs(char *path, char *ex); }
  275 167     STD             { int|sunos_sys||mount(char *type, char *dir, \
  276                             int flags, void *data); }
  277 168     STD             { int|sunos_sys||ustat(int dev, \
  278                             struct sunos_ustat *buf); }
  279 #if defined(SYSVSEM) && defined(COMPAT_10)
  280 169     NOARGS          { int|compat_10_sys||semsys(int which, int a2, int a3, \
  281                             int a4, int a5); }
  282 #else
  283 169     UNIMPL          semsys
  284 #endif
  285 #if defined(SYSVMSG) && defined(COMPAT_10)
  286 170     NOARGS          { int|compat_10_sys||msgsys(int which, int a2, int a3, \
  287                             int a4, int a5, int a6); }
  288 #else
  289 170     UNIMPL          msgsys
  290 #endif
  291 #if defined(SYSVSHM) && defined(COMPAT_10)
  292 171     NOARGS          { int|compat_10_sys||shmsys(int which, int a2, int a3, \
  293                             int a4); }
  294 #else
  295 171     UNIMPL          shmsys
  296 #endif
  297 172     STD             { int|sunos_sys||auditsys(char *record); }
  298 173     UNIMPL          rfssys
  299 174     STD             { int|sunos_sys||getdents(int fd, char *buf, \
  300                             int nbytes); }
  301 175     NOARGS          { int|sys||setsid(void); }
  302 176     NOARGS          { int|sys||fchdir(int fd); }
  303 177     NOARGS          { int|sys||fchroot(int fd); }
  304 178     UNIMPL          vpixsys
  305 179     UNIMPL          aioread
  306 180     UNIMPL          aiowrite
  307 181     UNIMPL          aiowait
  308 182     UNIMPL          aiocancel
  309 183     STD             { int|sunos_sys||sigpending(int *mask); }
  310 184     UNIMPL
  311 185     NOARGS          { int|sys||setpgid(int pid, int pgid); }
  312 186     NOARGS          { long|sys||pathconf(char *path, int name); }
  313 187     NOARGS          { long|sys||fpathconf(int fd, int name); }
  314 188     STD             { int|sunos_sys||sysconf(int name); }
  315 189     STD             { int|sunos_sys||uname(struct sunos_utsname *name); }

Cache object: 557499c765f29fa62e00533c69355a3b


[ 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.