[9] | 1 | /* Function prototypes. */
|
---|
| 2 |
|
---|
| 3 | struct mproc;
|
---|
| 4 | struct stat;
|
---|
| 5 | struct mem_map;
|
---|
| 6 | struct memory;
|
---|
| 7 |
|
---|
| 8 | #include <timers.h>
|
---|
| 9 |
|
---|
| 10 | /* alloc.c */
|
---|
| 11 | _PROTOTYPE( phys_clicks alloc_mem, (phys_clicks clicks) );
|
---|
| 12 | _PROTOTYPE( void free_mem, (phys_clicks base, phys_clicks clicks) );
|
---|
| 13 | _PROTOTYPE( void mem_init, (struct memory *chunks, phys_clicks *free) );
|
---|
| 14 | #if ENABLE_SWAP
|
---|
| 15 | _PROTOTYPE( int swap_on, (char *file, u32_t offset, u32_t size) );
|
---|
| 16 | _PROTOTYPE( int swap_off, (void) );
|
---|
| 17 | _PROTOTYPE( void swap_in, (void) );
|
---|
| 18 | _PROTOTYPE( void swap_inqueue, (struct mproc *rmp) );
|
---|
| 19 | #else /* !SWAP */
|
---|
| 20 | #define swap_in() ((void)0)
|
---|
| 21 | #define swap_inqueue(rmp) ((void)0)
|
---|
| 22 | #endif /* !SWAP */
|
---|
| 23 | _PROTOTYPE(int mem_holes_copy, (struct hole *, size_t *, u32_t *) );
|
---|
| 24 |
|
---|
| 25 | /* break.c */
|
---|
| 26 | _PROTOTYPE( int adjust, (struct mproc *rmp,
|
---|
| 27 | vir_clicks data_clicks, vir_bytes sp) );
|
---|
| 28 | _PROTOTYPE( int do_brk, (void) );
|
---|
| 29 | _PROTOTYPE( int size_ok, (int file_type, vir_clicks tc, vir_clicks dc,
|
---|
| 30 | vir_clicks sc, vir_clicks dvir, vir_clicks s_vir) );
|
---|
| 31 |
|
---|
| 32 | /* devio.c */
|
---|
| 33 | _PROTOTYPE( int do_dev_io, (void) );
|
---|
| 34 | _PROTOTYPE( int do_dev_io, (void) );
|
---|
| 35 |
|
---|
| 36 | /* dmp.c */
|
---|
| 37 | _PROTOTYPE( int do_fkey_pressed, (void) );
|
---|
| 38 |
|
---|
| 39 | /* exec.c */
|
---|
| 40 | _PROTOTYPE( int do_exec, (void) );
|
---|
| 41 | _PROTOTYPE( void rw_seg, (int rw, int fd, int proc, int seg,
|
---|
| 42 | phys_bytes seg_bytes) );
|
---|
| 43 | _PROTOTYPE( struct mproc *find_share, (struct mproc *mp_ign, Ino_t ino,
|
---|
| 44 | Dev_t dev, time_t ctime) );
|
---|
| 45 |
|
---|
| 46 | /* forkexit.c */
|
---|
| 47 | _PROTOTYPE( int do_fork, (void) );
|
---|
| 48 | _PROTOTYPE( int do_pm_exit, (void) );
|
---|
| 49 | _PROTOTYPE( int do_waitpid, (void) );
|
---|
| 50 | _PROTOTYPE( void pm_exit, (struct mproc *rmp, int exit_status) );
|
---|
| 51 |
|
---|
| 52 | /* getset.c */
|
---|
| 53 | _PROTOTYPE( int do_getset, (void) );
|
---|
| 54 |
|
---|
| 55 | /* main.c */
|
---|
| 56 | _PROTOTYPE( int main, (void) );
|
---|
| 57 |
|
---|
| 58 | /* misc.c */
|
---|
[11] | 59 | _PROTOTYPE( int do_foo, (void) );
|
---|
[9] | 60 | _PROTOTYPE( int do_reboot, (void) );
|
---|
| 61 | _PROTOTYPE( int do_procstat, (void) );
|
---|
| 62 | _PROTOTYPE( int do_getsysinfo, (void) );
|
---|
| 63 | _PROTOTYPE( int do_getprocnr, (void) );
|
---|
| 64 | _PROTOTYPE( int do_svrctl, (void) );
|
---|
| 65 | _PROTOTYPE( int do_allocmem, (void) );
|
---|
| 66 | _PROTOTYPE( int do_freemem, (void) );
|
---|
| 67 | _PROTOTYPE( int do_getsetpriority, (void) );
|
---|
| 68 | _PROTOTYPE( ssize_t _read_pm, (int _fd, void *_buf, size_t _n, int s, int e));
|
---|
| 69 | _PROTOTYPE( ssize_t _write_pm, (int _fd, void *_buf, size_t _n, int s, int e));
|
---|
| 70 |
|
---|
| 71 |
|
---|
| 72 | #if (MACHINE == MACINTOSH)
|
---|
| 73 | _PROTOTYPE( phys_clicks start_click, (void) );
|
---|
| 74 | #endif
|
---|
| 75 |
|
---|
| 76 | _PROTOTYPE( void setreply, (int proc_nr, int result) );
|
---|
| 77 |
|
---|
| 78 | /* signal.c */
|
---|
| 79 | _PROTOTYPE( int do_alarm, (void) );
|
---|
| 80 | _PROTOTYPE( int do_kill, (void) );
|
---|
| 81 | _PROTOTYPE( int ksig_pending, (void) );
|
---|
| 82 | _PROTOTYPE( int do_pause, (void) );
|
---|
| 83 | _PROTOTYPE( int set_alarm, (int proc_nr, int sec) );
|
---|
| 84 | _PROTOTYPE( int check_sig, (pid_t proc_id, int signo) );
|
---|
| 85 | _PROTOTYPE( void sig_proc, (struct mproc *rmp, int sig_nr) );
|
---|
| 86 | _PROTOTYPE( int do_sigaction, (void) );
|
---|
| 87 | _PROTOTYPE( int do_sigpending, (void) );
|
---|
| 88 | _PROTOTYPE( int do_sigprocmask, (void) );
|
---|
| 89 | _PROTOTYPE( int do_sigreturn, (void) );
|
---|
| 90 | _PROTOTYPE( int do_sigsuspend, (void) );
|
---|
| 91 | _PROTOTYPE( void check_pending, (struct mproc *rmp) );
|
---|
| 92 |
|
---|
| 93 | /* time.c */
|
---|
| 94 | _PROTOTYPE( int do_stime, (void) );
|
---|
| 95 | _PROTOTYPE( int do_time, (void) );
|
---|
| 96 | _PROTOTYPE( int do_times, (void) );
|
---|
| 97 | _PROTOTYPE( int do_gettimeofday, (void) );
|
---|
| 98 |
|
---|
| 99 | /* timers.c */
|
---|
| 100 | _PROTOTYPE( void pm_set_timer, (timer_t *tp, int delta,
|
---|
| 101 | tmr_func_t watchdog, int arg));
|
---|
| 102 | _PROTOTYPE( void pm_expire_timers, (clock_t now));
|
---|
| 103 | _PROTOTYPE( void pm_cancel_timer, (timer_t *tp));
|
---|
| 104 |
|
---|
| 105 | /* trace.c */
|
---|
| 106 | _PROTOTYPE( int do_trace, (void) );
|
---|
| 107 | _PROTOTYPE( void stop_proc, (struct mproc *rmp, int sig_nr) );
|
---|
| 108 |
|
---|
| 109 | /* utility.c */
|
---|
| 110 | _PROTOTYPE( pid_t get_free_pid, (void) );
|
---|
| 111 | _PROTOTYPE( int allowed, (char *name_buf, struct stat *s_buf, int mask) );
|
---|
| 112 | _PROTOTYPE( int no_sys, (void) );
|
---|
| 113 | _PROTOTYPE( void panic, (char *who, char *mess, int num) );
|
---|
| 114 | _PROTOTYPE( void tell_fs, (int what, int p1, int p2, int p3) );
|
---|
| 115 | _PROTOTYPE( int get_stack_ptr, (int proc_nr, vir_bytes *sp) );
|
---|
| 116 | _PROTOTYPE( int get_mem_map, (int proc_nr, struct mem_map *mem_map) );
|
---|
| 117 | _PROTOTYPE( char *find_param, (const char *key));
|
---|
| 118 | _PROTOTYPE( int proc_from_pid, (pid_t p));
|
---|
| 119 | _PROTOTYPE( int pm_isokendpt, (int ep, int *proc));
|
---|
| 120 |
|
---|