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/servers/fs/table.c

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 /* This file contains the table used to map system call numbers onto the
    2  * routines that perform them.
    3  */
    4 
    5 #define _TABLE
    6 
    7 #include "fs.h"
    8 #include <minix/callnr.h>
    9 #include <minix/com.h>
   10 #include "buf.h"
   11 #include "file.h"
   12 #include "fproc.h"
   13 #include "inode.h"
   14 #include "lock.h"
   15 #include "super.h"
   16 
   17 PUBLIC _PROTOTYPE (int (*call_vec[]), (void) ) = {
   18         no_sys,         /*  0 = unused  */
   19         do_exit,        /*  1 = exit    */
   20         do_fork,        /*  2 = fork    */
   21         do_read,        /*  3 = read    */
   22         do_write,       /*  4 = write   */
   23         do_open,        /*  5 = open    */
   24         do_close,       /*  6 = close   */
   25         no_sys,         /*  7 = wait    */
   26         do_creat,       /*  8 = creat   */
   27         do_link,        /*  9 = link    */
   28         do_unlink,      /* 10 = unlink  */
   29         no_sys,         /* 11 = waitpid */
   30         do_chdir,       /* 12 = chdir   */
   31         no_sys,         /* 13 = time    */
   32         do_mknod,       /* 14 = mknod   */
   33         do_chmod,       /* 15 = chmod   */
   34         do_chown,       /* 16 = chown   */
   35         no_sys,         /* 17 = break   */
   36         do_stat,        /* 18 = stat    */
   37         do_lseek,       /* 19 = lseek   */
   38         no_sys,         /* 20 = getpid  */
   39         do_mount,       /* 21 = mount   */
   40         do_umount,      /* 22 = umount  */
   41         do_set,         /* 23 = setuid  */
   42         no_sys,         /* 24 = getuid  */
   43         do_stime,       /* 25 = stime   */
   44         no_sys,         /* 26 = ptrace  */
   45         no_sys,         /* 27 = alarm   */
   46         do_fstat,       /* 28 = fstat   */
   47         no_sys,         /* 29 = pause   */
   48         do_utime,       /* 30 = utime   */
   49         no_sys,         /* 31 = (stty)  */
   50         no_sys,         /* 32 = (gtty)  */
   51         do_access,      /* 33 = access  */
   52         no_sys,         /* 34 = (nice)  */
   53         no_sys,         /* 35 = (ftime) */
   54         do_sync,        /* 36 = sync    */
   55         no_sys,         /* 37 = kill    */
   56         do_rename,      /* 38 = rename  */
   57         do_mkdir,       /* 39 = mkdir   */
   58         do_unlink,      /* 40 = rmdir   */
   59         do_dup,         /* 41 = dup     */
   60         do_pipe,        /* 42 = pipe    */
   61         no_sys,         /* 43 = times   */
   62         no_sys,         /* 44 = (prof)  */
   63         no_sys,         /* 45 = unused  */
   64         do_set,         /* 46 = setgid  */
   65         no_sys,         /* 47 = getgid  */
   66         no_sys,         /* 48 = (signal)*/
   67         no_sys,         /* 49 = unused  */
   68         no_sys,         /* 50 = unused  */
   69         no_sys,         /* 51 = (acct)  */
   70         no_sys,         /* 52 = (phys)  */
   71         no_sys,         /* 53 = (lock)  */
   72         do_ioctl,       /* 54 = ioctl   */
   73         do_fcntl,       /* 55 = fcntl   */
   74         no_sys,         /* 56 = (mpx)   */
   75         no_sys,         /* 57 = unused  */
   76         no_sys,         /* 58 = unused  */
   77         do_exec,        /* 59 = execve  */
   78         do_umask,       /* 60 = umask   */
   79         do_chroot,      /* 61 = chroot  */
   80         do_setsid,      /* 62 = setsid  */
   81         no_sys,         /* 63 = getpgrp */
   82 
   83         no_sys,         /* 64 = KSIG: signals originating in the kernel */
   84         do_unpause,     /* 65 = UNPAUSE */
   85         no_sys,         /* 66 = unused  */
   86         do_revive,      /* 67 = REVIVE  */
   87         no_sys,         /* 68 = TASK_REPLY      */
   88         no_sys,         /* 69 = unused */
   89         no_sys,         /* 70 = unused */
   90         no_sys,         /* 71 = si */
   91         no_sys,         /* 72 = sigsuspend */
   92         no_sys,         /* 73 = sigpending */
   93         no_sys,         /* 74 = sigprocmask */
   94         no_sys,         /* 75 = sigreturn */
   95         do_reboot,      /* 76 = reboot */
   96         do_svrctl,      /* 77 = svrctl */
   97 
   98         no_sys,         /* 78 = unused */
   99         do_getsysinfo,  /* 79 = getsysinfo */
  100         no_sys,         /* 80 = unused */
  101         do_devctl,      /* 81 = devctl */
  102         do_fstatfs,     /* 82 = fstatfs */
  103         no_sys,         /* 83 = memalloc */
  104         no_sys,         /* 84 = memfree */
  105         do_select,      /* 85 = select */
  106         do_fchdir,      /* 86 = fchdir */
  107         do_fsync,       /* 87 = fsync */
  108         no_sys,         /* 88 = getpriority */
  109         no_sys,         /* 89 = setpriority */
  110         no_sys,         /* 90 = gettimeofday */
  111 };
  112 /* This should not fail with "array size is negative": */
  113 extern int dummy[sizeof(call_vec) == NCALLS * sizeof(call_vec[0]) ? 1 : -1];
  114 

Cache object: fd01ab6aa50b1219a054452c5e6bab58


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