Fixed extern declaration from pointer to array
[minix.git] / servers / pm / proto.h
blob34cca0ae5a7a189ac0857185f159ce68b7045742
1 /* Function prototypes. */
3 struct mproc;
4 struct stat;
5 struct mem_map;
6 struct memory;
8 #include <timers.h>
10 /* alarm.c */
11 _PROTOTYPE( int do_alarm, (void) );
12 _PROTOTYPE( int do_itimer, (void) );
13 _PROTOTYPE( void set_alarm, (struct mproc *rmp, clock_t ticks) );
14 _PROTOTYPE( void check_vtimer, (int proc_nr, int sig) );
16 /* break.c */
17 _PROTOTYPE( int do_brk, (void) );
19 /* dma.c */
20 _PROTOTYPE( int do_adddma, (void) );
21 _PROTOTYPE( int do_deldma, (void) );
22 _PROTOTYPE( int do_getdma, (void) );
24 /* exec.c */
25 _PROTOTYPE( int do_exec, (void) );
26 _PROTOTYPE( int do_exec_newmem, (void) );
27 _PROTOTYPE( int do_execrestart, (void) );
28 _PROTOTYPE( void exec_restart, (struct mproc *rmp, int result) );
30 /* forkexit.c */
31 _PROTOTYPE( int do_fork, (void) );
32 _PROTOTYPE( int do_fork_nb, (void) );
33 _PROTOTYPE( int do_exit, (void) );
34 _PROTOTYPE( void exit_proc, (struct mproc *rmp, int exit_status,
35 int dump_core) );
36 _PROTOTYPE( void exit_restart, (struct mproc *rmp, int dump_core) );
37 _PROTOTYPE( int do_waitpid, (void) );
38 _PROTOTYPE( int wait_test, (struct mproc *rmp, struct mproc *child) );
40 /* getset.c */
41 _PROTOTYPE( int do_get, (void) );
42 _PROTOTYPE( int do_set, (void) );
44 /* main.c */
45 _PROTOTYPE( int main, (void) );
46 _PROTOTYPE( void setreply, (int proc_nr, int result) );
48 /* misc.c */
49 _PROTOTYPE( int do_reboot, (void) );
50 _PROTOTYPE( int do_procstat, (void) );
51 _PROTOTYPE( int do_sysuname, (void) );
52 _PROTOTYPE( int do_getsysinfo, (void) );
53 _PROTOTYPE( int do_getsysinfo_up, (void) );
54 _PROTOTYPE( int do_getprocnr, (void) );
55 _PROTOTYPE( int do_getepinfo, (void) );
56 _PROTOTYPE( int do_svrctl, (void) );
57 _PROTOTYPE( int do_getsetpriority, (void) );
59 /* profile.c */
60 _PROTOTYPE( int do_sprofile, (void) );
61 _PROTOTYPE( int do_cprofile, (void) );
63 /* signal.c */
64 _PROTOTYPE( int do_kill, (void) );
65 _PROTOTYPE( int ksig_pending, (void) );
66 _PROTOTYPE( int do_pause, (void) );
67 _PROTOTYPE( int check_sig, (pid_t proc_id, int signo) );
68 _PROTOTYPE( void sig_proc, (struct mproc *rmp, int signo, int trace) );
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 _PROTOTYPE( void restart_sigs, (struct mproc *rmp) );
76 _PROTOTYPE( void vm_notify_sig_wrapper, (endpoint_t ep) );
78 /* time.c */
79 _PROTOTYPE( int do_stime, (void) );
80 _PROTOTYPE( int do_time, (void) );
81 _PROTOTYPE( int do_times, (void) );
83 /* timers.c */
84 _PROTOTYPE( void pm_set_timer, (timer_t *tp, int delta,
85 tmr_func_t watchdog, int arg) );
86 _PROTOTYPE( void pm_expire_timers, (clock_t now) );
87 _PROTOTYPE( void pm_cancel_timer, (timer_t *tp) );
89 /* trace.c */
90 _PROTOTYPE( int do_trace, (void) );
91 _PROTOTYPE( void stop_proc, (struct mproc *rmp, int sig_nr) );
93 /* utility.c */
94 _PROTOTYPE( pid_t get_free_pid, (void) );
95 _PROTOTYPE( int no_sys, (void) );
96 _PROTOTYPE( char *find_param, (const char *key) );
97 _PROTOTYPE( struct mproc *find_proc, (pid_t lpid) );
98 _PROTOTYPE( int pm_isokendpt, (int ep, int *proc) );
99 _PROTOTYPE( void tell_fs, (struct mproc *rmp, message *m_ptr) );