retire _PROTOTYPE
. only good for obsolete K&R support . also remove a stray ansi.h and the proto cmd
This commit is contained in:
@@ -19,17 +19,14 @@
|
||||
|
||||
#define US 1000000 /* shortcut for microseconds per second */
|
||||
|
||||
FORWARD _PROTOTYPE( clock_t ticks_from_timeval, (struct timeval *tv) );
|
||||
FORWARD _PROTOTYPE( void timeval_from_ticks, (struct timeval *tv,
|
||||
clock_t ticks) );
|
||||
FORWARD _PROTOTYPE( int is_sane_timeval, (struct timeval *tv) );
|
||||
FORWARD _PROTOTYPE( void getset_vtimer, (struct mproc *mp, int nwhich,
|
||||
struct itimerval *value, struct itimerval *ovalue) );
|
||||
FORWARD _PROTOTYPE( void get_realtimer, (struct mproc *mp,
|
||||
struct itimerval *value) );
|
||||
FORWARD _PROTOTYPE( void set_realtimer, (struct mproc *mp,
|
||||
struct itimerval *value) );
|
||||
FORWARD _PROTOTYPE( void cause_sigalrm, (struct timer *tp) );
|
||||
FORWARD clock_t ticks_from_timeval(struct timeval *tv);
|
||||
FORWARD void timeval_from_ticks(struct timeval *tv, clock_t ticks);
|
||||
FORWARD int is_sane_timeval(struct timeval *tv);
|
||||
FORWARD void getset_vtimer(struct mproc *mp, int nwhich, struct
|
||||
itimerval *value, struct itimerval *ovalue);
|
||||
FORWARD void get_realtimer(struct mproc *mp, struct itimerval *value);
|
||||
FORWARD void set_realtimer(struct mproc *mp, struct itimerval *value);
|
||||
FORWARD void cause_sigalrm(struct timer *tp);
|
||||
|
||||
/*===========================================================================*
|
||||
* ticks_from_timeval *
|
||||
|
||||
@@ -31,13 +31,12 @@
|
||||
|
||||
#define LAST_FEW 2 /* last few slots reserved for superuser */
|
||||
|
||||
FORWARD _PROTOTYPE (void zombify, (struct mproc *rmp) );
|
||||
FORWARD _PROTOTYPE (void check_parent, (struct mproc *child,
|
||||
int try_cleanup) );
|
||||
FORWARD _PROTOTYPE (void tell_parent, (struct mproc *child) );
|
||||
FORWARD _PROTOTYPE (void tell_tracer, (struct mproc *child) );
|
||||
FORWARD _PROTOTYPE (void tracer_died, (struct mproc *child) );
|
||||
FORWARD _PROTOTYPE (void cleanup, (register struct mproc *rmp) );
|
||||
FORWARD void zombify(struct mproc *rmp);
|
||||
FORWARD void check_parent(struct mproc *child, int try_cleanup);
|
||||
FORWARD void tell_parent(struct mproc *child);
|
||||
FORWARD void tell_tracer(struct mproc *child);
|
||||
FORWARD void tracer_died(struct mproc *child);
|
||||
FORWARD void cleanup(register struct mproc *rmp);
|
||||
|
||||
/*===========================================================================*
|
||||
* do_fork *
|
||||
|
||||
@@ -18,7 +18,7 @@ EXTERN message m_in; /* the incoming message itself is kept here. */
|
||||
EXTERN int who_p, who_e; /* caller's proc number, endpoint */
|
||||
EXTERN int call_nr; /* system call number */
|
||||
|
||||
extern _PROTOTYPE (int (*call_vec[]), (void) ); /* system call handlers */
|
||||
extern int(*call_vec[]) (void);
|
||||
EXTERN sigset_t core_sset; /* which signals cause core images */
|
||||
EXTERN sigset_t ign_sset; /* which signals are by default ignored */
|
||||
EXTERN sigset_t noign_sset; /* which signals cannot be ignored */
|
||||
|
||||
@@ -39,17 +39,17 @@
|
||||
EXTERN unsigned long calls_stats[NCALLS];
|
||||
#endif
|
||||
|
||||
FORWARD _PROTOTYPE( void sendreply, (void) );
|
||||
FORWARD _PROTOTYPE( int get_nice_value, (int queue) );
|
||||
FORWARD _PROTOTYPE( void handle_vfs_reply, (void) );
|
||||
FORWARD void sendreply(void);
|
||||
FORWARD int get_nice_value(int queue);
|
||||
FORWARD void handle_vfs_reply(void);
|
||||
|
||||
#define click_to_round_k(n) \
|
||||
((unsigned) ((((unsigned long) (n) << CLICK_SHIFT) + 512) / 1024))
|
||||
|
||||
/* SEF functions and variables. */
|
||||
FORWARD _PROTOTYPE( void sef_local_startup, (void) );
|
||||
FORWARD _PROTOTYPE( int sef_cb_init_fresh, (int type, sef_init_info_t *info) );
|
||||
FORWARD _PROTOTYPE( int sef_cb_signal_manager, (endpoint_t target, int signo) );
|
||||
FORWARD void sef_local_startup(void);
|
||||
FORWARD int sef_cb_init_fresh(int type, sef_init_info_t *info);
|
||||
FORWARD int sef_cb_signal_manager(endpoint_t target, int signo);
|
||||
|
||||
/*===========================================================================*
|
||||
* main *
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include "param.h"
|
||||
|
||||
#if SPROFILE || CPROFILE
|
||||
FORWARD _PROTOTYPE( int check_addrs, (int info_size) );
|
||||
FORWARD int check_addrs(int info_size);
|
||||
#endif
|
||||
|
||||
/*===========================================================================*
|
||||
|
||||
@@ -8,101 +8,98 @@ struct memory;
|
||||
#include <timers.h>
|
||||
|
||||
/* alarm.c */
|
||||
_PROTOTYPE( int do_alarm, (void) );
|
||||
_PROTOTYPE( int do_itimer, (void) );
|
||||
_PROTOTYPE( void set_alarm, (struct mproc *rmp, clock_t ticks) );
|
||||
_PROTOTYPE( void check_vtimer, (int proc_nr, int sig) );
|
||||
int do_alarm(void);
|
||||
int do_itimer(void);
|
||||
void set_alarm(struct mproc *rmp, clock_t ticks);
|
||||
void check_vtimer(int proc_nr, int sig);
|
||||
|
||||
/* break.c */
|
||||
_PROTOTYPE( int do_brk, (void) );
|
||||
int do_brk(void);
|
||||
|
||||
/* exec.c */
|
||||
_PROTOTYPE( int do_exec, (void) );
|
||||
_PROTOTYPE( int do_exec_newmem, (void) );
|
||||
_PROTOTYPE( int do_execrestart, (void) );
|
||||
_PROTOTYPE( void exec_restart, (struct mproc *rmp, int result,
|
||||
vir_bytes pc) );
|
||||
int do_exec(void);
|
||||
int do_exec_newmem(void);
|
||||
int do_execrestart(void);
|
||||
void exec_restart(struct mproc *rmp, int result, vir_bytes pc);
|
||||
|
||||
/* forkexit.c */
|
||||
_PROTOTYPE( int do_fork, (void) );
|
||||
_PROTOTYPE( int do_srv_fork, (void) );
|
||||
_PROTOTYPE( int do_exit, (void) );
|
||||
_PROTOTYPE( void exit_proc, (struct mproc *rmp, int exit_status,
|
||||
int dump_core) );
|
||||
_PROTOTYPE( void exit_restart, (struct mproc *rmp, int dump_core) );
|
||||
_PROTOTYPE( int do_waitpid, (void) );
|
||||
_PROTOTYPE( int wait_test, (struct mproc *rmp, struct mproc *child) );
|
||||
int do_fork(void);
|
||||
int do_srv_fork(void);
|
||||
int do_exit(void);
|
||||
void exit_proc(struct mproc *rmp, int exit_status, int dump_core);
|
||||
void exit_restart(struct mproc *rmp, int dump_core);
|
||||
int do_waitpid(void);
|
||||
int wait_test(struct mproc *rmp, struct mproc *child);
|
||||
|
||||
/* getset.c */
|
||||
_PROTOTYPE( int do_get, (void) );
|
||||
_PROTOTYPE( int do_set, (void) );
|
||||
int do_get(void);
|
||||
int do_set(void);
|
||||
|
||||
/* main.c */
|
||||
_PROTOTYPE( int main, (void) );
|
||||
_PROTOTYPE( void setreply, (int proc_nr, int result) );
|
||||
int main(void);
|
||||
void setreply(int proc_nr, int result);
|
||||
|
||||
/* mcontext.c */
|
||||
_PROTOTYPE( int do_getmcontext, (void) );
|
||||
_PROTOTYPE( int do_setmcontext, (void) );
|
||||
int do_getmcontext(void);
|
||||
int do_setmcontext(void);
|
||||
#if ! USE_MCONTEXT
|
||||
#define do_getmcontext no_sys
|
||||
#define do_setmcontext no_sys
|
||||
#endif
|
||||
|
||||
/* misc.c */
|
||||
_PROTOTYPE( int do_reboot, (void) );
|
||||
_PROTOTYPE( int do_sysuname, (void) );
|
||||
_PROTOTYPE( int do_getsysinfo, (void) );
|
||||
_PROTOTYPE( int do_getprocnr, (void) );
|
||||
_PROTOTYPE( int do_getepinfo, (void) );
|
||||
_PROTOTYPE( int do_getepinfo_o, (void) );
|
||||
_PROTOTYPE( int do_svrctl, (void) );
|
||||
_PROTOTYPE( int do_getsetpriority, (void) );
|
||||
int do_reboot(void);
|
||||
int do_sysuname(void);
|
||||
int do_getsysinfo(void);
|
||||
int do_getprocnr(void);
|
||||
int do_getepinfo(void);
|
||||
int do_getepinfo_o(void);
|
||||
int do_svrctl(void);
|
||||
int do_getsetpriority(void);
|
||||
|
||||
/* schedule.c */
|
||||
_PROTOTYPE( void sched_init, (void) );
|
||||
_PROTOTYPE( int sched_start_user, (endpoint_t ep, struct mproc *rmp) );
|
||||
_PROTOTYPE( int sched_nice, (struct mproc *rmp, int nice) );
|
||||
void sched_init(void);
|
||||
int sched_start_user(endpoint_t ep, struct mproc *rmp);
|
||||
int sched_nice(struct mproc *rmp, int nice);
|
||||
|
||||
/* profile.c */
|
||||
_PROTOTYPE( int do_sprofile, (void) );
|
||||
_PROTOTYPE( int do_cprofile, (void) );
|
||||
int do_sprofile(void);
|
||||
int do_cprofile(void);
|
||||
|
||||
/* signal.c */
|
||||
_PROTOTYPE( int do_kill, (void) );
|
||||
_PROTOTYPE( int do_srv_kill, (void) );
|
||||
_PROTOTYPE( int process_ksig, (endpoint_t proc_nr_e, int signo) );
|
||||
_PROTOTYPE( int do_pause, (void) );
|
||||
_PROTOTYPE( int check_sig, (pid_t proc_id, int signo, int ksig) );
|
||||
_PROTOTYPE( void sig_proc, (struct mproc *rmp, int signo, int trace,
|
||||
int ksig) );
|
||||
_PROTOTYPE( int do_sigaction, (void) );
|
||||
_PROTOTYPE( int do_sigpending, (void) );
|
||||
_PROTOTYPE( int do_sigprocmask, (void) );
|
||||
_PROTOTYPE( int do_sigreturn, (void) );
|
||||
_PROTOTYPE( int do_sigsuspend, (void) );
|
||||
_PROTOTYPE( void check_pending, (struct mproc *rmp) );
|
||||
_PROTOTYPE( void restart_sigs, (struct mproc *rmp) );
|
||||
_PROTOTYPE( void vm_notify_sig_wrapper, (endpoint_t ep) );
|
||||
int do_kill(void);
|
||||
int do_srv_kill(void);
|
||||
int process_ksig(endpoint_t proc_nr_e, int signo);
|
||||
int do_pause(void);
|
||||
int check_sig(pid_t proc_id, int signo, int ksig);
|
||||
void sig_proc(struct mproc *rmp, int signo, int trace, int ksig);
|
||||
int do_sigaction(void);
|
||||
int do_sigpending(void);
|
||||
int do_sigprocmask(void);
|
||||
int do_sigreturn(void);
|
||||
int do_sigsuspend(void);
|
||||
void check_pending(struct mproc *rmp);
|
||||
void restart_sigs(struct mproc *rmp);
|
||||
void vm_notify_sig_wrapper(endpoint_t ep);
|
||||
|
||||
/* time.c */
|
||||
_PROTOTYPE( int do_stime, (void) );
|
||||
_PROTOTYPE( int do_time, (void) );
|
||||
_PROTOTYPE( int do_times, (void) );
|
||||
int do_stime(void);
|
||||
int do_time(void);
|
||||
int do_times(void);
|
||||
|
||||
/* trace.c */
|
||||
_PROTOTYPE( int do_trace, (void) );
|
||||
_PROTOTYPE( void stop_proc, (struct mproc *rmp, int sig_nr) );
|
||||
int do_trace(void);
|
||||
void stop_proc(struct mproc *rmp, int sig_nr);
|
||||
#if ! USE_TRACE
|
||||
#define do_trace no_sys
|
||||
#define stop_proc no_sys
|
||||
#endif
|
||||
|
||||
/* utility.c */
|
||||
_PROTOTYPE( pid_t get_free_pid, (void) );
|
||||
_PROTOTYPE( int no_sys, (void) );
|
||||
_PROTOTYPE( char *find_param, (const char *key) );
|
||||
_PROTOTYPE( struct mproc *find_proc, (pid_t lpid) );
|
||||
_PROTOTYPE( int nice_to_priority, (int nice, unsigned *new_q) );
|
||||
_PROTOTYPE( int pm_isokendpt, (int ep, int *proc) );
|
||||
_PROTOTYPE( void tell_vfs, (struct mproc *rmp, message *m_ptr) );
|
||||
pid_t get_free_pid(void);
|
||||
int no_sys(void);
|
||||
char *find_param(const char *key);
|
||||
struct mproc *find_proc(pid_t lpid);
|
||||
int nice_to_priority(int nice, unsigned *new_q);
|
||||
int pm_isokendpt(int ep, int *proc);
|
||||
void tell_vfs(struct mproc *rmp, message *m_ptr);
|
||||
|
||||
@@ -32,9 +32,9 @@
|
||||
#include "mproc.h"
|
||||
#include "param.h"
|
||||
|
||||
FORWARD _PROTOTYPE( void unpause, (struct mproc *rmp) );
|
||||
FORWARD _PROTOTYPE( int sig_send, (struct mproc *rmp, int signo) );
|
||||
FORWARD _PROTOTYPE( void sig_proc_exit, (struct mproc *rmp, int signo) );
|
||||
FORWARD void unpause(struct mproc *rmp);
|
||||
FORWARD int sig_send(struct mproc *rmp, int signo);
|
||||
FORWARD void sig_proc_exit(struct mproc *rmp, int signo);
|
||||
|
||||
/*===========================================================================*
|
||||
* do_sigaction *
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "mproc.h"
|
||||
#include "param.h"
|
||||
|
||||
_PROTOTYPE (int (*call_vec[]), (void) ) = {
|
||||
int (*call_vec[])(void) = {
|
||||
no_sys, /* 0 = unused */
|
||||
do_exit, /* 1 = exit */
|
||||
do_fork, /* 2 = fork */
|
||||
|
||||
Reference in New Issue
Block a user