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 | #define swap_in() ((void)0)
|
---|
15 | #define swap_inqueue(rmp) ((void)0)
|
---|
16 |
|
---|
17 | /* break.c */
|
---|
18 | _PROTOTYPE( int adjust, (struct mproc *rmp,
|
---|
19 | vir_clicks data_clicks, vir_bytes sp) );
|
---|
20 | _PROTOTYPE( int do_brk, (void) );
|
---|
21 | _PROTOTYPE( int size_ok, (int file_type, vir_clicks tc, vir_clicks dc,
|
---|
22 | vir_clicks sc, vir_clicks dvir, vir_clicks s_vir) );
|
---|
23 |
|
---|
24 | /* devio.c */
|
---|
25 | _PROTOTYPE( int do_dev_io, (void) );
|
---|
26 | _PROTOTYPE( int do_dev_io, (void) );
|
---|
27 |
|
---|
28 | /* dmp.c */
|
---|
29 | _PROTOTYPE( int do_fkey_pressed, (void) );
|
---|
30 |
|
---|
31 | /* exec.c */
|
---|
32 | _PROTOTYPE( int do_exec, (void) );
|
---|
33 | _PROTOTYPE( void rw_seg, (int rw, int fd, int proc, int seg,
|
---|
34 | phys_bytes seg_bytes) );
|
---|
35 | _PROTOTYPE( struct mproc *find_share, (struct mproc *mp_ign, Ino_t ino,
|
---|
36 | Dev_t dev, time_t ctime) );
|
---|
37 |
|
---|
38 | /* forkexit.c */
|
---|
39 | _PROTOTYPE( int do_fork, (void) );
|
---|
40 | _PROTOTYPE( int do_pm_exit, (void) );
|
---|
41 | _PROTOTYPE( int do_waitpid, (void) );
|
---|
42 | _PROTOTYPE( void pm_exit, (struct mproc *rmp, int exit_status) );
|
---|
43 |
|
---|
44 | /* getset.c */
|
---|
45 | _PROTOTYPE( int do_getset, (void) );
|
---|
46 |
|
---|
47 | /* main.c */
|
---|
48 | _PROTOTYPE( int main, (void) );
|
---|
49 |
|
---|
50 | /* misc.c */
|
---|
51 | _PROTOTYPE( int do_reboot, (void) );
|
---|
52 | _PROTOTYPE( int do_getsysinfo, (void) );
|
---|
53 | _PROTOTYPE( int do_getprocnr, (void) );
|
---|
54 | _PROTOTYPE( int do_svrctl, (void) );
|
---|
55 | _PROTOTYPE( int do_allocmem, (void) );
|
---|
56 | _PROTOTYPE( int do_freemem, (void) );
|
---|
57 | _PROTOTYPE( int do_getsetpriority, (void) );
|
---|
58 |
|
---|
59 | _PROTOTYPE( void setreply, (int proc_nr, int result) );
|
---|
60 |
|
---|
61 | /* signal.c */
|
---|
62 | _PROTOTYPE( int do_alarm, (void) );
|
---|
63 | _PROTOTYPE( int do_kill, (void) );
|
---|
64 | _PROTOTYPE( int ksig_pending, (void) );
|
---|
65 | _PROTOTYPE( int do_pause, (void) );
|
---|
66 | _PROTOTYPE( int set_alarm, (int proc_nr, int sec) );
|
---|
67 | _PROTOTYPE( int check_sig, (pid_t proc_id, int signo) );
|
---|
68 | _PROTOTYPE( void sig_proc, (struct mproc *rmp, int sig_nr) );
|
---|
69 | _PROTOTYPE( int do_sigaction, (void) );
|
---|
70 | _PROTOTYPE( int do_sigpending, (void) );
|
---|
71 | _PROTOTYPE( int do_sigprocmask, (void) );
|
---|
72 | _PROTOTYPE( int do_sigreturn, (void) );
|
---|
73 | _PROTOTYPE( int do_sigsuspend, (void) );
|
---|
74 | _PROTOTYPE( void check_pending, (struct mproc *rmp) );
|
---|
75 |
|
---|
76 | /* time.c */
|
---|
77 | _PROTOTYPE( int do_stime, (void) );
|
---|
78 | _PROTOTYPE( int do_time, (void) );
|
---|
79 | _PROTOTYPE( int do_times, (void) );
|
---|
80 | _PROTOTYPE( int do_gettimeofday, (void) );
|
---|
81 |
|
---|
82 | /* timers.c */
|
---|
83 | _PROTOTYPE( void pm_set_timer, (timer_t *tp, int delta,
|
---|
84 | tmr_func_t watchdog, int arg));
|
---|
85 | _PROTOTYPE( void pm_expire_timers, (clock_t now));
|
---|
86 | _PROTOTYPE( void pm_cancel_timer, (timer_t *tp));
|
---|
87 |
|
---|
88 | /* trace.c */
|
---|
89 | _PROTOTYPE( int do_trace, (void) );
|
---|
90 | _PROTOTYPE( void stop_proc, (struct mproc *rmp, int sig_nr) );
|
---|
91 |
|
---|
92 | /* utility.c */
|
---|
93 | _PROTOTYPE( pid_t get_free_pid, (void) );
|
---|
94 | _PROTOTYPE( int allowed, (char *name_buf, struct stat *s_buf, int mask) );
|
---|
95 | _PROTOTYPE( int no_sys, (void) );
|
---|
96 | _PROTOTYPE( void panic, (char *who, char *mess, int num) );
|
---|
97 | _PROTOTYPE( void tell_fs, (int what, int p1, int p2, int p3) );
|
---|
98 | _PROTOTYPE( int get_stack_ptr, (int proc_nr, vir_bytes *sp) );
|
---|
99 | _PROTOTYPE( int get_mem_map, (int proc_nr, struct mem_map *mem_map) );
|
---|
100 | _PROTOTYPE( char *find_param, (const char *key));
|
---|
101 | _PROTOTYPE( int proc_from_pid, (pid_t p));
|
---|