Annotation of 40BSD/games/compat/unix6sys.h, revision 1.1

1.1     ! root        1: #define        NSYSTRAPS       64
        !             2: #define        NSIGS   13
        !             3: #define        ILLSYS  -1
        !             4: #define        NORMRET 0
        !             5: #define        LONGRET 1
        !             6: #define        TWORET  2
        !             7: #define        FORK    2
        !             8: #define        OPEN    5
        !             9: #define        WAIT    7
        !            10: #define        CREAT   8
        !            11: #define        LINK    9
        !            12: #define        UNLNK   10
        !            13: #define EXEC   11
        !            14: #define        CHDIR   12
        !            15: #define        MKNOD   14
        !            16: #define        BRK     17
        !            17: #define        STAT    18
        !            18: #define        SEEK    19
        !            19: #define        SETUID  23
        !            20: #define        GETUID  24
        !            21: #define        FSTAT   28
        !            22: #define        SLEEP   35
        !            23: #define        TELL    40
        !            24: #define        PIPE    42
        !            25: #define        TIMES   43
        !            26: #define        SETGID  46
        !            27: #define        GETGID  47
        !            28: #define        SIG     48
        !            29: #define        PWBSYS  57
        !            30: #define        UNAME   0
        !            31: #define        UDATA   1
        !            32: #define        USTAT   2
        !            33: #define        UTIME   3
        !            34: /*
        !            35:  *     The numerical entries in the following table are
        !            36:  *     really composed of 2 parts.
        !            37:  *     The first entry in each row indicates the number
        !            38:  *     of register arguments for the system call, while
        !            39:  *     the 2nd position is the number of memory arguments
        !            40:  *     the 3rd position is LONGRET if the return is a long (ala time)
        !            41:  *     or is TWORET if the return is 2 ints (ala pipe)
        !            42:  *     otherwise it is NORMRET.
        !            43:  */
        !            44: int    sysargs[][3] =
        !            45: {
        !            46:        0, 0, NORMRET,          /*  0 = indir */
        !            47:        1, 0, NORMRET,          /*  1 = exit */
        !            48:        0, 0, NORMRET,          /*  2 = fork */
        !            49:        1, 2, NORMRET,          /*  3 = read */
        !            50:        1, 2, NORMRET,          /*  4 = write */
        !            51:        0, 2, NORMRET,          /*  5 = open */
        !            52:        1, 0, NORMRET,          /*  6 = close */
        !            53:        0, 0, TWORET,           /*  7 = wait */
        !            54:        0, 2, NORMRET,          /*  8 = creat */
        !            55:        0, 2, NORMRET,          /*  9 = link */
        !            56:        0, 1, NORMRET,          /* 10 = unlink */
        !            57:        0, 2, NORMRET,          /* 11 = exec */
        !            58:        0, 1, NORMRET,          /* 12 = chdir */
        !            59:        0, 0, LONGRET,          /* 13 = time */
        !            60:        0, 3, NORMRET,          /* 14 = mknod */
        !            61:        0, 2, NORMRET,          /* 15 = chmod */
        !            62:        0, 2, NORMRET,          /* 16 = chown */
        !            63:        0, 1, NORMRET,          /* 17 = break */
        !            64:        0, 2, NORMRET,          /* 18 = stat */
        !            65:        1, 2, NORMRET,          /* 19 = seek */
        !            66:        0, 0, NORMRET,          /* 20 = getpid */
        !            67:        0, 3, NORMRET,          /* 21 = mount */
        !            68:        0, 1, NORMRET,          /* 22 = umount */
        !            69:        1, 0, NORMRET,          /* 23 = setuid */
        !            70:        0, 0, NORMRET,          /* 24 = getuid */
        !            71:        2, 0, NORMRET,          /* 25 = stime */
        !            72:        1, 3, NORMRET,          /* 26 = ptrace */
        !            73:        1, 0, NORMRET,          /* 27 = alarm */
        !            74:        1, 1, NORMRET,          /* 28 = fstat */
        !            75:        0, 0, NORMRET,          /* 29 = pause */
        !            76:        1, 1, NORMRET,          /* 30 = smdate */
        !            77:        1, 1, NORMRET,          /* 31 = stty */
        !            78:        1, 1, NORMRET,          /* 32 = gtty */
        !            79:        0, 2, NORMRET,          /* 33 = access */
        !            80:        1, 0, NORMRET,          /* 34 = nice */
        !            81:        1, 0, NORMRET,          /* 35 = sleep */
        !            82:        0, 0, NORMRET,          /* 36 = sync */
        !            83:        1, 1, NORMRET,          /* 37 = kill */
        !            84:        0, 0, NORMRET,          /* 38 = switch */
        !            85:        ILLSYS, 0, NORMRET,     /* 39 = x */
        !            86:        1, 0, LONGRET,          /* 40 = tell */
        !            87:        1, 0, NORMRET,          /* 41 = dup */
        !            88:        0, 0, TWORET,           /* 42 = pipe */
        !            89:        0, 1, NORMRET,          /* 43 = times */
        !            90:        0, 4, NORMRET,          /* 44 = prof */
        !            91:        ILLSYS, 0, NORMRET,     /* 45 = tiu */
        !            92:        1, 0, NORMRET,          /* 46 = setgid */
        !            93:        0, 0, NORMRET,          /* 47 = getgid */
        !            94:        0, 2, NORMRET,          /* 48 = sig */
        !            95:        ILLSYS, 0, NORMRET,     /* 49 = x */
        !            96:        ILLSYS, 0, NORMRET,     /* 50 = x */
        !            97:        ILLSYS, 0, NORMRET,     /* 51 = x */
        !            98:        ILLSYS, 0, NORMRET,     /* 52 = x */
        !            99:        ILLSYS, 0, NORMRET,     /* 53 = x */
        !           100:        ILLSYS, 0, NORMRET,     /* 54 = x */
        !           101:        ILLSYS, 0, NORMRET,     /* 55 = x */
        !           102:        ILLSYS, 0, NORMRET,     /* 56 = x */
        !           103:        2, 1, NORMRET,          /* 57 = pwbsys */
        !           104:        ILLSYS, 0, NORMRET,     /* 58 = x */
        !           105:        ILLSYS, 0, NORMRET,     /* 59 = x */
        !           106:        ILLSYS, 0, NORMRET,     /* 60 = x */
        !           107:        ILLSYS, 0, NORMRET,     /* 61 = x */
        !           108:        0, 1, NORMRET,          /* 62 = idisys */
        !           109:        ILLSYS, 0, NORMRET      /* 63 = x */
        !           110: };

unix.superglobalmegacorp.com

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