source: branches/minix3-book/servers/pm/proto.h@ 4

Last change on this file since 4 was 4, checked in by Mattia Monga, 14 years ago

Importazione sorgenti libro

File size: 3.4 KB
Line 
1/* Function prototypes. */
2
3struct mproc;
4struct stat;
5struct mem_map;
6struct 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));
Note: See TracBrowser for help on using the repository browser.