source: trunk/minix/servers/pm/proto.h@ 10

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

Minix 3.1.2a

File size: 4.0 KB
RevLine 
[9]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#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
Note: See TracBrowser for help on using the repository browser.