Annotation of researchv10no/sys/os/sysent.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * This table is the switch used to transfer
        !             3:  * to the appropriate routine for processing a system call.
        !             4:  * Each row contains the number of arguments expected
        !             5:  * and a pointer to the routine.
        !             6:  */
        !             7: 
        !             8: #include "sys/param.h"
        !             9: #include "sys/systm.h"
        !            10: 
        !            11: int    alarm();
        !            12: int    biasclock();
        !            13: int    chdir();
        !            14: int    chmod();
        !            15: int    chown();
        !            16: int    chroot();
        !            17: int    close();
        !            18: int    creat();
        !            19: int    dirread();
        !            20: int    dup();
        !            21: int    exece();
        !            22: int    fchmod();
        !            23: int    fchown();
        !            24: int    fmount();
        !            25: int    fork();
        !            26: int    fstat();
        !            27: int    ftime();
        !            28: int    funmount();
        !            29: int    getgid();
        !            30: int    getgroups();
        !            31: int    getlogname();
        !            32: int    getpid();
        !            33: int    getuid();
        !            34: int    gtime();
        !            35: int    ioctl();
        !            36: int    kill();
        !            37: int    link();
        !            38: int    lstat();
        !            39: int    lseek();
        !            40: int    mkdir();
        !            41: int    mknod();
        !            42: int    nap();
        !            43: int    nice();
        !            44: int    nosys();
        !            45: int    nullsys();
        !            46: int    open();
        !            47: int    pause();
        !            48: int    pipe();
        !            49: int    profil();
        !            50: int    read();
        !            51: int    readlink();
        !            52: int    rexit();
        !            53: int    rmdir();
        !            54: int    saccess();
        !            55: int    sbreak();
        !            56: int    seek();
        !            57: int    select();
        !            58: int    setgid();
        !            59: int    setgroups();
        !            60: int    setpgrp();
        !            61: int    setruid();
        !            62: int    setuid();
        !            63: int    ssig();
        !            64: int    stat();
        !            65: int    stime();
        !            66: int    symlink();
        !            67: int    sync();
        !            68: int    sysacct();
        !            69: int    sysboot();
        !            70: int    syslock();
        !            71: int    times();
        !            72: int    umask();
        !            73: int    unlink();
        !            74: int    utime();
        !            75: int    vadvise();              /* later, segadvise */
        !            76: int    vlimit();
        !            77: int    vswapon();
        !            78: int    vtimes();
        !            79: int    wait();
        !            80: int    write();
        !            81: 
        !            82: struct sysent sysent[MAXSYS] =
        !            83: {
        !            84:        0, nosys,                       /*  0 = indir */
        !            85:        1, rexit,                       /*  1 = exit */
        !            86:        0, fork,                        /*  2 = fork */
        !            87:        3, read,                        /*  3 = read */
        !            88:        3, write,                       /*  4 = write */
        !            89:        2, open,                        /*  5 = open */
        !            90:        1, close,                       /*  6 = close */
        !            91:        0, wait,                        /*  7 = wait */
        !            92:        2, creat,                       /*  8 = creat */
        !            93:        2, link,                        /*  9 = link */
        !            94:        1, unlink,                      /* 10 = unlink */
        !            95:        4, lseek,                       /* 11 = lseek (64-bit) */
        !            96:        1, chdir,                       /* 12 = chdir */
        !            97:        0, gtime,                       /* 13 = time */
        !            98:        3, mknod,                       /* 14 = mknod */
        !            99:        2, chmod,                       /* 15 = chmod */
        !           100:        3, chown,                       /* 16 = chown */
        !           101:        1, sbreak,                      /* 17 = break */
        !           102:        2, stat,                        /* 18 = stat */
        !           103:        3, seek,                        /* 19 = seek */
        !           104:        0, getpid,                      /* 20 = getpid */
        !           105:        0, nosys,                       /* 21 = was mount */
        !           106:        3, dirread,                     /* 22 = dirread */
        !           107:        1, setuid,                      /* 23 = setuid */
        !           108:        0, getuid,                      /* 24 = getuid */
        !           109:        1, stime,                       /* 25 = stime */
        !           110:        4, fmount,                      /* 26 = mount filesystem */
        !           111:        1, alarm,                       /* 27 = alarm */
        !           112:        2, fstat,                       /* 28 = fstat */
        !           113:        0, pause,                       /* 29 = pause */
        !           114:        2, utime,                       /* 30 = utime */
        !           115:        2, fchmod,                      /* 31 = fchmod */
        !           116:        3, fchown,                      /* 32 = fchown */
        !           117:        2, saccess,                     /* 33 = access */
        !           118:        1, nice,                        /* 34 = nice */
        !           119:        1, ftime,                       /* 35 = ftime */
        !           120:        0, sync,                        /* 36 = sync */
        !           121:        2, kill,                        /* 37 = kill */
        !           122:        4, select,                      /* 38 = select */
        !           123:        2, setpgrp,                     /* 39 = setpgrp */
        !           124:        2, lstat,                       /* 40 = lstat */
        !           125:        2, dup,                         /* 41 = dup */
        !           126:        0, pipe,                        /* 42 = pipe */
        !           127:        1, times,                       /* 43 = times */
        !           128:        4, profil,                      /* 44 = prof */
        !           129:        0, nosys,                       /* 45 = formerly xmount */
        !           130:        1, setgid,                      /* 46 = setgid */
        !           131:        0, getgid,                      /* 47 = getgid */
        !           132:        2, ssig,                        /* 48 = sig */
        !           133:        0, nosys,                       /* 49 = was gmount */
        !           134:        1, funmount,                    /* 50 = unmount filesystem */
        !           135:        1, sysacct,                     /* 51 = turn acct off/on */
        !           136:        1, biasclock,                   /* 52 = bias clock */
        !           137:        1, syslock,                     /* 53 = lock user in core */
        !           138:        3, ioctl,                       /* 54 = ioctl */
        !           139:        1, sysboot,                     /* 55 = reboot */
        !           140:        1, setruid,                     /* 56 = setruid */
        !           141:        2, symlink,                     /* 57 = create symbolic link */
        !           142:        3, readlink,                    /* 58 = read symbolic link */
        !           143:        3, exece,                       /* 59 = exece */
        !           144:        1, umask,                       /* 60 = umask */
        !           145:        1, chroot,                      /* 61 = chroot */
        !           146:        0, nosys,                       /* 62 = reserved to local sites */
        !           147:        0, nosys,                       /* 63 = used internally */
        !           148:        1, rmdir,                       /* 64 +0 = rmdir */
        !           149:        2, mkdir,                       /* 64 +1 = mkdir */
        !           150:        0, fork,                        /* 64 +2 = former vfork */
        !           151:        2, getlogname,                  /* 64 +3 = getlogname */
        !           152:        0, nosys,                       /* 64 +4 = was vwrite */
        !           153:        0, nosys,                       /* 64 +5 = was segalloc */
        !           154:        0, nosys,                       /* 64 +6 = was segfree */
        !           155:        0, nosys,                       /* 64 +7 = was segsync */
        !           156:        1, vadvise,                     /* 64 +8 = vadvise */
        !           157:        0, nosys,                       /* 64 +9 = was splice */
        !           158:        2, setgroups,                   /* 64+10 = setgroups */
        !           159:        2, getgroups,                   /* 64+11 = getgroups */
        !           160:        0, nosys,                       /* 64+12 = was vhangup */
        !           161:        2, vlimit,                      /* 64+13 = vlimit */
        !           162:        0, nosys,                       /* 64+14 = nosys */
        !           163:        0, nosys,                       /* 64+15 = nosys */
        !           164:        0, nosys,                       /* 64+16 = nosys */
        !           165:        0, nosys,                       /* 64+17 = nosys */
        !           166:        0, nosys,                       /* 64+18 = nosys */
        !           167:        0, nosys,                       /* 64+19 = nosys */
        !           168:        0, nosys,                       /* 64+20 = nosys */
        !           169:        1, vswapon,                     /* 64+21 = vswapon */
        !           170:        0, nosys,                       /* 64+22 = nosys */
        !           171:        0, nosys,                       /* 64+23 = nosys */
        !           172:        0, nosys,                       /* 64+24 = nosys */
        !           173:        0, nosys,                       /* 64+25 = nosys */
        !           174:        0, nosys,                       /* 64+26 = nosys */
        !           175:        0, nosys,                       /* 64+27 = nosys */
        !           176:        0, nosys,                       /* 64+28 = nosys */
        !           177:        0, nosys,                       /* 64+29 = nosys */
        !           178:        0, nosys,                       /* 64+30 = nosys */
        !           179:        0, nosys,                       /* 64+31 = nosys */
        !           180:        0, nosys,                       /* 64+32 = nosys */
        !           181:        0, nosys,                       /* 64+33 = nosys */
        !           182:        0, nosys,                       /* 64+34 = nosys */
        !           183:        0, nosys,                       /* 64+35 = nosys */
        !           184:        0, nosys,                       /* 64+36 = nosys */
        !           185:        0, nosys,                       /* 64+37 = nosys */
        !           186:        0, nosys,                       /* 64+38 = nosys */
        !           187:        0, nosys,                       /* 64+39 = nosys */
        !           188:        0, nosys,                       /* 64+40 = nosys */
        !           189:        1, nap,                         /* 64+41 = nap */
        !           190:        0, nosys,                       /* 64+42 = was settod */
        !           191:        2, vtimes,                      /* 64+43 = vtimes */
        !           192:        0, nosys,                       /* 64+44 = nosys */
        !           193:        0, nosys,                       /* 64+45 = nosys */
        !           194:        0, nosys,                       /* 64+46 = nosys */
        !           195:        0, nosys,                       /* 64+47 = nosys */
        !           196:        0, nosys,                       /* 64+48 = nosys */
        !           197:        0, nosys,                       /* 64+49 = nosys */
        !           198:        0, nosys,                       /* 64+50 = nosys */
        !           199:        0, nosys,                       /* 64+51 = nosys */
        !           200:        0, nosys,                       /* 64+52 = nosys */
        !           201:        0, nosys,                       /* 64+53 = nosys */
        !           202:        0, nosys,                       /* 64+54 = nosys */
        !           203:        0, nosys,                       /* 64+55 = nosys */
        !           204:        0, nosys,                       /* 64+56 = nosys */
        !           205:        0, nosys,                       /* 64+57 = nosys */
        !           206:        0, nosys,                       /* 64+58 = nosys */
        !           207:        0, nosys,                       /* 64+59 = nosys */
        !           208:        0, nosys,                       /* 64+60 = nosys */
        !           209:        0, nosys,                       /* 64+61 = nosys */
        !           210:        0, nosys,                       /* 64+62 = nosys */
        !           211:        0, nosys,                       /* 64+63 = was limits */
        !           212: };

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.