root/include/linux/sys.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * Why isn't this a .c file?  Enquiring minds....
   3  */
   4 
   5 #define sys_clone sys_fork
   6 
   7 #ifdef __cplusplus
   8 extern "C" {
   9 #endif
  10 
  11 extern int sys_setup();
  12 extern int sys_exit();
  13 extern int sys_fork();
  14 extern int sys_read();
  15 extern int sys_write();
  16 extern int sys_open();
  17 extern int sys_close();
  18 extern int sys_waitpid();
  19 extern int sys_creat();
  20 extern int sys_link();
  21 extern int sys_unlink();
  22 extern int sys_execve();
  23 extern int sys_chdir();
  24 extern int sys_time();
  25 extern int sys_mknod();
  26 extern int sys_chmod();
  27 extern int sys_chown();
  28 extern int sys_break();
  29 extern int sys_stat();
  30 extern int sys_lseek();
  31 extern int sys_getpid();
  32 extern int sys_mount();
  33 extern int sys_umount();
  34 extern int sys_setuid();
  35 extern int sys_getuid();
  36 extern int sys_stime();
  37 extern int sys_ptrace();
  38 extern int sys_alarm();
  39 extern int sys_fstat();
  40 extern int sys_pause();
  41 extern int sys_utime();
  42 extern int sys_stty();
  43 extern int sys_gtty();
  44 extern int sys_access();
  45 extern int sys_nice();
  46 extern int sys_ftime();
  47 extern int sys_sync();
  48 extern int sys_kill();
  49 extern int sys_rename();
  50 extern int sys_mkdir();
  51 extern int sys_rmdir();
  52 extern int sys_dup();
  53 extern int sys_pipe();
  54 extern int sys_times();
  55 extern int sys_prof();
  56 extern int sys_brk();
  57 extern int sys_setgid();
  58 extern int sys_getgid();
  59 extern int sys_signal();
  60 extern int sys_geteuid();
  61 extern int sys_getegid();
  62 extern int sys_acct();
  63 extern int sys_phys();
  64 extern int sys_lock();
  65 extern int sys_ioctl();
  66 extern int sys_fcntl();
  67 extern int sys_mpx();
  68 extern int sys_setpgid();
  69 extern int sys_ulimit();
  70 extern int sys_uname();
  71 extern int sys_umask();
  72 extern int sys_chroot();
  73 extern int sys_ustat();
  74 extern int sys_dup2();
  75 extern int sys_getppid();
  76 extern int sys_getpgrp();
  77 extern int sys_setsid();
  78 extern int sys_sigaction();
  79 extern int sys_sgetmask();
  80 extern int sys_ssetmask();
  81 extern int sys_setreuid();
  82 extern int sys_setregid();
  83 extern int sys_sigpending();
  84 extern int sys_sigsuspend();
  85 extern int sys_sethostname();
  86 extern int sys_setrlimit();
  87 extern int sys_getrlimit();
  88 extern int sys_getrusage();
  89 extern int sys_gettimeofday();
  90 extern int sys_settimeofday();
  91 extern int sys_getgroups();
  92 extern int sys_setgroups();
  93 extern int sys_select();
  94 extern int sys_symlink();
  95 extern int sys_lstat();
  96 extern int sys_readlink();
  97 extern int sys_uselib();
  98 extern int sys_swapon();
  99 extern int sys_reboot();
 100 extern int sys_readdir();
 101 extern int sys_mmap();
 102 extern int sys_munmap();
 103 extern int sys_truncate();
 104 extern int sys_ftruncate();
 105 extern int sys_fchmod();
 106 extern int sys_fchown();
 107 extern int sys_getpriority();
 108 extern int sys_setpriority();
 109 extern int sys_profil();
 110 extern int sys_statfs();
 111 extern int sys_fstatfs();
 112 extern int sys_ioperm();
 113 extern int sys_socketcall();
 114 extern int sys_syslog();
 115 extern int sys_getitimer();
 116 extern int sys_setitimer();
 117 extern int sys_newstat();
 118 extern int sys_newlstat();
 119 extern int sys_newfstat();
 120 extern int sys_newuname();
 121 extern int sys_iopl();
 122 extern int sys_vhangup();
 123 extern int sys_idle();
 124 extern int sys_vm86();
 125 extern int sys_wait4();
 126 extern int sys_swapoff();
 127 extern int sys_sysinfo();
 128 extern int sys_ipc();
 129 extern int sys_fsync();
 130 extern int sys_sigreturn();
 131 extern int sys_setdomainname();
 132 extern int sys_olduname();
 133 extern int sys_old_syscall();
 134 extern int sys_modify_ldt();
 135 
 136 /*
 137  * These are system calls that will be removed at some time
 138  * due to newer versions existing..
 139  */
 140 #ifdef notdef
 141 #define sys_waitpid     sys_old_syscall /* sys_wait4    */
 142 #define sys_olduname    sys_old_syscall /* sys_newuname */
 143 #define sys_stat        sys_old_syscall /* sys_newstat  */
 144 #define sys_fstat       sys_old_syscall /* sys_newfstat */
 145 #define sys_lstat       sys_old_syscall /* sys_newlstat */
 146 #define sys_signal      sys_old_syscall /* sys_sigaction */
 147 #endif
 148 
 149 typedef int (*fn_ptr)();
 150 
 151 fn_ptr sys_call_table[] = { sys_setup, sys_exit, sys_fork, sys_read,
 152 sys_write, sys_open, sys_close, sys_waitpid, sys_creat, sys_link,
 153 sys_unlink, sys_execve, sys_chdir, sys_time, sys_mknod, sys_chmod,
 154 sys_chown, sys_break, sys_stat, sys_lseek, sys_getpid, sys_mount,
 155 sys_umount, sys_setuid, sys_getuid, sys_stime, sys_ptrace, sys_alarm,
 156 sys_fstat, sys_pause, sys_utime, sys_stty, sys_gtty, sys_access,
 157 sys_nice, sys_ftime, sys_sync, sys_kill, sys_rename, sys_mkdir,
 158 sys_rmdir, sys_dup, sys_pipe, sys_times, sys_prof, sys_brk, sys_setgid,
 159 sys_getgid, sys_signal, sys_geteuid, sys_getegid, sys_acct, sys_phys,
 160 sys_lock, sys_ioctl, sys_fcntl, sys_mpx, sys_setpgid, sys_ulimit,
 161 sys_olduname, sys_umask, sys_chroot, sys_ustat, sys_dup2, sys_getppid,
 162 sys_getpgrp, sys_setsid, sys_sigaction, sys_sgetmask, sys_ssetmask,
 163 sys_setreuid,sys_setregid, sys_sigsuspend, sys_sigpending,
 164 sys_sethostname, sys_setrlimit, sys_getrlimit, sys_getrusage,
 165 sys_gettimeofday, sys_settimeofday, sys_getgroups, sys_setgroups,
 166 sys_select, sys_symlink, sys_lstat, sys_readlink, sys_uselib,
 167 sys_swapon, sys_reboot, sys_readdir, sys_mmap, sys_munmap, sys_truncate,
 168 sys_ftruncate, sys_fchmod, sys_fchown, sys_getpriority, sys_setpriority,
 169 sys_profil, sys_statfs, sys_fstatfs, sys_ioperm, sys_socketcall,
 170 sys_syslog, sys_setitimer, sys_getitimer, sys_newstat, sys_newlstat,
 171 sys_newfstat, sys_uname, sys_iopl, sys_vhangup, sys_idle, sys_vm86,
 172 sys_wait4, sys_swapoff, sys_sysinfo, sys_ipc, sys_fsync, sys_sigreturn,
 173 sys_clone, sys_setdomainname, sys_newuname, sys_modify_ldt};
 174 
 175 #ifdef __cplusplus
 176 }
 177 #endif
 178 
 179 /* So we don't have to do any more manual updating.... */
 180 int NR_syscalls = sizeof(sys_call_table)/sizeof(fn_ptr);

/* [previous][next][first][last][top][bottom][index][help] */