Annotation of MiNT/src/proto.h, revision 1.1.1.2

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

unix.superglobalmegacorp.com

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