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

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

Aggiunta syscall foo (semplice)

File size: 4.0 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#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_foo, (void) );
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
Note: See TracBrowser for help on using the repository browser.