?? table.c
字號:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
src/mm/table.c
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
16500 /* This file contains the table used to map system call numbers onto the
16501 * routines that perform them.
16502 */
16503
16504 #define _TABLE
16505
16506 #include "mm.h"
16507 #include <minix/callnr.h>
16508 #include <signal.h>
16509 #include "mproc.h"
16510 #include "param.h"
16511
16512 /* Miscellaneous */
16513 char core_name[] = "core"; /* file name where core images are produced */
16514
16515 _PROTOTYPE (int (*call_vec[NCALLS]), (void) ) = {
16516 no_sys, /* 0 = unused */
16517 do_mm_exit, /* 1 = exit */
16518 do_fork, /* 2 = fork */
16519 no_sys, /* 3 = read */
16520 no_sys, /* 4 = write */
16521 no_sys, /* 5 = open */
16522 no_sys, /* 6 = close */
16523 do_waitpid, /* 7 = wait */
16524 no_sys, /* 8 = creat */
16525 no_sys, /* 9 = link */
16526 no_sys, /* 10 = unlink */
16527 do_waitpid, /* 11 = waitpid */
16528 no_sys, /* 12 = chdir */
16529 no_sys, /* 13 = time */
16530 no_sys, /* 14 = mknod */
16531 no_sys, /* 15 = chmod */
16532 no_sys, /* 16 = chown */
16533 do_brk, /* 17 = break */
16534 no_sys, /* 18 = stat */
16535 no_sys, /* 19 = lseek */
16536 do_getset, /* 20 = getpid */
16537 no_sys, /* 21 = mount */
16538 no_sys, /* 22 = umount */
16539 do_getset, /* 23 = setuid */
16540 do_getset, /* 24 = getuid */
16541 no_sys, /* 25 = stime */
16542 do_trace, /* 26 = ptrace */
16543 do_alarm, /* 27 = alarm */
16544 no_sys, /* 28 = fstat */
16545 do_pause, /* 29 = pause */
16546 no_sys, /* 30 = utime */
16547 no_sys, /* 31 = (stty) */
16548 no_sys, /* 32 = (gtty) */
16549 no_sys, /* 33 = access */
16550 no_sys, /* 34 = (nice) */
16551 no_sys, /* 35 = (ftime) */
16552 no_sys, /* 36 = sync */
16553 do_kill, /* 37 = kill */
16554 no_sys, /* 38 = rename */
16555 no_sys, /* 39 = mkdir */
16556 no_sys, /* 40 = rmdir */
16557 no_sys, /* 41 = dup */
16558 no_sys, /* 42 = pipe */
16559 no_sys, /* 43 = times */
16560 no_sys, /* 44 = (prof) */
16561 no_sys, /* 45 = unused */
16562 do_getset, /* 46 = setgid */
16563 do_getset, /* 47 = getgid */
16564 no_sys, /* 48 = (signal)*/
16565 no_sys, /* 49 = unused */
16566 no_sys, /* 50 = unused */
16567 no_sys, /* 51 = (acct) */
16568 no_sys, /* 52 = (phys) */
16569 no_sys, /* 53 = (lock) */
16570 no_sys, /* 54 = ioctl */
16571 no_sys, /* 55 = fcntl */
16572 no_sys, /* 56 = (mpx) */
16573 no_sys, /* 57 = unused */
16574 no_sys, /* 58 = unused */
16575 do_exec, /* 59 = execve */
16576 no_sys, /* 60 = umask */
16577 no_sys, /* 61 = chroot */
16578 do_getset, /* 62 = setsid */
16579 do_getset, /* 63 = getpgrp */
16580
16581 do_ksig, /* 64 = KSIG: signals originating in the kernel */
16582 no_sys, /* 65 = UNPAUSE */
16583 no_sys, /* 66 = unused */
16584 no_sys, /* 67 = REVIVE */
16585 no_sys, /* 68 = TASK_REPLY */
16586 no_sys, /* 69 = unused */
16587 no_sys, /* 70 = unused */
16588 do_sigaction, /* 71 = sigaction */
16589 do_sigsuspend, /* 72 = sigsuspend */
16590 do_sigpending, /* 73 = sigpending */
16591 do_sigprocmask, /* 74 = sigprocmask */
16592 do_sigreturn, /* 75 = sigreturn */
16593 do_reboot, /* 76 = reboot */
16594 };
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -