*===========================================================================*/
PUBLIC int ctty_opcl(
int op, /* operation, DEV_OPEN or DEV_CLOSE */
- dev_t dev, /* device to open or close */
- endpoint_t proc_e, /* process to open/close for */
- int flags /* mode bits and flags */
+ dev_t UNUSED(dev), /* device to open or close */
+ endpoint_t UNUSED(proc_e), /* process to open/close for */
+ int UNUSED(flags) /* mode bits and flags */
)
{
/* This procedure is called from the dmap struct on opening or closing
/*===========================================================================*
* ctty_io *
*===========================================================================*/
-PUBLIC int ctty_io(task_nr, mess_ptr)
-int task_nr; /* not used - for compatibility with dmap_t */
-message *mess_ptr; /* pointer to message for task */
+PUBLIC int ctty_io(
+ endpoint_t UNUSED(task_nr), /* not used - for compatibility with dmap_t */
+ message *mess_ptr /* pointer to message for task */
+)
{
/* This routine is only called for one device, namely /dev/tty. Its job
* is to change the message to use the controlling terminal, instead of the
/*===========================================================================*
* no_dev_io *
*===========================================================================*/
-PUBLIC int no_dev_io(int proc, message *m)
+PUBLIC int no_dev_io(endpoint_t UNUSED(proc), message *UNUSED(m))
{
/* Called when doing i/o on a nonexistent device. */
printf("VFS: I/O on unmapped device number\n");
PRIVATE int depth = 0; /* current globals stack level */
-#if ENABLE_SYSCALL_STATS
-EXTERN unsigned long calls_stats[NCALLS];
-#endif
-
FORWARD _PROTOTYPE( int push_globals, (void) );
FORWARD _PROTOTYPE( void pop_globals, (void) );
FORWARD _PROTOTYPE( void set_globals, (message *m) );
/*===========================================================================*
* sef_cb_init_fresh *
*===========================================================================*/
-PRIVATE int sef_cb_init_fresh(int type, sef_init_info_t *info)
+PRIVATE int sef_cb_init_fresh(int UNUSED(type), sef_init_info_t *info)
{
/* Initialize the virtual file server. */
int s, i;
/*===========================================================================*
* select_request_file *
*===========================================================================*/
-PRIVATE int select_request_file(struct filp *f, int *ops, int block)
+PRIVATE int select_request_file(struct filp *UNUSED(f), int *UNUSED(ops),
+ int UNUSED(block))
{
/* Files are always ready, so output *ops is input *ops */
return(SEL_OK);
/*===========================================================================*
* sef_cb_init_fresh *
*===========================================================================*/
-PUBLIC int sef_cb_init_fresh(int type, sef_init_info_t *info)
+PUBLIC int sef_cb_init_fresh(int UNUSED(type), sef_init_info_t *info)
{
/* Initialize the data store server. */
int i, r;
*new_q = MAX_USER_Q + (nice-PRIO_MIN) * (MIN_USER_Q-MAX_USER_Q+1) /
(PRIO_MAX-PRIO_MIN+1);
- if (*new_q < MAX_USER_Q) *new_q = MAX_USER_Q; /* shouldn't happen */
- if (*new_q > MIN_USER_Q) *new_q = MIN_USER_Q; /* shouldn't happen */
+
+ /* Neither of these should ever happen. */
+ if ((signed) *new_q < MAX_USER_Q) *new_q = MAX_USER_Q;
+ if (*new_q > MIN_USER_Q) *new_q = MIN_USER_Q;
return (OK);
}
/*===========================================================================*
* main *
*===========================================================================*/
-PUBLIC int main(int argc, char *argv[])
+PUBLIC int main(void)
{
/* ProcFS entry point.
*/
/*===========================================================================*
* pid_link *
*===========================================================================*/
-PRIVATE int pid_link(struct inode *node, char *ptr, int max)
+PRIVATE int pid_link(struct inode *UNUSED(node), char *ptr, int UNUSED(max))
{
/* The contents of a symbolic link in a PID directory are requested.
* This function is a placeholder for future use.
/*===========================================================================*
* lookup_hook *
*===========================================================================*/
-PUBLIC int lookup_hook(struct inode *parent, char *name, cbdata_t cbdata)
+PUBLIC int lookup_hook(struct inode *parent, char *name,
+ cbdata_t UNUSED(cbdata))
{
/* Path name resolution hook, for a specific parent and name pair.
* If needed, update our own view of the system first; after that,
/*===========================================================================*
* getdents_hook *
*===========================================================================*/
-PUBLIC int getdents_hook(struct inode *node, cbdata_t cbdata)
+PUBLIC int getdents_hook(struct inode *node, cbdata_t UNUSED(cbdata))
{
/* Directory entry retrieval hook, for potentially all files in a
* directory. Make sure that all files that are supposed to be
* rdlink_hook *
*===========================================================================*/
PUBLIC int rdlink_hook(struct inode *node, char *ptr, size_t max,
- cbdata_t cbdata)
+ cbdata_t UNUSED(cbdata))
{
/* Symbolic link resolution hook. Not used yet.
*/
PRIVATE int depth = 0; /* current globals stack level */
-#if ENABLE_SYSCALL_STATS
-EXTERN unsigned long calls_stats[NCALLS];
-#endif
-
FORWARD _PROTOTYPE( int push_globals, (void) );
FORWARD _PROTOTYPE( void pop_globals, (void) );
FORWARD _PROTOTYPE( void set_globals, (message *m) );