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

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

unix.superglobalmegacorp.com

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