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/freebsd32/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  $FreeBSD: releng/5.2/sys/compat/freebsd32/syscalls.master 123522 2003-12-13 22:18:27Z peter $
    2 ;       from: @(#)syscalls.master       8.2 (Berkeley) 1/13/94
    3 ;       from: src/sys/kern/syscalls.master 1.107
    4 ;
    5 ; System call name/number master file.
    6 ; Processed to created init_sysent.c, syscalls.c and syscall.h.
    7 
    8 ; Columns: number [M]type nargs namespc name alt{name,tag,rtyp}/comments
    9 ;       number  system call number, must be in order
   10 ;       type    one of [M]STD, [M]OBSOL, [M]UNIMPL, [M]COMPAT, [M]CPT_NOA,
   11 ;               [M]LIBCOMPAT, [M]NODEF,  [M]NOARGS,  [M]NOPROTO,  [M]NOIMPL,
   12 ;               [M]NOSTD
   13 ;       namespc one of POSIX, BSD, NOHIDE
   14 ;       name    psuedo-prototype of syscall routine
   15 ;               If one of the following alts is different, then all appear:
   16 ;       altname name of system call if different
   17 ;       alttag  name of args struct tag if different from [o]`name'"_args"
   18 ;       altrtyp return type if not int (bogus - syscalls always return int)
   19 ;               for UNIMPL/OBSOL, name continues with comments
   20 
   21 ; types:
   22 ;       [M]     e.g. like MSTD -- means the system call is MP-safe.  If no
   23 ;               M prefix is used, the syscall wrapper will obtain the Giant
   24 ;               lock for the syscall.
   25 ;       STD     always included
   26 ;       COMPAT  included on COMPAT #ifdef
   27 ;       LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
   28 ;       OBSOL   obsolete, not included in system, only specifies name
   29 ;       UNIMPL  not implemented, placeholder only
   30 ;       NOSTD   implemented but as a lkm that can be statically
   31 ;                       compiled in sysent entry will be filled with lkmsys
   32 ;                       so the SYSCALL_MODULE macro works
   33 
   34 ; #ifdef's, etc. may be included, and are copied to the output files.
   35 
   36 #include <sys/param.h>
   37 #include <sys/sysent.h>
   38 #include <sys/sysproto.h>
   39 #include <sys/mount.h>
   40 #include <compat/freebsd32/freebsd32.h>
   41 #include <compat/freebsd32/freebsd32_proto.h>
   42 
   43 ; Reserved/unimplemented system calls in the range 0-150 inclusive
   44 ; are reserved for use in future Berkeley releases.
   45 ; Additional system calls implemented in vendor and other
   46 ; redistributions should be placed in the reserved range at the end
   47 ; of the current calls.
   48 
   49 0       MNOPROTO NOHIDE { int nosys(void); } syscall nosys_args int
   50 1       MNOPROTO NOHIDE { void sys_exit(int rval); } exit sys_exit_args void
   51 2       MNOPROTO POSIX  { int fork(void); }
   52 3       MNOPROTO POSIX  { ssize_t read(int fd, void *buf, size_t nbyte); }
   53 4       MNOPROTO POSIX  { ssize_t write(int fd, const void *buf, size_t nbyte); }
   54 5       STD     POSIX   { int freebsd32_open(char *path, int flags, int mode); }
   55 ; XXX should be         { int open(const char *path, int flags, ...); }
   56 ; but we're not ready for `const' or varargs.
   57 ; XXX man page says `mode_t mode'.
   58 6       MNOPROTO POSIX  { int close(int fd); }
   59 7       MSTD BSD        { int freebsd32_wait4(int pid, int *status, int options, \
   60                             struct rusage32 *rusage); }
   61 8       OBSOL   BSD     old creat
   62 9       NOPROTO POSIX   { int link(char *path, char *link); }
   63 10      NOPROTO POSIX   { int unlink(char *path); }
   64 11      OBSOL   NOHIDE  execv
   65 12      NOPROTO POSIX   { int chdir(char *path); }
   66 13      NOPROTO BSD     { int fchdir(int fd); }
   67 14      NOPROTO POSIX   { int mknod(char *path, int mode, int dev); }
   68 15      NOPROTO POSIX   { int chmod(char *path, int mode); }
   69 16      NOPROTO POSIX   { int chown(char *path, int uid, int gid); }
   70 17      MNOPROTO BSD    { int obreak(char *nsize); } break obreak_args int
   71 18      STD     BSD     { int freebsd32_getfsstat(struct statfs32 *buf, \
   72                             long bufsize, int flags); }
   73 19      OBSOL   POSIX   olseek
   74 20      MNOPROTO POSIX  { pid_t getpid(void); }
   75 21      NOPROTO BSD     { int mount(char *type, char *path, int flags, \
   76                             caddr_t data); }
   77 ; XXX `path' should have type `const char *' but we're not ready for that.
   78 22      NOPROTO BSD     { int unmount(char *path, int flags); }
   79 23      MNOPROTO POSIX  { int setuid(uid_t uid); }
   80 24      MNOPROTO POSIX  { uid_t getuid(void); }
   81 25      MNOPROTO POSIX  { uid_t geteuid(void); }
   82 26      MNOPROTO BSD    { int ptrace(int req, pid_t pid, caddr_t addr, \
   83                             int data); }
   84 ; XXX implement
   85 27      UNIMPL  BSD     recvmsg
   86 28      MNOPROTO BSD    { int sendmsg(int s, caddr_t msg, int flags); }
   87 29      MNOPROTO BSD    { int recvfrom(int s, caddr_t buf, size_t len, \
   88                             int flags, caddr_t from, int *fromlenaddr); }
   89 30      MNOPROTO BSD    { int accept(int s, caddr_t name, int *anamelen); }
   90 31      MNOPROTO BSD    { int getpeername(int fdes, caddr_t asa, int *alen); }
   91 32      MNOPROTO BSD    { int getsockname(int fdes, caddr_t asa, int *alen); }
   92 33      STD     POSIX   { int freebsd32_access(char *path, int flags); }
   93 34      STD     BSD     { int freebsd32_chflags(char *path, int flags); }
   94 35      NOPROTO BSD     { int fchflags(int fd, int flags); }
   95 36      NOPROTO BSD     { int sync(void); }
   96 37      MNOPROTO POSIX  { int kill(int pid, int signum); }
   97 38      UNIMPL  POSIX   ostat
   98 39      MNOPROTO POSIX  { pid_t getppid(void); }
   99 40      UNIMPL  POSIX   olstat
  100 41      MNOPROTO POSIX  { int dup(u_int fd); }
  101 42      MNOPROTO POSIX  { int pipe(void); }
  102 43      MNOPROTO POSIX  { gid_t getegid(void); }
  103 44      MNOPROTO BSD    { int profil(caddr_t samples, size_t size, \
  104                             size_t offset, u_int scale); }
  105 45      MNOPROTO BSD    { int ktrace(const char *fname, int ops, int facs, \
  106                             int pid); }
  107 46      UNIMPL  POSIX   osigaction
  108 47      MNOPROTO POSIX  { gid_t getgid(void); }
  109 48      UNIMPL  POSIX   osigprocmask
  110 49      MNOPROTO BSD    { int getlogin(char *namebuf, u_int namelen); }
  111 50      MNOPROTO BSD    { int setlogin(char *namebuf); }
  112 51      MNOPROTO BSD    { int acct(char *path); }
  113 52      OBSOL   POSIX   osigpending
  114 53      MSTD    BSD     { int freebsd32_sigaltstack(struct sigaltstack32 *ss, \
  115                             struct sigaltstack32 *oss); }
  116 54      MNOPROTO POSIX  { int ioctl(int fd, u_long com, caddr_t data); }
  117 55      MNOPROTO BSD    { int reboot(int opt); }
  118 56      NOPROTO POSIX   { int revoke(char *path); }
  119 57      NOPROTO POSIX   { int symlink(char *path, char *link); }
  120 58      NOPROTO POSIX   { int readlink(char *path, char *buf, int count); }
  121 59      STD      POSIX  { int freebsd32_execve(char *fname, u_int32_t *argv, \
  122                             u_int32_t *envv); }
  123 60      MNOPROTO POSIX  { int umask(int newmask); } umask umask_args int
  124 61      NOPROTO BSD     { int chroot(char *path); }
  125 62      OBSOL   POSIX   ofstat
  126 63      OBSOL   BSD     ogetkerninfo
  127 64      OBSOL   BSD     ogetpagesize
  128 ; XXX implement (not OBSOL at all)
  129 65      OBSOL   BSD     omsync
  130 66      MNOPROTO BSD    { int vfork(void); }
  131 67      OBSOL   NOHIDE  vread
  132 68      OBSOL   NOHIDE  vwrite
  133 69      MNOPROTO BSD    { int sbrk(int incr); }
  134 70      MNOPROTO BSD    { int sstk(int incr); }
  135 71      OBSOL   BSD     ommap
  136 72      MNOPROTO BSD    { int ovadvise(int anom); } vadvise ovadvise_args int
  137 73      MNOPROTO BSD    { int munmap(void *addr, size_t len); }
  138 74      MNOPROTO BSD    { int mprotect(const void *addr, size_t len, \
  139                             int prot); }
  140 75      MNOPROTO BSD    { int madvise(void *addr, size_t len, int behav); }
  141 76      OBSOL   NOHIDE  vhangup
  142 77      OBSOL   NOHIDE  vlimit
  143 78      MNOPROTO BSD    { int mincore(const void *addr, size_t len, \
  144                             char *vec); }
  145 79      MNOPROTO POSIX  { int getgroups(u_int gidsetsize, gid_t *gidset); }
  146 80      MNOPROTO POSIX  { int setgroups(u_int gidsetsize, gid_t *gidset); }
  147 81      MNOPROTO POSIX  { int getpgrp(void); }
  148 82      MNOPROTO POSIX  { int setpgid(int pid, int pgid); }
  149 83      STD     BSD     { int freebsd32_setitimer(u_int which, \
  150                             struct itimerval32 *itv, \
  151                             struct itimerval32 *oitv); }
  152 84      OBSOL   BSD     owait
  153 ; XXX implement
  154 85      OBSOL   BSD     oswapon
  155 ; XXX implement
  156 86      OBSOL   BSD     ogetitimer
  157 87      OBSOL   BSD     ogethostname
  158 88      OBSOL   BSD     osethostname
  159 89      MNOPROTO BSD    { int getdtablesize(void); }
  160 90      MNOPROTO POSIX  { int dup2(u_int from, u_int to); }
  161 91      UNIMPL  BSD     getdopt
  162 92      MNOPROTO POSIX  { int fcntl(int fd, int cmd, long arg); }
  163 ; XXX should be         { int fcntl(int fd, int cmd, ...); }
  164 ; but we're not ready for varargs.
  165 ; XXX man page says `int arg' too.
  166 93      STD     BSD     { int freebsd32_select(int nd, fd_set *in, fd_set *ou, \
  167                             fd_set *ex, struct timeval32 *tv); }
  168 ; XXX need to override for big-endian - little-endian should work fine.
  169 94      UNIMPL  BSD     setdopt
  170 95      NOPROTO POSIX   { int fsync(int fd); }
  171 96      MNOPROTO BSD    { int setpriority(int which, int who, int prio); }
  172 97      MNOPROTO BSD    { int socket(int domain, int type, int protocol); }
  173 98      MNOPROTO BSD    { int connect(int s, caddr_t name, int namelen); }
  174 99      OBSOL   BSD     oaccept
  175 100     MNOPROTO BSD    { int getpriority(int which, int who); }
  176 101     OBSOL   BSD     osend
  177 102     OBSOL   BSD     orecv
  178 103     OBSOL   BSD     osigreturn
  179 104     MNOPROTO BSD    { int bind(int s, caddr_t name, int namelen); }
  180 105     MNOPROTO BSD    { int setsockopt(int s, int level, int name, \
  181                             caddr_t val, int valsize); }
  182 106     MNOPROTO BSD    { int listen(int s, int backlog); }
  183 107     OBSOL   NOHIDE  vtimes
  184 108     OBSOL   BSD     osigvec
  185 109     OBSOL   BSD     osigblock
  186 110     OBSOL   BSD     osigsetmask
  187 111     OBSOL   POSIX   osigsuspend
  188 112     OBSOL   BSD     osigstack
  189 113     OBSOL   BSD     orecvmsg
  190 114     OBSOL   BSD     osendmsg
  191 115     OBSOL   NOHIDE  vtrace
  192 116     STD     BSD     { int freebsd32_gettimeofday(struct timeval32 *tp, \
  193                             struct timezone *tzp); }
  194 117     STD     BSD     { int freebsd32_getrusage(int who, \
  195                             struct rusage32 *rusage); }
  196 118     MNOPROTO BSD    { int getsockopt(int s, int level, int name, \
  197                             caddr_t val, int *avalsize); }
  198 119     UNIMPL  NOHIDE  resuba (BSD/OS 2.x)
  199 120     STD     BSD     { int freebsd32_readv(int fd, struct iovec32 *iovp, \
  200                             u_int iovcnt); }
  201 121     STD     BSD     { int freebsd32_writev(int fd, struct iovec32 *iovp, \
  202                             u_int iovcnt); }
  203 122     STD     BSD     { int freebsd32_settimeofday(struct timeval32 *tv, \
  204                             struct timezone *tzp); }
  205 123     NOPROTO BSD     { int fchown(int fd, int uid, int gid); }
  206 124     NOPROTO BSD     { int fchmod(int fd, int mode); }
  207 125     OBSOL   BSD     orecvfrom
  208 126     MNOPROTO BSD    { int setreuid(int ruid, int euid); }
  209 127     MNOPROTO BSD    { int setregid(int rgid, int egid); }
  210 128     NOPROTO POSIX   { int rename(char *from, char *to); }
  211 129     OBSOL   BSD     otruncate
  212 130     OBSOL   BSD     ftruncate
  213 131     MNOPROTO BSD    { int flock(int fd, int how); }
  214 132     NOPROTO POSIX   { int mkfifo(char *path, int mode); }
  215 133     MNOPROTO BSD    { int sendto(int s, caddr_t buf, size_t len, \
  216                             int flags, caddr_t to, int tolen); }
  217 134     MNOPROTO BSD    { int shutdown(int s, int how); }
  218 135     MNOPROTO BSD    { int socketpair(int domain, int type, int protocol, \
  219                             int *rsv); }
  220 136     NOPROTO POSIX   { int mkdir(char *path, int mode); }
  221 137     NOPROTO POSIX   { int rmdir(char *path); }
  222 138     STD     BSD     { int freebsd32_utimes(char *path, \
  223                             struct timeval32 *tptr); }
  224 139     OBSOL   NOHIDE  4.2 sigreturn
  225 140     STD     BSD     { int freebsd32_adjtime(struct timeval32 *delta, \
  226                             struct timeval32 *olddelta); }
  227 141     OBSOL   BSD     ogetpeername
  228 142     OBSOL   BSD     ogethostid
  229 143     OBSOL   BSD     sethostid
  230 144     OBSOL   BSD     getrlimit
  231 145     OBSOL   BSD     setrlimit
  232 146     OBSOL   BSD     killpg
  233 147     MNOPROTO POSIX  { int setsid(void); }
  234 148     NOPROTO BSD     { int quotactl(char *path, int cmd, int uid, \
  235                             caddr_t arg); }
  236 149     OBSOL BSD       oquota
  237 150     OBSOL BSD       ogetsockname
  238 
  239 ; Syscalls 151-180 inclusive are reserved for vendor-specific
  240 ; system calls.  (This includes various calls added for compatibity
  241 ; with other Unix variants.)
  242 ; Some of these calls are now supported by BSD...
  243 151     UNIMPL  NOHIDE  sem_lock (BSD/OS 2.x)
  244 152     UNIMPL  NOHIDE  sem_wakeup (BSD/OS 2.x)
  245 153     UNIMPL  NOHIDE  asyncdaemon (BSD/OS 2.x)
  246 154     UNIMPL  NOHIDE  nosys
  247 ; 155 is initialized by the NFS code, if present.
  248 155     UNIMPL  NOHIDE  nfssvc
  249 156     OBSOL   BSD     ogetdirentries
  250 157     STD     BSD     { int freebsd32_statfs(char *path, \
  251                             struct statfs32 *buf); }
  252 158     STD     BSD     { int freebsd32_fstatfs(int fd, struct statfs32 *buf); }
  253 159     UNIMPL  NOHIDE  nosys
  254 160     UNIMPL  NOHIDE  nosys
  255 161     NOPROTO BSD     { int getfh(char *fname, struct fhandle *fhp); }
  256 162     MNOPROTO BSD    { int getdomainname(char *domainname, int len); }
  257 163     MNOPROTO BSD    { int setdomainname(char *domainname, int len); }
  258 164     MNOPROTO BSD    { int uname(struct utsname *name); }
  259 165     MNOPROTO BSD    { int sysarch(int op, char *parms); }
  260 166     MNOPROTO BSD    { int rtprio(int function, pid_t pid, \
  261                             struct rtprio *rtp); }
  262 167     UNIMPL  NOHIDE  nosys
  263 168     UNIMPL  NOHIDE  nosys
  264 169     STD     BSD     { int freebsd32_semsys(int which, int a2, int a3, \
  265                             int a4, int a5); }
  266 170     STD     BSD     { int freebsd32_msgsys(int which, int a2, int a3, \
  267                             int a4, int a5, int a6); }
  268 171     STD     BSD     { int freebsd32_shmsys(int which, int a2, int a3, \
  269                             int a4); }
  270 172     UNIMPL  NOHIDE  nosys
  271 173     STD POSIX       { ssize_t freebsd32_pread(int fd, void *buf, \
  272                             size_t nbyte, int pad, u_int32_t offsetlo, \
  273                             u_int32_t offsethi); }
  274 ; XXX note - bigendian is different
  275 174     STD     POSIX   { ssize_t freebsd32_pwrite(int fd, const void *buf, \
  276                             size_t nbyte, int pad, u_int32_t offsetlo, \
  277                             u_int32_t offsethi); }
  278 ; XXX note - bigendian is different
  279 175     UNIMPL  NOHIDE  nosys
  280 176     MNOPROTO BSD    { int ntp_adjtime(struct timex *tp); }
  281 177     UNIMPL  NOHIDE  sfork (BSD/OS 2.x)
  282 178     UNIMPL  NOHIDE  getdescriptor (BSD/OS 2.x)
  283 179     UNIMPL  NOHIDE  setdescriptor (BSD/OS 2.x)
  284 180     UNIMPL  NOHIDE  nosys
  285 
  286 ; Syscalls 181-199 are used by/reserved for BSD
  287 181     MNOPROTO POSIX  { int setgid(gid_t gid); }
  288 182     MNOPROTO BSD    { int setegid(gid_t egid); }
  289 183     MNOPROTO BSD    { int seteuid(uid_t euid); }
  290 184     UNIMPL  BSD     lfs_bmapv
  291 185     UNIMPL  BSD     lfs_markv
  292 186     UNIMPL  BSD     lfs_segclean
  293 187     UNIMPL  BSD     lfs_segwait
  294 188     STD     POSIX   { int freebsd32_stat(char *path, struct stat32 *ub); }
  295 189     STD     POSIX   { int freebsd32_fstat(int fd, struct stat32 *ub); }
  296 190     STD     POSIX   { int freebsd32_lstat(char *path, struct stat32 *ub); }
  297 191     NOPROTO POSIX   { int pathconf(char *path, int name); }
  298 192     MNOPROTO POSIX  { int fpathconf(int fd, int name); }
  299 193     UNIMPL  NOHIDE  nosys
  300 194     MNOPROTO BSD    { int getrlimit(u_int which, \
  301                             struct rlimit *rlp); } \
  302                             getrlimit __getrlimit_args int
  303 195     MNOPROTO BSD    { int setrlimit(u_int which, \
  304                             struct rlimit *rlp); } \
  305                             setrlimit __setrlimit_args int
  306 196     NOPROTO BSD     { int getdirentries(int fd, char *buf, u_int count, \
  307                             long *basep); }
  308 197     STD BSD         { caddr_t freebsd32_mmap(caddr_t addr, size_t len, \
  309                             int prot, int flags, int fd, int pad, \
  310                             u_int32_t poslo, u_int32_t poshi); }
  311 198     NOPROTO NOHIDE  { int nosys(void); } __syscall __syscall_args int
  312 ; XXX note - bigendian is different
  313 199     STD     POSIX   { off_t freebsd32_lseek(int fd, int pad, \
  314                             u_int32_t offsetlo, u_int32_t offsethi, \
  315                             int whence); }
  316 ; XXX note - bigendian is different
  317 200     STD     BSD     { int freebsd32_truncate(char *path, int pad, \
  318                             u_int32_t lengthlo, u_int32_t lengthhi); }
  319 ; XXX note - bigendian is different
  320 201     STD     BSD     { int freebsd32_ftruncate(int fd, int pad, \
  321                             u_int32_t lengthlo, u_int32_t lengthhi); }
  322 202     MSTD BSD        { int freebsd32_sysctl(int *name, u_int namelen, \
  323                             void *old, u_int32_t *oldlenp, void *new, \
  324                             u_int32_t newlen); }
  325 203     MNOPROTO BSD    { int mlock(const void *addr, size_t len); }
  326 204     MNOPROTO BSD    { int munlock(const void *addr, size_t len); }
  327 205     NOPROTO BSD     { int undelete(char *path); }
  328 206     NOPROTO BSD     { int futimes(int fd, struct timeval *tptr); }
  329 207     MNOPROTO BSD    { int getpgid(pid_t pid); }
  330 208     UNIMPL  NOHIDE  newreboot (NetBSD)
  331 209     MNOPROTO BSD    { int poll(struct pollfd *fds, u_int nfds, \
  332                             int timeout); }
  333 
  334 ;
  335 ; The following are reserved for loadable syscalls
  336 ;
  337 210     UNIMPL  NOHIDE
  338 211     UNIMPL  NOHIDE
  339 212     UNIMPL  NOHIDE
  340 213     UNIMPL  NOHIDE
  341 214     UNIMPL  NOHIDE
  342 215     UNIMPL  NOHIDE
  343 216     UNIMPL  NOHIDE
  344 217     UNIMPL  NOHIDE
  345 218     UNIMPL  NOHIDE
  346 219     UNIMPL  NOHIDE
  347 
  348 ;
  349 ; The following were introduced with NetBSD/4.4Lite-2
  350 ; They are initialized by thier respective modules/sysinits
  351 220     MNOPROTO        BSD     { int __semctl(int semid, int semnum, int cmd, \
  352                             union semun *arg); }
  353 221     MNOPROTO        BSD     { int semget(key_t key, int nsems, int semflg); }
  354 222     MNOPROTO        BSD     { int semop(int semid, struct sembuf *sops, \
  355                             u_int nsops); }
  356 223     UNIMPL  NOHIDE  semconfig
  357 224     MNOPROTO        BSD     { int msgctl(int msqid, int cmd, \
  358                             struct msqid_ds *buf); }
  359 225     MNOPROTO        BSD     { int msgget(key_t key, int msgflg); }
  360 226     MNOPROTO        BSD     { int msgsnd(int msqid, void *msgp, size_t msgsz, \
  361                             int msgflg); }
  362 227     MNOPROTO        BSD     { int msgrcv(int msqid, void *msgp, size_t msgsz, \
  363                             long msgtyp, int msgflg); }
  364 228     MNOPROTO        BSD     { int shmat(int shmid, void *shmaddr, int shmflg); }
  365 229     MNOPROTO        BSD     { int shmctl(int shmid, int cmd, \
  366                             struct shmid_ds *buf); }
  367 230     MNOPROTO        BSD     { int shmdt(void *shmaddr); }
  368 231     MNOPROTO        BSD     { int shmget(key_t key, int size, int shmflg); }
  369 ;
  370 232     MNOPROTO POSIX  { int clock_gettime(clockid_t clock_id, \
  371                             struct timespec *tp); }
  372 233     MNOPROTO POSIX  { int clock_settime(clockid_t clock_id, \
  373                             const struct timespec *tp); }
  374 234     MNOPROTO POSIX  { int clock_getres(clockid_t clock_id, \
  375                             struct timespec *tp); }
  376 235     UNIMPL  NOHIDE  timer_create
  377 236     UNIMPL  NOHIDE  timer_delete
  378 237     UNIMPL  NOHIDE  timer_settime
  379 238     UNIMPL  NOHIDE  timer_gettime
  380 239     UNIMPL  NOHIDE  timer_getoverrun
  381 240     MNOPROTO POSIX  { int nanosleep(const struct timespec *rqtp, \
  382                             struct timespec *rmtp); }
  383 241     UNIMPL  NOHIDE  nosys
  384 242     UNIMPL  NOHIDE  nosys
  385 243     UNIMPL  NOHIDE  nosys
  386 244     UNIMPL  NOHIDE  nosys
  387 245     UNIMPL  NOHIDE  nosys
  388 246     UNIMPL  NOHIDE  nosys
  389 247     UNIMPL  NOHIDE  nosys
  390 248     UNIMPL  NOHIDE  nosys
  391 249     UNIMPL  NOHIDE  nosys
  392 ; syscall numbers initially used in OpenBSD
  393 250     MNOPROTO BSD    { int minherit(void *addr, size_t len, int inherit); }
  394 251     MNOPROTO BSD    { int rfork(int flags); }
  395 252     MNOPROTO BSD    { int openbsd_poll(struct pollfd *fds, u_int nfds, \
  396                             int timeout); }
  397 253     MNOPROTO BSD    { int issetugid(void); }
  398 254     NOPROTO BSD     { int lchown(char *path, int uid, int gid); }
  399 255     UNIMPL  NOHIDE  nosys
  400 256     UNIMPL  NOHIDE  nosys
  401 257     UNIMPL  NOHIDE  nosys
  402 258     UNIMPL  NOHIDE  nosys
  403 259     UNIMPL  NOHIDE  nosys
  404 260     UNIMPL  NOHIDE  nosys
  405 261     UNIMPL  NOHIDE  nosys
  406 262     UNIMPL  NOHIDE  nosys
  407 263     UNIMPL  NOHIDE  nosys
  408 264     UNIMPL  NOHIDE  nosys
  409 265     UNIMPL  NOHIDE  nosys
  410 266     UNIMPL  NOHIDE  nosys
  411 267     UNIMPL  NOHIDE  nosys
  412 268     UNIMPL  NOHIDE  nosys
  413 269     UNIMPL  NOHIDE  nosys
  414 270     UNIMPL  NOHIDE  nosys
  415 271     UNIMPL  NOHIDE  nosys
  416 272     NOPROTO BSD     { int getdents(int fd, char *buf, size_t count); }
  417 273     UNIMPL  NOHIDE  nosys
  418 274     NOPROTO BSD     { int lchmod(char *path, mode_t mode); }
  419 275     NOPROTO BSD     { int lchown(char *path, uid_t uid, gid_t gid); } netbsd_lchown lchown_args int
  420 276     NOPROTO BSD     { int lutimes(char *path, struct timeval *tptr); }
  421 277     MNOPROTO BSD    { int msync(void *addr, size_t len, int flags); } netbsd_msync msync_args int
  422 278     NOPROTO BSD     { int nstat(char *path, struct nstat *ub); }
  423 279     MNOPROTO BSD    { int nfstat(int fd, struct nstat *sb); }
  424 280     NOPROTO BSD     { int nlstat(char *path, struct nstat *ub); }
  425 281     UNIMPL  NOHIDE  nosys
  426 282     UNIMPL  NOHIDE  nosys
  427 283     UNIMPL  NOHIDE  nosys
  428 284     UNIMPL  NOHIDE  nosys
  429 285     UNIMPL  NOHIDE  nosys
  430 286     UNIMPL  NOHIDE  nosys
  431 287     UNIMPL  NOHIDE  nosys
  432 288     UNIMPL  NOHIDE  nosys
  433 289     UNIMPL  NOHIDE  nosys
  434 290     UNIMPL  NOHIDE  nosys
  435 291     UNIMPL  NOHIDE  nosys
  436 292     UNIMPL  NOHIDE  nosys
  437 293     UNIMPL  NOHIDE  nosys
  438 294     UNIMPL  NOHIDE  nosys
  439 295     UNIMPL  NOHIDE  nosys
  440 296     UNIMPL  NOHIDE  nosys
  441 ; XXX 297 is 300 in NetBSD 
  442 297     NOPROTO BSD     { int fhstatfs(const struct fhandle *u_fhp, struct statfs *buf); }
  443 298     NOPROTO BSD     { int fhopen(const struct fhandle *u_fhp, int flags); }
  444 299     NOPROTO BSD     { int fhstat(const struct fhandle *u_fhp, struct stat *sb); }
  445 ; syscall numbers for FreeBSD
  446 300     MNOPROTO BSD    { int modnext(int modid); }
  447 301     MNOPROTO BSD    { int modstat(int modid, struct module_stat* stat); }
  448 302     MNOPROTO BSD    { int modfnext(int modid); }
  449 303     MNOPROTO BSD    { int modfind(const char *name); }
  450 304     MNOPROTO BSD    { int kldload(const char *file); }
  451 305     MNOPROTO BSD    { int kldunload(int fileid); }
  452 306     MNOPROTO BSD    { int kldfind(const char *file); }
  453 307     MNOPROTO BSD    { int kldnext(int fileid); }
  454 308     MNOPROTO BSD    { int kldstat(int fileid, struct kld_file_stat* stat); }
  455 309     MNOPROTO BSD    { int kldfirstmod(int fileid); }
  456 310     MNOPROTO BSD    { int getsid(pid_t pid); }
  457 311     MNOPROTO BSD    { int setresuid(uid_t ruid, uid_t euid, uid_t suid); }
  458 312     MNOPROTO BSD    { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); }
  459 313     OBSOL   NOHIDE  signanosleep
  460 314     UNIMPL  NOHIDE  aio_return
  461 315     UNIMPL  NOHIDE  aio_suspend
  462 316     UNIMPL  NOHIDE  aio_cancel
  463 317     UNIMPL  NOHIDE  aio_error
  464 318     UNIMPL  NOHIDE  aio_read
  465 319     UNIMPL  NOHIDE  aio_write
  466 320     UNIMPL  NOHIDE  lio_listio
  467 321     MNOPROTO BSD    { int yield(void); }
  468 322     OBSOL   NOHIDE  thr_sleep
  469 323     OBSOL   NOHIDE  thr_wakeup
  470 324     MNOPROTO BSD    { int mlockall(int how); }
  471 325     MNOPROTO BSD    { int munlockall(void); }
  472 326     NOPROTO BSD     { int __getcwd(u_char *buf, u_int buflen); }
  473 
  474 327     MNOPROTO POSIX  { int sched_setparam (pid_t pid, const struct sched_param *param); }
  475 328     MNOPROTO POSIX  { int sched_getparam (pid_t pid, struct sched_param *param); }
  476 
  477 329     MNOPROTO POSIX  { int sched_setscheduler (pid_t pid, int policy, const struct sched_param *param); }
  478 330     MNOPROTO POSIX  { int sched_getscheduler (pid_t pid); }
  479 
  480 331     MNOPROTO POSIX  { int sched_yield (void); }
  481 332     MNOPROTO POSIX  { int sched_get_priority_max (int policy); }
  482 333     MNOPROTO POSIX  { int sched_get_priority_min (int policy); }
  483 334     MNOPROTO POSIX  { int sched_rr_get_interval (pid_t pid, struct timespec *interval); }
  484 335     MNOPROTO BSD    { int utrace(const void *addr, size_t len); }
  485 ; XXX note - bigendian is different
  486 336     MCOMPAT4 BSD    { int freebsd32_sendfile(int fd, int s, \
  487                             u_int32_t offsetlo,u_int32_t offsethi, \
  488                             size_t nbytes, struct sf_hdtr *hdtr, \
  489                             off_t *sbytes, int flags); }
  490 337     NOPROTO BSD     { int kldsym(int fileid, int cmd, void *data); }
  491 338     MNOPROTO BSD    { int jail(struct jail *jail); }
  492 339     UNIMPL  BSD     pioctl
  493 340     MNOPROTO POSIX  { int sigprocmask(int how, const sigset_t *set, \
  494                             sigset_t *oset); }
  495 341     MNOPROTO POSIX  { int sigsuspend(const sigset_t *sigmask); }
  496 342     MCOMPAT4 POSIX  { int freebsd32_sigaction(int sig, \
  497                             struct sigaction32 *act, \
  498                             struct sigaction32 *oact); }
  499 343     MNOPROTO POSIX  { int sigpending(sigset_t *set); }
  500 344     MCOMPAT4 BSD    { int freebsd32_sigreturn( \
  501                             const struct __ucontext *sigcntxp); }
  502 ; XXX implement
  503 345     UNIMPL  NOHIDE  sigtimedwait
  504 ; XXX implement
  505 346     UNIMPL  NOHIDE  sigwaitinfo
  506 347     MNOPROTO BSD    { int __acl_get_file(const char *path, \
  507                             acl_type_t type, struct acl *aclp); }
  508 348     MNOPROTO BSD    { int __acl_set_file(const char *path, \
  509                             acl_type_t type, struct acl *aclp); }
  510 349     MNOPROTO BSD    { int __acl_get_fd(int filedes, acl_type_t type, \
  511                             struct acl *aclp); }
  512 350     MNOPROTO BSD    { int __acl_set_fd(int filedes, acl_type_t type, \
  513                             struct acl *aclp); }
  514 351     MNOPROTO BSD    { int __acl_delete_file(const char *path, \
  515                             acl_type_t type); }
  516 352     MNOPROTO BSD    { int __acl_delete_fd(int filedes, acl_type_t type); }
  517 353     MNOPROTO BSD    { int __acl_aclcheck_file(const char *path, \
  518                             acl_type_t type, struct acl *aclp); }
  519 354     MNOPROTO BSD    { int __acl_aclcheck_fd(int filedes, acl_type_t type, \
  520                             struct acl *aclp); }
  521 355     NOPROTO BSD     { int extattrctl(const char *path, int cmd, \
  522                             const char *filename, int attrnamespace, \
  523                             const char *attrname); }
  524 356     NOPROTO BSD     { int extattr_set_file(const char *path, \
  525                             int attrnamespace, const char *attrname, \
  526                             void *data, size_t nbytes); }
  527 357     NOPROTO BSD     { ssize_t extattr_get_file(const char *path, \
  528                             int attrnamespace, const char *attrname, \
  529                             void *data, size_t nbytes); }
  530 358     NOPROTO BSD     { int extattr_delete_file(const char *path, \
  531                             int attrnamespace, const char *attrname); }
  532 359     UNIMPL  NOHIDE  aio_waitcomplete
  533 360     MNOPROTO BSD    { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); }
  534 361     MNOPROTO BSD    { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); }
  535 362     MNOPROTO BSD    { int kqueue(void); }
  536 363     MSTD BSD        { int freebsd32_kevent(int fd, \
  537                             const struct kevent *changelist, int nchanges, \
  538                             struct kevent *eventlist, int nevents, \
  539                             const struct timespec *timeout); }
  540 364     UNIMPL  NOHIDE  __cap_get_proc
  541 365     UNIMPL  NOHIDE  __cap_set_proc
  542 366     UNIMPL  NOHIDE  __cap_get_fd
  543 367     UNIMPL  NOHIDE  __cap_get_file
  544 368     UNIMPL  NOHIDE  __cap_set_fd
  545 369     UNIMPL  NOHIDE  __cap_set_file
  546 370     UNIMPL  NOHIDE  lkmressys
  547 371     NOPROTO BSD     { int extattr_set_fd(int fd, int attrnamespace, \
  548                             const char *attrname, void *data, \
  549                             size_t nbytes); }
  550 372     NOPROTO BSD     { ssize_t extattr_get_fd(int fd, int attrnamespace, \
  551                             const char *attrname, void *data, size_t nbytes); }
  552 373     NOPROTO BSD     { int extattr_delete_fd(int fd, int attrnamespace, \
  553                             const char *attrname); }
  554 374     MNOPROTO BSD    { int __setugid(int flag); }
  555 375     UNIMPL  BSD     nfsclnt
  556 376     NOPROTO BSD     { int eaccess(char *path, int flags); }
  557 377     UNIMPL  BSD     afs_syscall
  558 378     NOPROTO BSD     { int nmount(struct iovec *iovp, unsigned int iovcnt, \
  559                             int flags); }
  560 379     NOPROTO BSD     { int kse_exit(void); }
  561 380     NOPROTO BSD     { int kse_wakeup(struct kse_mailbox *mbx); }
  562 381     NOPROTO BSD     { int kse_create(struct kse_mailbox *mbx, \
  563                             int newgroup); }
  564 382     NOPROTO BSD     { int kse_thr_interrupt(struct kse_thr_mailbox *tmbx); }
  565 383     NOPROTO BSD     { int kse_release(void); }
  566 384     UNIMPL  BSD     __mac_get_proc
  567 385     UNIMPL  BSD     __mac_set_proc
  568 386     UNIMPL  BSD     __mac_get_fd
  569 387     UNIMPL  BSD     __mac_get_file
  570 388     UNIMPL  BSD     __mac_set_fd
  571 389     UNIMPL  BSD     __mac_set_file
  572 390     NOPROTO BSD     { int kenv(int what, const char *name, char *value, \
  573                             int len); }
  574 391     NOPROTO BSD     { int lchflags(const char *path, int flags); }
  575 392     NOPROTO BSD     { int uuidgen(struct uuid *store, int count); }
  576 393     MSTD    BSD     { int freebsd32_sendfile(int fd, int s, \
  577                             u_int32_t offsetlo, u_int32_t offsethi, \
  578                             size_t nbytes, struct sf_hdtr *hdtr, \
  579                             off_t *sbytes, int flags); }
  580 394     UNIMPL  NOHIDE  mac_syscall
  581 395     UNIMPL  NOHIDE  nosys
  582 396     UNIMPL  NOHIDE  nosys
  583 397     UNIMPL  NOHIDE  nosys
  584 398     UNIMPL  NOHIDE  nosys
  585 399     UNIMPL  NOHIDE  nosys
  586 ; XXX implement these?
  587 400     UNIMPL  NOHIDE  ksem_close
  588 401     UNIMPL  NOHIDE  ksem_post
  589 402     UNIMPL  NOHIDE  ksem_wait
  590 403     UNIMPL  NOHIDE  ksem_trywait
  591 404     UNIMPL  NOHIDE  ksem_init
  592 405     UNIMPL  NOHIDE  ksem_open
  593 406     UNIMPL  NOHIDE  ksem_unlink
  594 407     UNIMPL  NOHIDE  ksem_getvalue
  595 408     UNIMPL  NOHIDE  ksem_destroy
  596 409     UNIMPL  BSD     __mac_get_pid
  597 410     UNIMPL  BSD     __mac_get_link
  598 411     UNIMPL  BSD     __mac_set_link
  599 412     UNIMPL  BSD     extattr_set_link
  600 413     UNIMPL  BSD     extattr_get_link
  601 414     UNIMPL  BSD     extattr_delete_link
  602 415     UNIMPL  BSD     __mac_execve
  603 416     STD POSIX       { int freebsd32_sigaction(int sig, \
  604                             struct sigaction32 *act, \
  605                             struct sigaction32 *oact); }
  606 417     MSTD BSD        { int freebsd32_sigreturn( \
  607                             const struct freebsd32_ucontext *sigcntxp); }
  608 418     UNIMPL  BSD     __xstat
  609 419     UNIMPL  BSD     __xfstat
  610 420     UNIMPL  BSD     __xlstat
  611 ; XXX implement
  612 421     UNIMPL  BSD     getcontext
  613 ; XXX implement
  614 422     UNIMPL  BSD     setcontext
  615 ; XXX implement
  616 423     UNIMPL  BSD     swapcontext
  617 424     UNIMPL  BSD     swapoff
  618 425     UNIMPL  BSD     __acl_get_link
  619 426     UNIMPL  BSD     __acl_set_link
  620 427     UNIMPL  BSD     __acl_delete_link
  621 428     UNIMPL  BSD     __acl_aclcheck_link
  622 ; XXX implement
  623 429     UNIMPL  NOHIDE  sigwait
  624 430     MNOPROTO BSD    { int thr_create(ucontext_t *ctx, thr_id_t *id, \
  625                             int flag s); }
  626 431     MNOPROTO BSD    { void thr_exit(void); }
  627 432     MNOPROTO BSD    { int thr_self(thr_id_t *id); }
  628 433     MNOPROTO BSD    { int thr_kill(thr_id_t id, int sig); }
  629 434     MNOPROTO BSD    { int _umtx_lock(struct umtx *umtx); }
  630 435     MNOPROTO BSD    { int _umtx_unlock(struct umtx *umtx); }
  631 436     MNOPROTO BSD    { int jail_attach(int jid); }
  632 437     UNIMPL  BSD     extattr_list_fd
  633 438     UNIMPL  BSD     extattr_list_file
  634 439     UNIMPL  BSD     extattr_list_link
  635 440     UNIMPL  BSD     kse_switchin

Cache object: 8ef80443bc86f8a605d2d68c8a3943d0


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