|
|
1.1 root 1: /* bios.c */
2:
1.1.1.2 root 3: long ARGS_ON_STACK getmpb P_((void *ptr));
1.1 root 4:
5: long bconstat P_((int dev));
6:
7: long bconin P_((int dev));
8:
9: long bconout P_((int dev, int c));
10:
1.1.1.2 root 11: long ARGS_ON_STACK ubconstat P_((int dev));
1.1 root 12:
1.1.1.2 root 13: long ARGS_ON_STACK ubconin P_((int dev));
1.1 root 14:
1.1.1.2 root 15: long ARGS_ON_STACK ubconout P_((int dev, int c));
1.1 root 16:
1.1.1.2 root 17: long ARGS_ON_STACK rwabs P_((int rwflag, void *buffer, int number, int recno, int dev, long lrecno));
1.1 root 18:
1.1.1.2 root 19: long ARGS_ON_STACK setexc P_((int number, long vector));
1.1 root 20:
1.1.1.2 root 21: long ARGS_ON_STACK tickcal P_((void));
1.1 root 22:
1.1.1.2 root 23: long ARGS_ON_STACK getbpb P_((int dev));
1.1 root 24:
25: long bcostat P_((int dev));
26:
1.1.1.2 root 27: long ARGS_ON_STACK ubcostat P_((int dev));
1.1 root 28:
1.1.1.2 root 29: long ARGS_ON_STACK mediach P_((int dev));
1.1 root 30:
1.1.1.2 root 31: long ARGS_ON_STACK drvmap P_((void));
1.1 root 32:
1.1.1.2 root 33: long ARGS_ON_STACK kbshift P_((int mode));
1.1 root 34:
1.1.1.2 root 35: long ARGS_ON_STACK bflush P_((void));
1.1 root 36:
37: void init_bios P_((void));
38:
1.1.1.2 root 39: long ARGS_ON_STACK do_bconin P_((int dev));
40:
1.1 root 41: int checkkeys P_((void));
42:
1.1.1.3 ! root 43: void init_vectors P_((void));
! 44:
! 45: void unlink_vectors P_((long start, long end));
! 46:
1.1 root 47:
48:
49: /* xbios.c */
50:
1.1.1.2 root 51: long ARGS_ON_STACK supexec P_((Func funcptr, long a1, long a2, long a3, long a4, long a5));
1.1 root 52:
1.1.1.2 root 53: long ARGS_ON_STACK midiws P_((int, const char *));
1.1 root 54:
55: int mapin P_((int));
56:
1.1.1.2 root 57: long ARGS_ON_STACK uiorec P_((int));
58:
59: long ARGS_ON_STACK rsconf P_((int, int, int, int, int, int));
1.1 root 60:
1.1.1.2 root 61: long ARGS_ON_STACK bconmap P_((int));
1.1 root 62:
1.1.1.2 root 63: long ARGS_ON_STACK cursconf P_((int, int));
1.1 root 64:
65: void init_xbios P_((void));
66:
67:
68:
69: /* console.c */
70:
1.1.1.2 root 71: long file_instat P_((FILEPTR *f));
72:
73: long file_outstat P_((FILEPTR *f));
74:
75: long file_getchar P_((FILEPTR *f, int mode));
76:
77: long file_putchar P_((FILEPTR *f, long c, int mode));
1.1 root 78:
1.1.1.2 root 79: long ARGS_ON_STACK c_conin P_((void));
1.1 root 80:
1.1.1.2 root 81: long ARGS_ON_STACK c_conout P_((int c));
1.1 root 82:
1.1.1.2 root 83: long ARGS_ON_STACK c_auxin P_((void));
1.1 root 84:
1.1.1.2 root 85: long ARGS_ON_STACK c_auxout P_((int c));
1.1 root 86:
1.1.1.2 root 87: long ARGS_ON_STACK c_prnout P_((int c));
1.1 root 88:
1.1.1.2 root 89: long ARGS_ON_STACK c_rawio P_((int c));
1.1 root 90:
1.1.1.2 root 91: long ARGS_ON_STACK c_rawcin P_((void));
1.1 root 92:
1.1.1.2 root 93: long ARGS_ON_STACK c_necin P_((void));
1.1 root 94:
1.1.1.2 root 95: long ARGS_ON_STACK c_conws P_((const char *str));
1.1 root 96:
1.1.1.2 root 97: long ARGS_ON_STACK c_conrs P_((char *buf));
1.1 root 98:
1.1.1.2 root 99: long ARGS_ON_STACK c_conis P_((void));
1.1 root 100:
1.1.1.2 root 101: long ARGS_ON_STACK c_conos P_((void));
1.1 root 102:
1.1.1.2 root 103: long ARGS_ON_STACK c_prnos P_((void));
1.1 root 104:
1.1.1.2 root 105: long ARGS_ON_STACK c_auxis P_((void));
1.1 root 106:
1.1.1.2 root 107: long ARGS_ON_STACK c_auxos P_((void));
1.1 root 108:
1.1.1.2 root 109: long ARGS_ON_STACK f_instat P_((int fh));
1.1 root 110:
1.1.1.2 root 111: long ARGS_ON_STACK f_outstat P_((int fh));
1.1 root 112:
1.1.1.2 root 113: long ARGS_ON_STACK f_getchar P_((int fh, int mode));
114:
115: long ARGS_ON_STACK f_putchar P_((int fh, long c, int mode));
1.1 root 116:
117:
118:
119: /* dos.c */
120:
1.1.1.2 root 121: long ARGS_ON_STACK s_version P_((void));
1.1 root 122:
1.1.1.2 root 123: long ARGS_ON_STACK s_uper P_((long new_ssp));
1.1 root 124:
1.1.1.2 root 125: long ARGS_ON_STACK t_getdate P_((void));
1.1 root 126:
1.1.1.2 root 127: long ARGS_ON_STACK t_setdate P_((int date));
1.1 root 128:
1.1.1.2 root 129: long ARGS_ON_STACK t_gettime P_((void));
1.1 root 130:
1.1.1.2 root 131: long ARGS_ON_STACK t_settime P_((int time));
1.1 root 132:
1.1.1.2 root 133: long ARGS_ON_STACK s_yield P_((void));
1.1 root 134:
1.1.1.2 root 135: long ARGS_ON_STACK p_renice P_((int pid, int delta));
1.1 root 136:
1.1.1.2 root 137: long ARGS_ON_STACK p_nice P_((int delta));
1.1 root 138:
1.1.1.2 root 139: long ARGS_ON_STACK p_getpid P_((void));
1.1 root 140:
1.1.1.2 root 141: long ARGS_ON_STACK p_getppid P_((void));
1.1 root 142:
1.1.1.2 root 143: long ARGS_ON_STACK p_getpgrp P_((void));
1.1 root 144:
1.1.1.2 root 145: long ARGS_ON_STACK p_setpgrp P_((int pid, int newgrp));
1.1 root 146:
1.1.1.2 root 147: long ARGS_ON_STACK p_getuid P_((void));
1.1 root 148:
1.1.1.2 root 149: long ARGS_ON_STACK p_getgid P_((void));
1.1 root 150:
1.1.1.2 root 151: long ARGS_ON_STACK p_geteuid P_((void));
1.1 root 152:
1.1.1.2 root 153: long ARGS_ON_STACK p_getegid P_((void));
1.1 root 154:
1.1.1.2 root 155: long ARGS_ON_STACK p_setuid P_((int id));
1.1 root 156:
1.1.1.2 root 157: long ARGS_ON_STACK p_setgid P_((int id));
1.1 root 158:
1.1.1.2 root 159: long ARGS_ON_STACK p_usrval P_((long arg));
1.1 root 160:
1.1.1.2 root 161: long ARGS_ON_STACK p_umask P_((unsigned mode));
1.1 root 162:
1.1.1.2 root 163: long ARGS_ON_STACK p_domain P_((int arg));
1.1 root 164:
1.1.1.2 root 165: long ARGS_ON_STACK p_rusage P_((long *r));
1.1 root 166:
1.1.1.2 root 167: long ARGS_ON_STACK p_setlimit P_((int i, long v));
1.1 root 168:
1.1.1.2 root 169: long ARGS_ON_STACK p_pause P_((void));
1.1 root 170:
1.1.1.2 root 171: long ARGS_ON_STACK t_alarm P_((long x));
1.1 root 172:
1.1.1.2 root 173: long ARGS_ON_STACK s_ysconf P_((int which));
1.1 root 174:
1.1.1.3 ! root 175: long ARGS_ON_STACK s_alert P_((char *msg));
! 176:
1.1 root 177: void init_dos P_((void));
178:
179:
180:
181: /* dosdir.c */
182:
1.1.1.2 root 183: long ARGS_ON_STACK d_setdrv P_((int d));
184:
185: long ARGS_ON_STACK d_getdrv P_((void));
1.1 root 186:
1.1.1.2 root 187: long ARGS_ON_STACK d_free P_((long *buf, int d));
1.1 root 188:
1.1.1.2 root 189: long ARGS_ON_STACK d_create P_((const char *path));
1.1 root 190:
1.1.1.2 root 191: long ARGS_ON_STACK d_delete P_((const char *path));
1.1 root 192:
1.1.1.2 root 193: long ARGS_ON_STACK d_setpath P_((const char *path));
1.1 root 194:
1.1.1.2 root 195: long ARGS_ON_STACK d_getpath P_((char *path, int drv));
1.1 root 196:
1.1.1.2 root 197: long ARGS_ON_STACK d_getcwd P_((char *path, int drv, int size));
1.1 root 198:
1.1.1.2 root 199: long ARGS_ON_STACK f_setdta P_((DTABUF *dta));
1.1 root 200:
1.1.1.2 root 201: long ARGS_ON_STACK f_getdta P_((void));
1.1 root 202:
1.1.1.2 root 203: long ARGS_ON_STACK f_sfirst P_((const char *path, int attrib));
1.1 root 204:
1.1.1.2 root 205: long ARGS_ON_STACK f_snext P_((void));
1.1 root 206:
1.1.1.2 root 207: long ARGS_ON_STACK f_attrib P_((const char *name, int rwflag, int attr));
1.1 root 208:
1.1.1.2 root 209: long ARGS_ON_STACK f_delete P_((const char *name));
1.1 root 210:
1.1.1.2 root 211: long ARGS_ON_STACK f_rename P_((int junk, const char *old, const char *new));
1.1 root 212:
1.1.1.2 root 213: long ARGS_ON_STACK d_pathconf P_((const char *name, int which));
1.1 root 214:
1.1.1.2 root 215: long ARGS_ON_STACK d_opendir P_((const char *path, int flags));
1.1 root 216:
1.1.1.2 root 217: long ARGS_ON_STACK d_readdir P_((int len, long handle, char *buf));
1.1 root 218:
1.1.1.2 root 219: long ARGS_ON_STACK d_rewind P_((long handle));
1.1 root 220:
1.1.1.2 root 221: long ARGS_ON_STACK d_closedir P_((long handle));
1.1 root 222:
1.1.1.2 root 223: long ARGS_ON_STACK f_xattr P_((int flag, const char *name, XATTR *xattr));
1.1 root 224:
1.1.1.2 root 225: long ARGS_ON_STACK f_link P_((const char *old, const char *new));
1.1 root 226:
1.1.1.2 root 227: long ARGS_ON_STACK f_symlink P_((const char *old, const char *new));
1.1 root 228:
1.1.1.2 root 229: long ARGS_ON_STACK f_readlink P_((int buflen, char *buf, const char *linkfile));
1.1 root 230:
1.1.1.2 root 231: long ARGS_ON_STACK d_cntl P_((int cmd, const char *name, long arg));
1.1 root 232:
1.1.1.2 root 233: long ARGS_ON_STACK f_chown P_((const char *name, int uid, int gid));
1.1 root 234:
1.1.1.2 root 235: long ARGS_ON_STACK f_chmod P_((const char *name, unsigned mode));
1.1 root 236:
1.1.1.2 root 237: long ARGS_ON_STACK d_lock P_((int mode, int drv));
1.1 root 238:
239:
240:
241: /* dosfile.c */
242:
243: FILEPTR * do_open P_((const char *name, int mode, int attr, XATTR *x));
244:
245: long do_pclose P_((PROC *p, FILEPTR *f));
246:
247: long do_close P_((FILEPTR *f));
248:
1.1.1.2 root 249: long ARGS_ON_STACK f_open P_((const char *name, int mode));
1.1 root 250:
1.1.1.2 root 251: long ARGS_ON_STACK f_create P_((const char *name, int attrib));
1.1 root 252:
1.1.1.2 root 253: long ARGS_ON_STACK f_close P_((int fh));
1.1 root 254:
1.1.1.2 root 255: long ARGS_ON_STACK f_read P_((int fh, long count, char *buf));
1.1 root 256:
1.1.1.2 root 257: long ARGS_ON_STACK f_write P_((int fh, long count, const char *buf));
1.1 root 258:
1.1.1.2 root 259: long ARGS_ON_STACK f_seek P_((long place, int fh, int how));
1.1 root 260:
1.1.1.2 root 261: long ARGS_ON_STACK f_dup P_((int fh));
1.1 root 262:
1.1.1.2 root 263: long ARGS_ON_STACK f_force P_((int newh, int oldh));
1.1 root 264:
1.1.1.2 root 265: long ARGS_ON_STACK f_datime P_((short *timeptr, int fh, int rwflag));
1.1 root 266:
1.1.1.2 root 267: long ARGS_ON_STACK f_lock P_((int fh, int mode, long start, long length));
1.1 root 268:
1.1.1.2 root 269: long ARGS_ON_STACK f_pipe P_((short *usrh));
1.1 root 270:
1.1.1.2 root 271: long ARGS_ON_STACK f_cntl P_((int fh, long arg, int cmd));
1.1 root 272:
1.1.1.2 root 273: long ARGS_ON_STACK f_select P_((unsigned timeout, long *rfdp, long *wfdp, long *xfdp));
1.1 root 274:
1.1.1.2 root 275: long ARGS_ON_STACK f_midipipe P_((int pid, int in, int out));
1.1 root 276:
277:
278:
279: /* dosmem.c */
280:
1.1.1.2 root 281: long ARGS_ON_STACK m_addalt P_((long start, long size));
1.1 root 282:
283: long _do_malloc P_((MMAP map, long size, int mode));
284:
1.1.1.2 root 285: long ARGS_ON_STACK m_xalloc P_((long size, int mode));
1.1 root 286:
1.1.1.2 root 287: long ARGS_ON_STACK m_alloc P_((long size));
1.1 root 288:
1.1.1.2 root 289: long ARGS_ON_STACK m_free P_((virtaddr block));
1.1 root 290:
1.1.1.2 root 291: long ARGS_ON_STACK m_shrink P_((int dummy, virtaddr block, long size));
1.1 root 292:
1.1.1.2 root 293: long ARGS_ON_STACK p_exec P_((int mode, void *ptr1, void *ptr2, void *ptr3));
1.1 root 294:
295: long terminate P_((int code, int que));
296:
1.1.1.2 root 297: long ARGS_ON_STACK p_term P_((int code));
1.1 root 298:
1.1.1.2 root 299: long ARGS_ON_STACK p_term0 P_((void));
1.1 root 300:
1.1.1.2 root 301: long ARGS_ON_STACK p_termres P_((long save, int code));
1.1 root 302:
1.1.1.2 root 303: long ARGS_ON_STACK p_waitpid P_((int pid, int nohang, long *rusage));
1.1 root 304:
1.1.1.2 root 305: long ARGS_ON_STACK p_wait3 P_((int nohang, long *rusage));
1.1 root 306:
1.1.1.2 root 307: long ARGS_ON_STACK p_wait P_((void));
1.1 root 308:
1.1.1.2 root 309: long ARGS_ON_STACK p_vfork P_((void));
310:
311: long ARGS_ON_STACK p_fork P_((void));
1.1 root 312:
313:
314:
315: /* dossig.c */
316:
1.1.1.2 root 317: long ARGS_ON_STACK p_kill P_((int pid, int sig));
1.1 root 318:
1.1.1.2 root 319: long ARGS_ON_STACK p_sigaction P_((int sig, const struct sigaction *act,
1.1 root 320:
321: struct sigaction *oact));
322:
1.1.1.2 root 323: long ARGS_ON_STACK p_signal P_((int sig, long handler));
1.1 root 324:
1.1.1.2 root 325: long ARGS_ON_STACK p_sigblock P_((ulong mask));
1.1 root 326:
1.1.1.2 root 327: long ARGS_ON_STACK p_sigsetmask P_((ulong mask));
1.1 root 328:
1.1.1.2 root 329: long ARGS_ON_STACK p_sigpending P_((void));
1.1 root 330:
1.1.1.2 root 331: long ARGS_ON_STACK p_sigpause P_((ulong mask));
1.1 root 332:
333:
334:
335: /* filesys.c */
336:
337: void init_drive P_((int drv));
338:
339: void init_filesys P_((void));
340:
341: void load_filesys P_((void));
342:
343: void close_filesys P_((void));
344:
1.1.1.2 root 345: void ARGS_ON_STACK changedrv P_((unsigned drv));
1.1 root 346:
347: int disk_changed P_((int drv));
348:
349: long relpath2cookie
350:
351: P_((fcookie *dir, const char *path, char *lastnm, fcookie *res, int depth));
352:
353: long path2cookie P_((const char *path, char *lastname, fcookie *res));
354:
1.1.1.3 ! root 355: void release_cookie P_((fcookie *fc));
! 356:
! 357: void dup_cookie P_((fcookie *new, fcookie *old));
! 358:
1.1 root 359: FILEPTR *new_fileptr P_((void));
360:
361: void dispose_fileptr P_((FILEPTR *f));
362:
1.1.1.2 root 363: int ARGS_ON_STACK denyshare P_((FILEPTR *list, FILEPTR *newfileptr));
1.1 root 364:
365: int denyaccess P_((XATTR *, unsigned));
366:
1.1.1.2 root 367: LOCK * ARGS_ON_STACK denylock P_((LOCK *list, LOCK *newlock));
1.1 root 368:
369: long dir_access P_((fcookie *, unsigned));
370:
371: int has_wild P_((const char *name));
372:
373: void copy8_3 P_((char *dest, const char *src));
374:
375: int pat_match P_((const char *name, const char *template));
376:
377: int samefile P_((fcookie *, fcookie *));
378:
379:
380:
381: /* main.c */
382:
383: void restr_intr P_((void));
384:
1.1.1.2 root 385: void ARGS_ON_STACK enter_kernel P_((void));
1.1 root 386:
1.1.1.2 root 387: void ARGS_ON_STACK leave_kernel P_((void));
1.1 root 388:
1.1.1.2 root 389: #ifdef __GNUC__
1.1 root 390:
391: int main P_((int argc, char **argv, char **envp));
392:
1.1.1.2 root 393: #else
394:
395: int main P_((int argc, char **argv));
396:
397: #endif
398:
1.1 root 399: void install_cookies P_((void));
400:
401: void load_config P_((void));
402:
403:
404:
405: /* mem.c */
406:
407: void init_mem P_((void));
408:
409: int add_region P_((MMAP map, ulong place, ulong size, unsigned mflags));
410:
411: void init_core P_((void));
412:
413: void init_swap P_((void));
414:
415: MEMREGION *new_region P_((void));
416:
417: void dispose_region P_((MEMREGION *m));
418:
1.1.1.3 ! root 419: long change_prot_status P_((PROC *proc, long start, int newmode));
! 420:
1.1 root 421: virtaddr attach_region P_((PROC *proc, MEMREGION *reg));
422:
423: void detach_region P_((PROC *proc, MEMREGION *reg));
424:
1.1.1.3 ! root 425: MEMREGION *get_region P_((MMAP map, ulong size, int mode));
1.1 root 426:
427: void free_region P_((MEMREGION *reg));
428:
429: long shrink_region P_((MEMREGION *reg, ulong newsize));
430:
431: long max_rsize P_((MMAP map));
432:
433: long tot_rsize P_((MMAP map, int flag));
434:
1.1.1.3 ! root 435: virtaddr alloc_region P_((MMAP map, ulong size, int mode));
1.1 root 436:
437: MEMREGION *create_env P_((const char *env));
438:
439: MEMREGION *create_base P_((const char *cmd, MEMREGION *env, ulong flags, ulong prgsize));
440:
1.1.1.2 root 441: MEMREGION *load_region P_((const char *name, MEMREGION *env, const char *cmdlin, XATTR *x,
442:
1.1.1.3 ! root 443: MEMREGION **text, long *fp));
1.1.1.2 root 444:
445: MEMREGION *get_text_seg P_((FILEPTR *f, FILEHEAD *fh, XATTR *xp));
446:
447: long load_and_reloc P_((FILEPTR *f, FILEHEAD *fh, char *where, long start,
448:
449: long nbytes, BASEPAGE *base));
1.1 root 450:
451: void rts P_((void));
452:
453: PROC *exec_region P_((PROC *p, MEMREGION *mem, int thread));
454:
455: long memused P_((PROC *p));
456:
457: void recalc_maxmem P_((PROC *p));
458:
459: int valid_address P_((long addr));
460:
1.1.1.3 ! root 461: MEMREGION *addr2region P_((long addr));
! 462:
! 463: void DUMP_ALL_MEM P_((void));
! 464:
1.1 root 465: void DUMPMEM P_((MMAP map));
466:
467: void sanity_check P_((MMAP map));
468:
469:
470:
471: /* proc.c */
472:
473: PROC *new_proc P_((void));
474:
475: void dispose_proc P_((PROC *p));
476:
477: PROC *fork_proc P_((void));
478:
479: void init_proc P_((void));
480:
481: void reset_priorities P_((void));
482:
483: void run_next P_((PROC *p, int slices));
484:
485: void fresh_slices P_((int slices));
486:
487: void add_q P_((int que, PROC *proc));
488:
489: void rm_q P_((int que, PROC *proc));
490:
1.1.1.2 root 491: void ARGS_ON_STACK preempt P_((void));
1.1 root 492:
1.1.1.2 root 493: void ARGS_ON_STACK sleep P_((int que, long cond));
1.1 root 494:
1.1.1.2 root 495: void ARGS_ON_STACK wake P_((int que, long cond));
1.1 root 496:
1.1.1.2 root 497: void ARGS_ON_STACK wakeselect P_((long param));
1.1 root 498:
499: void DUMPPROC P_((void));
500:
501:
502:
503: /* signal.c */
504:
505: long killgroup P_((int pgrp, int sig));
506:
507: void post_sig P_((PROC *p, int sig));
508:
509: void check_sigs P_((void));
510:
511: void raise P_((int sig));
512:
513: void bombs P_((int sig));
514:
515: void handle_sig P_((int sig));
516:
1.1.1.2 root 517: long ARGS_ON_STACK p_sigreturn P_((void));
1.1 root 518:
519: void stop P_((int sig));
520:
521: void exception P_((int sig));
522:
523: void sigbus P_((void));
524:
525: void sigaddr P_((void));
526:
527: void sigill P_((void));
528:
529: void sigpriv P_((void));
530:
531: void sigfpe P_((void));
532:
533: void sigtrap P_((void));
534:
1.1.1.2 root 535: void haltformat P_((void));
536:
537: void haltcpv P_((void));
538:
1.1 root 539:
540:
541: /* timeout.c */
542:
543: TIMEOUT *addtimeout P_((long delta, void (*func)(PROC *p)));
544:
545: void cancelalltimeouts P_((void));
546:
547: void canceltimeout P_((TIMEOUT *which));
548:
1.1.1.2 root 549: void ARGS_ON_STACK timeout P_((void));
1.1 root 550:
551: void checkalarms P_((void));
552:
1.1.1.2 root 553: void ARGS_ON_STACK nap P_((unsigned n));
1.1 root 554:
555:
556:
557: /* tty.c */
558:
559: long tty_read P_((FILEPTR *f, void *buf, long nbytes));
560:
561: long tty_write P_((FILEPTR *f, const void *buf, long nbytes));
562:
563: long tty_ioctl P_((FILEPTR *f, int mode, void *arg));
564:
565: long tty_getchar P_((FILEPTR *f, int mode));
566:
567: long tty_putchar P_((FILEPTR *f, long data, int mode));
568:
569:
570:
571: /* util.c */
572:
573: MEMREGION *addr2mem P_((virtaddr a));
574:
575: PROC *pid2proc P_((int pid));
576:
577: int newpid P_((void));
578:
579: void zero P_((char *place, long size));
580:
1.1.1.2 root 581: void * ARGS_ON_STACK kmalloc P_((long size));
1.1 root 582:
583: void *kcore P_((long size));
584:
1.1.1.2 root 585: void ARGS_ON_STACK kfree P_((void *place));
1.1 root 586:
1.1.1.2 root 587: void * ARGS_ON_STACK umalloc P_((long size));
1.1 root 588:
1.1.1.2 root 589: void ARGS_ON_STACK ufree P_((void *block));
1.1 root 590:
1.1.1.2 root 591: void ARGS_ON_STACK ms_time P_((ulong ms, short *timeptr));
1.1 root 592:
1.1.1.2 root 593: long ARGS_ON_STACK unixtim P_((unsigned time, unsigned date));
1.1 root 594:
1.1.1.2 root 595: long ARGS_ON_STACK dostim P_((long t));
1.1 root 596:
1.1.1.2 root 597: int ARGS_ON_STACK strnicmp P_((const char *str1, const char *str2, int len));
1.1 root 598:
1.1.1.2 root 599: int ARGS_ON_STACK stricmp P_((const char *str1, const char *str2));
1.1 root 600:
1.1.1.2 root 601: char * ARGS_ON_STACK strlwr P_((char *s));
1.1 root 602:
1.1.1.2 root 603: char * ARGS_ON_STACK strupr P_((char *s));
1.1 root 604:
605:
606:
607: #ifdef OWN_LIB
608:
609: int strncmp P_((const char *str1, const char *str2, int len));
610:
611: int strcmp P_((const char *str1, const char *str2));
612:
613: char *strcat P_((char *, const char *));
614:
615: char *strcpy P_((char *, const char *));
616:
617: char *strncpy P_((char *, const char *, int));
618:
619: int strlen P_((const char *));
620:
621: char *strrchr P_((const char *, int));
622:
623: int toupper P_((int));
624:
625: int tolower P_((int));
626:
1.1.1.2 root 627: long atol P_((const char *));
1.1 root 628:
629: #endif /* OWN_LIB */
630:
631:
632:
633: /* biosfs.c */
634:
635: void biosfs_init P_((void));
636:
1.1.1.2 root 637: void ARGS_ON_STACK mouse_handler P_((const char *buf));
1.1 root 638:
1.1.1.2 root 639: long ARGS_ON_STACK nocreat P_((fcookie *dir, const char *name, unsigned mode, int attrib,
1.1 root 640:
641: fcookie *fc));
642:
1.1.1.2 root 643: long ARGS_ON_STACK nomkdir P_((fcookie *dir, const char *name, unsigned mode));
1.1 root 644:
1.1.1.2 root 645: long ARGS_ON_STACK nowritelabel P_((fcookie *dir, const char *name));
1.1 root 646:
1.1.1.2 root 647: long ARGS_ON_STACK noreadlabel P_((fcookie *dir, char *name, int namelen));
1.1 root 648:
1.1.1.2 root 649: long ARGS_ON_STACK nosymlink P_((fcookie *dir, const char *name, const char *to));
1.1 root 650:
1.1.1.2 root 651: long ARGS_ON_STACK noreadlink P_((fcookie *dir, char *buf, int buflen));
1.1 root 652:
1.1.1.2 root 653: long ARGS_ON_STACK nohardlink P_((fcookie *, const char *, fcookie *, const char *));
1.1 root 654:
1.1.1.2 root 655: long ARGS_ON_STACK nofscntl P_((fcookie *dir, const char *name, int cmd, long arg));
1.1 root 656:
1.1.1.2 root 657: long ARGS_ON_STACK nodskchng P_((int drv));
1.1 root 658:
659: int set_auxhandle P_((PROC *, int));
660:
661:
662:
663: /* pipefs.c */
664:
665:
666:
667: /* procfs.c */
668:
669:
670:
671: /* tosfs.c */
672:
673:
674:
675: /* unifs.c */
676:
677: void unifs_init P_((void));
678:
679:
680:
681: /* debug.c */
682:
1.1.1.2 root 683: int ARGS_ON_STACK ksprintf P_((char *, const char *, ...));
1.1 root 684:
685: void debug_ws P_((const char *s));
686:
1.1.1.3 ! root 687: int _ALERT P_((char *));
! 688:
! 689: void ARGS_ON_STACK Tracelow P_((const char *s, ...));
! 690:
1.1.1.2 root 691: void ARGS_ON_STACK Trace P_((const char *s, ...));
1.1 root 692:
1.1.1.2 root 693: void ARGS_ON_STACK Debug P_((const char *s, ...));
1.1 root 694:
1.1.1.2 root 695: void ARGS_ON_STACK ALERT P_((const char *s, ...));
1.1 root 696:
1.1.1.3 ! root 697: void ARGS_ON_STACK FORCE P_((const char *s, ...));
! 698:
! 699: void PAUSE P_((void));
! 700:
1.1.1.2 root 701: EXITING void ARGS_ON_STACK FATAL P_((const char *s, ...));
1.1 root 702:
703: EXITING void HALT P_((void));
704:
1.1.1.3 ! root 705: void DUMPLOG P_((void));
! 706:
1.1 root 707: void do_func_key P_((int));
708:
709:
710:
711: /* rendez.c */
712:
1.1.1.2 root 713: long ARGS_ON_STACK p_msg P_((int mode, long ARGS_ON_STACK mbid, char *ptr));
1.1 root 714:
1.1.1.2 root 715: long ARGS_ON_STACK p_semaphore P_((int mode, long ARGS_ON_STACK id, long timeout));
1.1 root 716:
717: void free_semaphores P_((int pid));
718:
1.1.1.3 ! root 719:
! 720:
! 721: /* memprot.c */
! 722:
! 723: void init_tables P_((void));
! 724:
! 725: int get_prot_mode P_((MEMREGION *));
! 726:
! 727: void mark_region P_((MEMREGION *region, int mode));
! 728:
! 729: int prot_temp P_((ulong loc, ulong len, int mode));
! 730:
! 731: void init_page_table P_((PROC *proc));
! 732:
! 733: void mem_prot_special P_((PROC *proc));
! 734:
! 735: void QUICKDUMP P_((void));
! 736:
! 737: void report_buserr P_((void));
! 738:
! 739: void BIG_MEM_DUMP P_((int bigone, PROC *proc));
! 740:
! 741: int mem_access_for P_((PROC *p, ulong where, long len));
! 742:
! 743:
! 744:
! 745: /* nalloc2.c */
! 746:
! 747: void nalloc_arena_add P_((void *start, long len));
! 748:
! 749: void *nalloc P_((long size));
! 750:
! 751: void nfree P_((void *start));
! 752:
! 753: void NALLOC_DUMP P_((void));
! 754:
! 755:
! 756:
! 757: /* realloc.c */
! 758:
! 759: long realloc_region P_((MEMREGION *, long));
! 760:
! 761: long ARGS_ON_STACK s_realloc P_((long));
! 762:
! 763:
! 764:
! 765: /* welcome.c */
! 766:
! 767: int boot_kernel_p P_((void));
! 768:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.