16804Srrh /* 2*14308Skre * unix7sys.h 4.2 83/07/31 36804Srrh */ 46804Srrh #define NSYSTRAPS 64 56804Srrh #define NSIGS 13 66804Srrh #define ILLSYS -1 76804Srrh #define NORMRET 0 86804Srrh #define LONGRET 1 96804Srrh #define TWORET 2 106804Srrh #define FORK 2 116804Srrh #define OPEN 5 126804Srrh #define WAIT 7 136804Srrh #define CREAT 8 146804Srrh #define LINK 9 156804Srrh #define UNLNK 10 166804Srrh #define EXEC 11 176804Srrh #define CHDIR 12 18*14308Skre #define TIME 13 196804Srrh #define MKNOD 14 206804Srrh #define BRK 17 216804Srrh #define STAT 18 226804Srrh #define SEEK 19 236804Srrh #define SETUID 23 246804Srrh #define GETUID 24 25*14308Skre #define STIME 25 26*14308Skre #define ALARM 27 276804Srrh #define FSTAT 28 28*14308Skre #define PAUSE 29 29*14308Skre #define UTIME 30 30*14308Skre #define NICE 34 31*14308Skre #define FTIME 35 32*14308Skre #define SETPGRP 39 336804Srrh #define PIPE 42 346804Srrh #define TIMES 43 356804Srrh #define SETGID 46 366804Srrh #define GETGID 47 376804Srrh #define SIG 48 38*14308Skre #define IOCTL 54 396804Srrh #define EXECE 59 406804Srrh /* 416804Srrh * The numerical entries in the following table are 426804Srrh * really composed of 3 parts. 436804Srrh * The first entry in each row indicates the number 446804Srrh * of register arguments for the system call, while 456804Srrh * the 2nd position is the number of memory arguments 466804Srrh * the 3rd position is LONGRET if the return is a long (r0 and r1) 476804Srrh * or is TWORET if the return is 2 ints ala pipe 486804Srrh * otherwise it is NORMRET. 496804Srrh */ 506804Srrh int sysargs[][3] = 516804Srrh { 526804Srrh 0, 0, NORMRET, /* 0 = indir */ 536804Srrh 1, 0, NORMRET, /* 1 = exit */ 546804Srrh 0, 0, NORMRET, /* 2 = fork */ 556804Srrh 1, 2, NORMRET, /* 3 = read */ 566804Srrh 1, 2, NORMRET, /* 4 = write */ 576804Srrh 0, 2, NORMRET, /* 5 = open */ 586804Srrh 1, 0, NORMRET, /* 6 = close */ 596804Srrh 0, 0, TWORET, /* 7 = wait */ 606804Srrh 0, 2, NORMRET, /* 8 = creat */ 616804Srrh 0, 2, NORMRET, /* 9 = link */ 626804Srrh 0, 1, NORMRET, /* 10 = unlink */ 636804Srrh 0, 2, NORMRET, /* 11 = exec */ 646804Srrh 0, 1, NORMRET, /* 12 = chdir */ 656804Srrh 0, 0, LONGRET, /* 13 = time */ 666804Srrh 0, 3, NORMRET, /* 14 = mknod */ 676804Srrh 0, 2, NORMRET, /* 15 = chmod */ 686804Srrh 0, 3, NORMRET, /* 16 = chown; now 3 args */ 696804Srrh 0, 1, NORMRET, /* 17 = break */ 706804Srrh 0, 2, NORMRET, /* 18 = stat */ 716804Srrh 1, 3, LONGRET, /* 19 = seek; now 3 args */ 726804Srrh 0, 0, NORMRET, /* 20 = getpid */ 736804Srrh 0, 3, NORMRET, /* 21 = mount */ 746804Srrh 0, 1, NORMRET, /* 22 = umount */ 756804Srrh 1, 0, NORMRET, /* 23 = setuid */ 766804Srrh 0, 0, TWORET, /* 24 = getuid */ 776804Srrh 2, 0, NORMRET, /* 25 = stime */ 786804Srrh 1, 3, NORMRET, /* 26 = ptrace */ 796804Srrh 1, 0, NORMRET, /* 27 = alarm */ 806804Srrh 1, 1, NORMRET, /* 28 = fstat */ 816804Srrh 0, 0, NORMRET, /* 29 = pause */ 826804Srrh 0, 2, NORMRET, /* 30 = utime */ 836804Srrh 1, 1, NORMRET, /* 31 = stty */ 846804Srrh 1, 1, NORMRET, /* 32 = gtty */ 856804Srrh 0, 2, NORMRET, /* 33 = access */ 866804Srrh 1, 0, NORMRET, /* 34 = nice */ 876804Srrh 0, 1, NORMRET, /* 35 = ftime; formerly sleep */ 886804Srrh 0, 0, NORMRET, /* 36 = sync */ 896804Srrh 1, 1, NORMRET, /* 37 = kill */ 906804Srrh 0, 0, NORMRET, /* 38 = switch; inoperative */ 916804Srrh 0, 0, NORMRET, /* 39 = setpgrp (not in yet) */ 926804Srrh ILLSYS, 0, NORMRET, /* 40 = tell (obsolete) */ 936804Srrh 2, 0, NORMRET, /* 41 = dup */ 946804Srrh 0, 0, TWORET, /* 42 = pipe */ 956804Srrh 0, 1, NORMRET, /* 43 = times */ 966804Srrh 0, 4, NORMRET, /* 44 = prof */ 976804Srrh ILLSYS, 0, NORMRET, /* 45 = unused */ 986804Srrh 1, 0, NORMRET, /* 46 = setgid */ 996804Srrh 0, 0, TWORET, /* 47 = getgid */ 1006804Srrh 0, 2, NORMRET, /* 48 = sig */ 1016804Srrh ILLSYS, 0, NORMRET, /* 49 = reserved for USG */ 1026804Srrh ILLSYS, 0, NORMRET, /* 50 = reserved for USG */ 1036804Srrh 0, 1, NORMRET, /* 51 = turn acct off/on */ 1046804Srrh 0, 3, NORMRET, /* 52 = set user physical addresses */ 1056804Srrh 0, 1, NORMRET, /* 53 = lock user in core */ 1066804Srrh 0, 3, NORMRET, /* 54 = ioctl */ 1076804Srrh ILLSYS, 0, NORMRET, /* 55 = readwrite (in abeyance) */ 1086804Srrh 0, 4, NORMRET, /* 56 = creat mpx comm channel */ 1096804Srrh ILLSYS, 0, NORMRET, /* 57 = reserved for USG */ 1106804Srrh ILLSYS, 0, NORMRET, /* 58 = reserved for USG */ 1116804Srrh 0, 3, NORMRET, /* 59 = exece */ 1126804Srrh 0, 1, NORMRET, /* 60 = umask */ 1136804Srrh 0, 1, NORMRET, /* 61 = chroot */ 1146804Srrh ILLSYS, 0, NORMRET, /* 62 = x */ 1156804Srrh ILLSYS, 0, NORMRET /* 63 = used internally */ 1166804Srrh }; 117