|
|
1.1 root 1: /*
2:
1.1.1.3 ! root 3: Copyright 1990,1991,1992 Eric R. Smith.
! 4:
! 5: Copyright 1992 Atari Corporation.
! 6:
! 7: All rights reserved.
1.1 root 8:
9: */
10:
11:
12:
13: /* miscellaneous DOS functions, and the DOS initialization function */
14:
15:
16:
17: #include "mint.h"
18:
19:
20:
21: #define DOS_MAX 0x140
22:
23:
24:
25: Func dos_tab[DOS_MAX];
26:
27: short dos_max = DOS_MAX;
28:
29:
30:
31: static void alarmme P_((PROC *));
32:
33:
34:
1.1.1.2 root 35: long ARGS_ON_STACK
1.1 root 36:
37: s_version()
38:
39: {
40:
41: return Sversion();
42:
43: }
44:
45:
46:
47: /*
48:
49: * Super(new_ssp): change to supervisor mode.
50:
51: */
52:
53:
54:
1.1.1.2 root 55: long ARGS_ON_STACK
1.1 root 56:
57: s_uper(new_ssp)
58:
59: long new_ssp;
60:
61: {
62:
63: int in_super;
64:
65: long r;
66:
67:
68:
1.1.1.2 root 69: TRACE(("Super"));
1.1 root 70:
71: in_super = curproc->ctxt[SYSCALL].sr & 0x2000;
72:
73:
74:
75: if (new_ssp == 1) {
76:
77: r = in_super ? -1L : 0;
78:
79: }
80:
81: else {
82:
83: curproc->ctxt[SYSCALL].sr ^= 0x2000;
84:
85: r = curproc->ctxt[SYSCALL].ssp;
86:
87: if (in_super) {
88:
89: if (new_ssp == 0) {
90:
1.1.1.2 root 91: DEBUG(("bad Super call"));
1.1 root 92:
93: raise(SIGSYS);
94:
95: }
96:
97: else {
98:
99: curproc->ctxt[SYSCALL].usp =
100:
101: curproc->ctxt[SYSCALL].ssp;
102:
103: curproc->ctxt[SYSCALL].ssp = new_ssp;
104:
105: }
106:
107: }
108:
109: else {
110:
111: curproc->ctxt[SYSCALL].ssp =
112:
113: new_ssp ? new_ssp : curproc->ctxt[SYSCALL].usp;
114:
115: }
116:
117: }
118:
119: return r;
120:
121: }
122:
123:
124:
125: /*
126:
127: * get/set time and date functions
128:
129: */
130:
1.1.1.2 root 131: long ARGS_ON_STACK t_getdate() { return datestamp; }
1.1 root 132:
1.1.1.2 root 133: long ARGS_ON_STACK t_gettime() { return timestamp; }
1.1 root 134:
135:
136:
1.1.1.2 root 137: long ARGS_ON_STACK t_setdate(date)
1.1 root 138:
139: int date;
140:
141: {
142:
143: long r = Tsetdate(date);
144:
145: datestamp = Tgetdate();
146:
147: return r;
148:
149: }
150:
151:
152:
1.1.1.2 root 153: long ARGS_ON_STACK t_settime(time)
1.1 root 154:
155: int time;
156:
157: {
158:
159: long r = Tsettime(time);
160:
161: timestamp = Tgettime();
162:
163: return r;
164:
165: }
166:
167:
168:
169: /*
170:
171: * GEMDOS extension: Syield(): give up the processor if any other
172:
173: * processes are waiting. Always returns 0.
174:
175: */
176:
177:
178:
1.1.1.2 root 179: long ARGS_ON_STACK
1.1 root 180:
181: s_yield()
182:
183: {
184:
185: /* reward the nice process */
186:
187: curproc->curpri = curproc->pri;
188:
189: sleep(READY_Q, curproc->wait_cond);
190:
191: return 0;
192:
193: }
194:
195:
196:
197: /*
198:
199: * GEMDOS extension:
200:
201: * Prenice(pid, delta) sets the process priority level for process pid.
202:
203: * A "nice" value < 0 increases priority, one > 0 decreases it.
204:
205: * Always returns the new priority (so Prenice(pid, 0) queries the current
206:
207: * priority).
208:
209: *
210:
211: * NOTE: for backward compatibility, Pnice(delta) is provided and is equivalent
212:
213: * to Prenice(Pgetpid(), delta)
214:
215: */
216:
217:
218:
1.1.1.2 root 219: long ARGS_ON_STACK
1.1 root 220:
221: p_renice(pid, delta)
222:
223: int pid, delta;
224:
225: {
226:
227: PROC *p;
228:
229:
230:
1.1.1.2 root 231: if (pid <= 0 || 0 == (p = pid2proc(pid))) {
1.1 root 232:
233: return EFILNF;
234:
235: }
236:
237:
238:
239: if (curproc->euid && curproc->euid != p->ruid
240:
241: && curproc->ruid != p->ruid) {
242:
1.1.1.2 root 243: DEBUG(("Prenice: process ownership error"));
1.1 root 244:
245: return EACCDN;
246:
247: }
248:
249: p->pri -= delta;
250:
251: if (p->pri < MIN_NICE) p->pri = MIN_NICE;
252:
253: if (p->pri > MAX_NICE) p->pri = MAX_NICE;
254:
255: p->curpri = p->pri;
256:
257: return ((long)p->pri) & 0x0ffff;
258:
259: }
260:
261:
262:
1.1.1.2 root 263: long ARGS_ON_STACK
1.1 root 264:
265: p_nice(delta)
266:
267: int delta;
268:
269: {
270:
271: return p_renice(curproc->pid,delta);
272:
273: }
274:
275:
276:
277: /*
278:
279: * GEMDOS extensions: routines for getting/setting process i.d.'s and
280:
281: * user i.d.'s
282:
283: */
284:
285:
286:
1.1.1.2 root 287: long ARGS_ON_STACK p_getpid() { return curproc->pid; }
1.1 root 288:
289:
290:
1.1.1.2 root 291: long ARGS_ON_STACK p_getppid() { return curproc->ppid; }
1.1 root 292:
293:
294:
1.1.1.2 root 295: long ARGS_ON_STACK p_getpgrp() { return curproc->pgrp; }
1.1 root 296:
297:
298:
299: /* note: Psetpgrp(0, ...) is equivalent to Psetpgrp(Pgetpid(), ...) */
300:
301: /* also note: Psetpgrp(x, 0) is equivalent to Psetpgrp(x, x) */
302:
303:
304:
1.1.1.2 root 305: long ARGS_ON_STACK p_setpgrp(pid, newgrp)
1.1 root 306:
307: int pid, newgrp;
308:
309: {
310:
311: PROC *p;
312:
313:
314:
315: if (pid == 0)
316:
317: p = curproc;
318:
1.1.1.2 root 319: else if (0 == (p = pid2proc(pid)))
1.1 root 320:
321: return EFILNF;
322:
323: if ( (curproc->euid) && (p->ruid != curproc->ruid)
324:
325: && (p->ppid != curproc->pid) )
326:
327: return EACCDN;
328:
329:
330:
1.1.1.3 ! root 331: if (newgrp < 0)
! 332:
! 333: return p->pgrp;
! 334:
! 335:
! 336:
1.1 root 337: if (newgrp == 0)
338:
339: newgrp = p->pid;
340:
341:
342:
343: return (p->pgrp = newgrp);
344:
345: }
346:
347:
348:
1.1.1.2 root 349: long ARGS_ON_STACK p_getuid() { return curproc->ruid; }
1.1 root 350:
1.1.1.2 root 351: long ARGS_ON_STACK p_getgid() { return curproc->rgid; }
1.1 root 352:
1.1.1.2 root 353: long ARGS_ON_STACK p_geteuid() { return curproc->euid; }
1.1 root 354:
1.1.1.2 root 355: long ARGS_ON_STACK p_getegid() { return curproc->egid; }
1.1 root 356:
357:
358:
1.1.1.2 root 359: long ARGS_ON_STACK
1.1 root 360:
361: p_setuid(id)
362:
363: int id;
364:
365: {
366:
1.1.1.2 root 367: if (curproc->euid == 0 || curproc->ruid == id) {
1.1 root 368:
369: curproc->ruid = curproc->euid = id;
370:
371: return id;
372:
373: }
374:
375: return EACCDN;
376:
377: }
378:
379:
380:
1.1.1.2 root 381: long ARGS_ON_STACK
1.1 root 382:
383: p_setgid(id)
384:
385: int id;
386:
387: {
388:
1.1.1.2 root 389: if (curproc->euid == 0 || curproc->egid == 0 || curproc->rgid == id) {
1.1 root 390:
391: curproc->egid = curproc->rgid = id;
392:
393: return id;
394:
395: }
396:
397: return EACCDN;
398:
399: }
400:
401:
402:
403: /*
404:
405: * a way to get/set process-specific user information. the user information
406:
407: * longword is set to "arg", unless arg is -1. In any case, the old
408:
409: * value of the longword is returned.
410:
411: */
412:
413:
414:
1.1.1.2 root 415: long ARGS_ON_STACK
1.1 root 416:
417: p_usrval(arg)
418:
419: long arg;
420:
421: {
422:
423: long r;
424:
425:
426:
1.1.1.2 root 427: TRACE(("Pusrval"));
1.1 root 428:
429: r = curproc->usrdata;
430:
431: if (arg != -1L)
432:
433: curproc->usrdata = arg;
434:
435: return r;
436:
437: }
438:
439:
440:
441: /*
442:
443: * set the file creation mask to "mode". Returns the old value of the
444:
445: * mask.
446:
447: */
448:
1.1.1.2 root 449: long ARGS_ON_STACK p_umask(mode)
1.1 root 450:
451: unsigned mode;
452:
453: {
454:
455: long oldmask = curproc->umask;
456:
457:
458:
459: curproc->umask = mode & (~S_IFMT);
460:
461: return oldmask;
462:
463: }
464:
465:
466:
467: /*
468:
469: * get/set the domain of a process. domain 0 is the default (TOS) domain.
470:
471: * domain 1 is the MiNT domain. for now, domain affects read/write system
472:
473: * calls and filename translation.
474:
475: */
476:
477:
478:
1.1.1.2 root 479: long ARGS_ON_STACK
1.1 root 480:
481: p_domain(arg)
482:
483: int arg;
484:
485: {
486:
487: long r;
488:
1.1.1.2 root 489: TRACE(("Pdomain(%d)", arg));
1.1 root 490:
491:
492:
493: r = curproc->domain;
494:
495: if (arg >= 0)
496:
497: curproc->domain = arg;
498:
499: return r;
500:
501: }
502:
503:
504:
505: /*
506:
507: * get process resource usage. 8 longwords are returned, as follows:
508:
509: * r[0] == system time used by process
510:
511: * r[1] == user time used by process
512:
513: * r[2] == system time used by process' children
514:
515: * r[3] == user time used by process' children
516:
517: * r[4] == memory used by process
518:
519: * r[5] - r[7]: reserved for future use
520:
521: */
522:
523:
524:
1.1.1.2 root 525: long ARGS_ON_STACK
1.1 root 526:
527: p_rusage(r)
528:
529: long *r;
530:
531: {
532:
533: r[0] = curproc->systime;
534:
535: r[1] = curproc->usrtime;
536:
537: r[2] = curproc->chldstime;
538:
539: r[3] = curproc->chldutime;
540:
541: r[4] = memused(curproc);
542:
543: return 0;
544:
545: }
546:
547:
548:
549: /*
550:
551: * get/set resource limits i to value v. The old limit is always returned;
552:
553: * if v == -1, the limit is unchanged, otherwise it is set to v. Possible
554:
555: * values for i are:
556:
557: * 1: max. cpu time (milliseconds)
558:
559: * 2: max. core memory allowed
560:
561: * 3: max. amount of malloc'd memory allowed
562:
563: */
564:
1.1.1.2 root 565: long ARGS_ON_STACK
1.1 root 566:
567: p_setlimit(i, v)
568:
569: int i;
570:
571: long v;
572:
573: {
574:
575: long oldlimit;
576:
577:
578:
579: switch(i) {
580:
581: case 1:
582:
583: oldlimit = curproc->maxcpu;
584:
585: if (v >= 0) curproc->maxcpu = v;
586:
587: break;
588:
589: case 2:
590:
591: oldlimit = curproc->maxcore;
592:
593: if (v >= 0) {
594:
595: curproc->maxcore = v;
596:
597: recalc_maxmem(curproc);
598:
599: }
600:
601: break;
602:
603: case 3:
604:
605: oldlimit = curproc->maxdata;
606:
607: if (v >= 0) {
608:
609: curproc->maxdata = v;
610:
611: recalc_maxmem(curproc);
612:
613: }
614:
615: break;
616:
617: default:
618:
1.1.1.2 root 619: DEBUG(("Psetlimit: invalid mode %d", i));
1.1 root 620:
621: return EINVFN;
622:
623: }
624:
1.1.1.2 root 625: TRACE(("p_setlimit(%d, %ld): oldlimit = %ld", i, v, oldlimit));
1.1 root 626:
627: return oldlimit;
628:
629: }
630:
631:
632:
633: /*
634:
635: * pause: just sleeps on IO_Q, with wait_cond == -1. only a signal will
636:
637: * wake us up
638:
639: */
640:
641:
642:
1.1.1.2 root 643: long ARGS_ON_STACK
1.1 root 644:
645: p_pause()
646:
647: {
648:
1.1.1.2 root 649: TRACE(("Pause"));
650:
1.1 root 651: sleep(IO_Q, -1L);
652:
653: return 0;
654:
655: }
656:
657:
658:
659: /*
660:
661: * helper function for t_alarm: this will be called when the timer goes
662:
663: * off, and raises SIGALRM
664:
665: */
666:
667:
668:
669: static void
670:
671: alarmme(p)
672:
673: PROC *p;
674:
675: {
676:
677: p->alarmtim = 0;
678:
679: post_sig(p, SIGALRM);
680:
681: }
682:
683:
684:
685: /*
686:
687: * t_alarm(x): set the alarm clock to go off in "x" seconds. returns the
688:
689: * old value of the alarm clock
690:
691: */
692:
693:
694:
1.1.1.2 root 695: long ARGS_ON_STACK
1.1 root 696:
697: t_alarm(x)
698:
699: long x;
700:
701: {
702:
703: long oldalarm;
704:
705: TIMEOUT *t;
706:
707:
708:
709: /* see how many milliseconds there were to the alarm timeout */
710:
711: oldalarm = 0;
712:
713:
714:
715: if (curproc->alarmtim) {
716:
717: for (t = tlist; t; t = t->next) {
718:
719: oldalarm += t->when;
720:
721: if (t == curproc->alarmtim)
722:
723: goto foundalarm;
724:
725: }
726:
1.1.1.2 root 727: DEBUG(("Talarm: old alarm not found!"));
1.1 root 728:
729: oldalarm = 0;
730:
731: curproc->alarmtim = 0;
732:
733: foundalarm:
734:
735: ;
736:
737: }
738:
739:
740:
741: oldalarm = (oldalarm+999) / 1000; /* convert to seconds */
742:
743:
744:
745: /* we were just querying the alarm */
746:
747: if (x < 0)
748:
749: return oldalarm;
750:
751:
752:
753: /* cancel old alarm */
754:
755: if (curproc->alarmtim)
756:
757: canceltimeout(curproc->alarmtim);
758:
759:
760:
761: /* add a new alarm, to occur in 1000*x milliseconds */
762:
763: if (x)
764:
765: curproc->alarmtim = addtimeout(1000*x, alarmme);
766:
767: else
768:
769: curproc->alarmtim = 0;
770:
771:
772:
773: return oldalarm;
774:
775: }
776:
777:
778:
779: /*
780:
781: * sysconf(which): returns information about system configuration.
782:
783: * "which" specifies which aspect of the system configuration is to
784:
785: * be returned:
786:
787: * -1 max. value of "which" allowed
788:
789: * 0 max. number of memory regions per proc
790:
791: * 1 max. length of Pexec() execution string {ARG_MAX}
792:
793: * 2 max. number of open files per process {OPEN_MAX}
794:
795: * 3 number of supplementary group id's {currently 0}
796:
797: * 4 max. number of processes per uid {CHILD_MAX}
798:
799: *
800:
801: * unlimited values (e.g. CHILD_MAX) are returned as 0x7fffffffL
802:
803: *
804:
805: * See also Dpathconf() in dosdir.c.
806:
807: */
808:
809:
810:
1.1.1.2 root 811: long ARGS_ON_STACK
1.1 root 812:
813: s_ysconf(which)
814:
815: int which;
816:
817: {
818:
819: if (which == -1)
820:
821: return 4;
822:
823:
824:
825: switch(which) {
826:
827: case 0:
828:
829: return UNLIMITED;
830:
831: case 1:
832:
833: return 126;
834:
835: case 2:
836:
837: return MAX_OPEN;
838:
839: case 3:
840:
841: return 0;
842:
843: case 4:
844:
845: return UNLIMITED;
846:
847: default:
848:
849: return EINVFN;
850:
851: }
852:
853: }
854:
855:
856:
857: /*
858:
1.1.1.3 ! root 859: * Salert: send an ALERT message to the user, via the same mechanism
! 860:
! 861: * the kernel does (i.e. u:\pipe\alert, if it's available
! 862:
! 863: */
! 864:
! 865:
! 866:
! 867: long ARGS_ON_STACK
! 868:
! 869: s_alert(str)
! 870:
! 871: char *str;
! 872:
! 873: {
! 874:
! 875: /* how's this for confusing code? _ALERT tries to format the
! 876:
! 877: * string as an alert box; if it fails, we let the full-fledged
! 878:
! 879: * ALERT function (which will try _ALERT, and fail again)
! 880:
! 881: * print the alert to the debugging device
! 882:
! 883: */
! 884:
! 885: if (_ALERT(str) == 0)
! 886:
! 887: ALERT(str);
! 888:
! 889: return 0;
! 890:
! 891: }
! 892:
! 893:
! 894:
! 895: /*
! 896:
1.1 root 897: * routine for initializing DOS
898:
899: *
900:
901: * NOTE: before adding new functions, check the definition of
902:
903: * DOS_MAX at the top of this file to make sure that there
904:
905: * is room; if not, increase DOS_MAX.
906:
907: */
908:
909:
910:
911: void
912:
913: init_dos()
914:
915: {
916:
917: /* miscellaneous initialization goes here */
918:
919: timestamp = Tgettime();
920:
921: datestamp = Tgetdate();
922:
923:
924:
925: /* dos table initialization */
926:
927: dos_tab[0x00] = p_term0;
928:
929: dos_tab[0x01] = c_conin;
930:
931: dos_tab[0x02] = c_conout;
932:
933: dos_tab[0x03] = c_auxin;
934:
935: dos_tab[0x04] = c_auxout;
936:
937: dos_tab[0x05] = c_prnout;
938:
939: dos_tab[0x06] = c_rawio;
940:
941: dos_tab[0x07] = c_rawcin;
942:
943: dos_tab[0x08] = c_necin;
944:
945: dos_tab[0x09] = c_conws;
946:
947: dos_tab[0x0a] = c_conrs;
948:
949: dos_tab[0x0b] = c_conis;
950:
951: dos_tab[0x0e] = d_setdrv;
952:
953: dos_tab[0x10] = c_conos;
954:
955: dos_tab[0x11] = c_prnos;
956:
957: dos_tab[0x12] = c_auxis;
958:
959: dos_tab[0x13] = c_auxos;
960:
961: dos_tab[0x14] = m_addalt;
962:
1.1.1.3 ! root 963: dos_tab[0x15] = s_realloc;
! 964:
1.1 root 965: dos_tab[0x19] = d_getdrv;
966:
967: dos_tab[0x1a] = f_setdta;
968:
969: dos_tab[0x20] = s_uper;
970:
971: dos_tab[0x2a] = t_getdate;
972:
973: dos_tab[0x2b] = t_setdate;
974:
975: dos_tab[0x2c] = t_gettime;
976:
977: dos_tab[0x2d] = t_settime;
978:
979: dos_tab[0x2f] = f_getdta;
980:
981: dos_tab[0x30] = s_version;
982:
983: dos_tab[0x31] = p_termres;
984:
985: dos_tab[0x36] = d_free;
986:
987: dos_tab[0x39] = d_create;
988:
989: dos_tab[0x3a] = d_delete;
990:
991: dos_tab[0x3b] = d_setpath;
992:
993: dos_tab[0x3c] = f_create;
994:
995: dos_tab[0x3d] = f_open;
996:
997: dos_tab[0x3e] = f_close;
998:
999: dos_tab[0x3f] = f_read;
1000:
1001: dos_tab[0x40] = f_write;
1002:
1003: dos_tab[0x41] = f_delete;
1004:
1005: dos_tab[0x42] = f_seek;
1006:
1007: dos_tab[0x43] = f_attrib;
1008:
1009: dos_tab[0x44] = m_xalloc;
1010:
1011: dos_tab[0x45] = f_dup;
1012:
1013: dos_tab[0x46] = f_force;
1014:
1015: dos_tab[0x47] = d_getpath;
1016:
1017: dos_tab[0x48] = m_alloc;
1018:
1019: dos_tab[0x49] = m_free;
1020:
1021: dos_tab[0x4a] = m_shrink;
1022:
1023: dos_tab[0x4b] = p_exec;
1024:
1025: dos_tab[0x4c] = p_term;
1026:
1027: dos_tab[0x4e] = f_sfirst;
1028:
1029: dos_tab[0x4f] = f_snext;
1030:
1031: dos_tab[0x56] = f_rename;
1032:
1033: dos_tab[0x57] = f_datime;
1034:
1035: dos_tab[0x5c] = f_lock;
1036:
1037:
1038:
1039: /* MiNT extensions to GEMDOS */
1040:
1041:
1042:
1043: dos_tab[0xff] = s_yield;
1044:
1045: dos_tab[0x100] = f_pipe;
1046:
1047: dos_tab[0x104] = f_cntl;
1048:
1.1.1.2 root 1049: dos_tab[0x105] = f_instat;
1.1 root 1050:
1.1.1.2 root 1051: dos_tab[0x106] = f_outstat;
1.1 root 1052:
1.1.1.2 root 1053: dos_tab[0x107] = f_getchar;
1.1 root 1054:
1.1.1.2 root 1055: dos_tab[0x108] = f_putchar;
1.1 root 1056:
1057: dos_tab[0x109] = p_wait;
1058:
1059: dos_tab[0x10a] = p_nice;
1060:
1061: dos_tab[0x10b] = p_getpid;
1062:
1063: dos_tab[0x10c] = p_getppid;
1064:
1065: dos_tab[0x10d] = p_getpgrp;
1066:
1067: dos_tab[0x10e] = p_setpgrp;
1068:
1069: dos_tab[0x10f] = p_getuid;
1070:
1071: dos_tab[0x110] = p_setuid;
1072:
1073: dos_tab[0x111] = p_kill;
1074:
1075: dos_tab[0x112] = p_signal;
1076:
1077: dos_tab[0x113] = p_vfork;
1078:
1079: dos_tab[0x114] = p_getgid;
1080:
1081: dos_tab[0x115] = p_setgid;
1082:
1.1.1.3 ! root 1083:
! 1084:
1.1 root 1085: dos_tab[0x116] = p_sigblock;
1086:
1087: dos_tab[0x117] = p_sigsetmask;
1088:
1089: dos_tab[0x118] = p_usrval;
1090:
1091: dos_tab[0x119] = p_domain;
1092:
1093: dos_tab[0x11a] = p_sigreturn;
1094:
1095: dos_tab[0x11b] = p_fork;
1096:
1097: dos_tab[0x11c] = p_wait3;
1098:
1099: dos_tab[0x11d] = f_select;
1100:
1101: dos_tab[0x11e] = p_rusage;
1102:
1103: dos_tab[0x11f] = p_setlimit;
1104:
1105: dos_tab[0x120] = t_alarm;
1106:
1107: dos_tab[0x121] = p_pause;
1108:
1109: dos_tab[0x122] = s_ysconf;
1110:
1111: dos_tab[0x123] = p_sigpending;
1112:
1113: dos_tab[0x124] = d_pathconf;
1114:
1115: dos_tab[0x125] = p_msg;
1116:
1117: dos_tab[0x126] = f_midipipe;
1118:
1119: dos_tab[0x127] = p_renice;
1120:
1121: dos_tab[0x128] = d_opendir;
1122:
1123: dos_tab[0x129] = d_readdir;
1124:
1125: dos_tab[0x12a] = d_rewind;
1126:
1127: dos_tab[0x12b] = d_closedir;
1128:
1129: dos_tab[0x12c] = f_xattr;
1130:
1131: dos_tab[0x12d] = f_link;
1132:
1133: dos_tab[0x12e] = f_symlink;
1134:
1135: dos_tab[0x12f] = f_readlink;
1136:
1137: dos_tab[0x130] = d_cntl;
1138:
1139: dos_tab[0x131] = f_chown;
1140:
1141: dos_tab[0x132] = f_chmod;
1142:
1143: dos_tab[0x133] = p_umask;
1144:
1145: dos_tab[0x134] = p_semaphore;
1146:
1147: dos_tab[0x135] = d_lock;
1148:
1149: dos_tab[0x136] = p_sigpause;
1150:
1151: dos_tab[0x137] = p_sigaction;
1152:
1153: dos_tab[0x138] = p_geteuid;
1154:
1155: dos_tab[0x139] = p_getegid;
1156:
1.1.1.2 root 1157: dos_tab[0x13a] = p_waitpid;
1158:
1159: dos_tab[0x13b] = d_getcwd;
1160:
1.1.1.3 ! root 1161: dos_tab[0x13c] = s_alert;
! 1162:
1.1 root 1163: }
1164:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.