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

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

unix.superglobalmegacorp.com

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