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 */
|
---|
59 | _PROTOTYPE( int do_reboot, (void) );
|
---|
60 | _PROTOTYPE( int do_procstat, (void) );
|
---|
61 | _PROTOTYPE( int do_getsysinfo, (void) );
|
---|
62 | _PROTOTYPE( int do_getprocnr, (void) );
|
---|
63 | _PROTOTYPE( int do_svrctl, (void) );
|
---|
64 | _PROTOTYPE( int do_allocmem, (void) );
|
---|
65 | _PROTOTYPE( int do_freemem, (void) );
|
---|
66 | _PROTOTYPE( int do_getsetpriority, (void) );
|
---|
67 | _PROTOTYPE( ssize_t _read_pm, (int _fd, void *_buf, size_t _n, int s, int e));
|
---|
68 | _PROTOTYPE( ssize_t _write_pm, (int _fd, void *_buf, size_t _n, int s, int e));
|
---|
69 |
|
---|
70 |
|
---|
71 | #if (MACHINE == MACINTOSH)
|
---|
72 | _PROTOTYPE( phys_clicks start_click, (void) );
|
---|
73 | #endif
|
---|
74 |
|
---|
75 | _PROTOTYPE( void setreply, (int proc_nr, int result) );
|
---|
76 |
|
---|
77 | /* signal.c */
|
---|
78 | _PROTOTYPE( int do_alarm, (void) );
|
---|
79 | _PROTOTYPE( int do_kill, (void) );
|
---|
80 | _PROTOTYPE( int ksig_pending, (void) );
|
---|
81 | _PROTOTYPE( int do_pause, (void) );
|
---|
82 | _PROTOTYPE( int set_alarm, (int proc_nr, int sec) );
|
---|
83 | _PROTOTYPE( int check_sig, (pid_t proc_id, int signo) );
|
---|
84 | _PROTOTYPE( void sig_proc, (struct mproc *rmp, int sig_nr) );
|
---|
85 | _PROTOTYPE( int do_sigaction, (void) );
|
---|
86 | _PROTOTYPE( int do_sigpending, (void) );
|
---|
87 | _PROTOTYPE( int do_sigprocmask, (void) );
|
---|
88 | _PROTOTYPE( int do_sigreturn, (void) );
|
---|
89 | _PROTOTYPE( int do_sigsuspend, (void) );
|
---|
90 | _PROTOTYPE( void check_pending, (struct mproc *rmp) );
|
---|
91 |
|
---|
92 | /* time.c */
|
---|
93 | _PROTOTYPE( int do_stime, (void) );
|
---|
94 | _PROTOTYPE( int do_time, (void) );
|
---|
95 | _PROTOTYPE( int do_times, (void) );
|
---|
96 | _PROTOTYPE( int do_gettimeofday, (void) );
|
---|
97 |
|
---|
98 | /* timers.c */
|
---|
99 | _PROTOTYPE( void pm_set_timer, (timer_t *tp, int delta,
|
---|
100 | tmr_func_t watchdog, int arg));
|
---|
101 | _PROTOTYPE( void pm_expire_timers, (clock_t now));
|
---|
102 | _PROTOTYPE( void pm_cancel_timer, (timer_t *tp));
|
---|
103 |
|
---|
104 | /* trace.c */
|
---|
105 | _PROTOTYPE( int do_trace, (void) );
|
---|
106 | _PROTOTYPE( void stop_proc, (struct mproc *rmp, int sig_nr) );
|
---|
107 |
|
---|
108 | /* utility.c */
|
---|
109 | _PROTOTYPE( pid_t get_free_pid, (void) );
|
---|
110 | _PROTOTYPE( int allowed, (char *name_buf, struct stat *s_buf, int mask) );
|
---|
111 | _PROTOTYPE( int no_sys, (void) );
|
---|
112 | _PROTOTYPE( void panic, (char *who, char *mess, int num) );
|
---|
113 | _PROTOTYPE( void tell_fs, (int what, int p1, int p2, int p3) );
|
---|
114 | _PROTOTYPE( int get_stack_ptr, (int proc_nr, vir_bytes *sp) );
|
---|
115 | _PROTOTYPE( int get_mem_map, (int proc_nr, struct mem_map *mem_map) );
|
---|
116 | _PROTOTYPE( char *find_param, (const char *key));
|
---|
117 | _PROTOTYPE( int proc_from_pid, (pid_t p));
|
---|
118 | _PROTOTYPE( int pm_isokendpt, (int ep, int *proc));
|
---|
119 |
|
---|