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

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

unix.superglobalmegacorp.com

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