PUBLIC void dtab_dmp()
{
int i;
- char *file[] = {
- "not used ", "/dev/mem ", "/dev/fd0 ", "/dev/c0 ", "/dev/tty0 ",
- "/dev/tty ", "/dev/lp ", "/dev/ip ", "/dev/c1 ", "not used ",
- "/dev/c2 ", "not used ", "/dev/c3 ", "/dev/audio", "/dev/mixer",
- };
getsysinfo(FS_PROC_NR, SI_DMAP_TAB, dmap);
if (dmap[i].dmap_driver == 0) continue;
printf("%5d ", i);
printf("%4d\n", dmap[i].dmap_driver);
-
-#if DEAD_CODE
- if (dmap[i].dmap_opcl == no_dev) printf(" no_dev");
- else if (dmap[i].dmap_opcl == gen_opcl) printf("gen_opcl");
- else printf("%8x", dmap[i].dmap_opcl);
-
- if ((void *)dmap[i].dmap_io == (void *)no_dev) printf(" no_dev");
- else if (dmap[i].dmap_io == gen_io) printf(" gen_io");
- else printf("%8x", dmap[i].dmap_io);
-#endif
-
}
}
{
struct kmessages kmess; /* get copy of kernel messages */
char print_buf[KMESS_BUF_SIZE+1]; /* this one is used to print */
- int next, size; /* vars returned by sys_kmess() */
int start; /* calculate start of messages */
int r;
*===========================================================================*/
PUBLIC void irqtab_dmp()
{
- int i,j,r;
+ int i,r;
struct irq_hook irq_hooks[NR_IRQ_HOOKS];
struct irq_hook *e; /* irq tab entry */
char *irq[] = {
/*===========================================================================*
* main *
*===========================================================================*/
-PUBLIC void main(int argc, char **argv)
+PUBLIC int main(int argc, char **argv)
{
/* This is the main routine of this service. The main loop consists of
* three major activities: getting new work, processing the work, and
reply(who, result);
}
}
+ return(OK); /* shouldn't come here */
}
/*===========================================================================*
/* Function prototypes. */
/* main.c */
-_PROTOTYPE( void main, (int argc, char **argv) );
+_PROTOTYPE( int main, (int argc, char **argv) );
/* dmp.c */
_PROTOTYPE( int do_fkey_pressed, (message *m) );