home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / ENTERPRS / CPM / UTILS / S / UZI.ARK / DISPATCH.C < prev    next >
Text File  |  1988-11-30  |  2KB  |  100 lines

  1. /**************************************************
  2. UZI (Unix Z80 Implementation) Kernel:  dispatch.c
  3. ***************************************************/
  4.  
  5.  
  6. /* Dispatch table for system calls */
  7. int     __exit(),
  8.         _open(),
  9.         _close(),
  10.         _creat(),
  11.         _mknod(),
  12.         _link(),
  13.         _unlink(),
  14.         _read(),
  15.         _write(),
  16.         _seek(),
  17.         _chdir(),
  18.         _sync(),
  19.         _access(),
  20.         _chmod(),
  21.         _chown(),
  22.         _stat(),
  23.         _fstat(),
  24.         _dup(),
  25.         _getpid(),
  26.         _getppid(),
  27.         _getuid(),
  28.         _umask(),
  29.         _getfsys(),
  30.         _execve(),
  31.         _wait(),
  32.         _setuid(),
  33.         _setgid(),
  34.         _time(),
  35.         _stime(),
  36.         _ioctl(),
  37.         _brk(),
  38.         _sbrk(),
  39.         _fork(),
  40.         _mount(),
  41.         _umount(),
  42.         _signal(),
  43.         _dup2(),
  44.         _pause(),
  45.         _alarm(),
  46.         _kill(),
  47.         _pipe(),
  48.         _getgid(),
  49.         _times();
  50.  
  51. int (*disp_tab[])() =
  52. {       __exit,
  53.         _open,
  54.         _close,
  55.         _creat,
  56.         _mknod,
  57.         _link,
  58.         _unlink,
  59.         _read,
  60.         _write,
  61.         _seek,
  62.         _chdir,
  63.         _sync,
  64.         _access,
  65.         _chmod,
  66.         _chown,
  67.         _stat,
  68.         _fstat,
  69.         _dup,
  70.         _getpid,
  71.         _getppid,
  72.         _getuid,
  73.         _umask,
  74.         _getfsys,
  75.         _execve,
  76.         _wait,
  77.         _setuid,
  78.         _setgid,
  79.         _time,
  80.         _stime,
  81.         _ioctl,
  82.         _brk,
  83.         _sbrk,
  84.         _fork,
  85.         _mount,
  86.         _umount,
  87.         _signal,
  88.         _dup2,
  89.         _pause,
  90.         _alarm,
  91.         _kill,
  92.         _pipe,
  93.         _getgid,
  94.         _times
  95.  };
  96.  
  97. char dtsize = sizeof(disp_tab) / sizeof(int(*)()) - 1;
  98.  
  99.  
  100.