retire PUBLIC, PRIVATE and FORWARD
This commit is contained in:
@@ -41,24 +41,24 @@ static int pagelines;
|
||||
((unsigned) ((((unsigned long) (n) << CLICK_SHIFT) + 512) / 1024))
|
||||
|
||||
/* Declare some local dump procedures. */
|
||||
FORWARD char *proc_name(int proc_nr);
|
||||
FORWARD char *s_traps_str(int flags);
|
||||
FORWARD char *s_flags_str(int flags);
|
||||
FORWARD char *p_rts_flags_str(int flags);
|
||||
FORWARD char *boot_flags_str(int flags);
|
||||
static char *proc_name(int proc_nr);
|
||||
static char *s_traps_str(int flags);
|
||||
static char *s_flags_str(int flags);
|
||||
static char *p_rts_flags_str(int flags);
|
||||
static char *boot_flags_str(int flags);
|
||||
|
||||
/* Some global data that is shared among several dumping procedures.
|
||||
* Note that the process table copy has the same name as in the kernel
|
||||
* so that most macros and definitions from proc.h also apply here.
|
||||
*/
|
||||
PUBLIC struct proc proc[NR_TASKS + NR_PROCS];
|
||||
PUBLIC struct priv priv[NR_SYS_PROCS];
|
||||
PUBLIC struct boot_image image[NR_BOOT_PROCS];
|
||||
struct proc proc[NR_TASKS + NR_PROCS];
|
||||
struct priv priv[NR_SYS_PROCS];
|
||||
struct boot_image image[NR_BOOT_PROCS];
|
||||
|
||||
/*===========================================================================*
|
||||
* kmessages_dmp *
|
||||
*===========================================================================*/
|
||||
PUBLIC void kmessages_dmp()
|
||||
void kmessages_dmp()
|
||||
{
|
||||
struct kmessages kmess; /* get copy of kernel messages */
|
||||
char print_buf[_KMESS_BUF_SIZE+1]; /* this one is used to print */
|
||||
@@ -90,7 +90,7 @@ PUBLIC void kmessages_dmp()
|
||||
/*===========================================================================*
|
||||
* monparams_dmp *
|
||||
*===========================================================================*/
|
||||
PUBLIC void monparams_dmp()
|
||||
void monparams_dmp()
|
||||
{
|
||||
char val[1024];
|
||||
char *e;
|
||||
@@ -117,7 +117,7 @@ PUBLIC void monparams_dmp()
|
||||
/*===========================================================================*
|
||||
* irqtab_dmp *
|
||||
*===========================================================================*/
|
||||
PUBLIC void irqtab_dmp()
|
||||
void irqtab_dmp()
|
||||
{
|
||||
int i,r;
|
||||
struct irq_hook irq_hooks[NR_IRQ_HOOKS];
|
||||
@@ -163,7 +163,7 @@ PUBLIC void irqtab_dmp()
|
||||
/*===========================================================================*
|
||||
* boot_flags_str *
|
||||
*===========================================================================*/
|
||||
PRIVATE char *boot_flags_str(int flags)
|
||||
static char *boot_flags_str(int flags)
|
||||
{
|
||||
static char str[10];
|
||||
str[0] = (flags & PROC_FULLVM) ? 'V' : '-';
|
||||
@@ -175,7 +175,7 @@ PRIVATE char *boot_flags_str(int flags)
|
||||
/*===========================================================================*
|
||||
* image_dmp *
|
||||
*===========================================================================*/
|
||||
PUBLIC void image_dmp()
|
||||
void image_dmp()
|
||||
{
|
||||
int m, r;
|
||||
struct boot_image *ip;
|
||||
@@ -199,7 +199,7 @@ PUBLIC void image_dmp()
|
||||
/*===========================================================================*
|
||||
* kenv_dmp *
|
||||
*===========================================================================*/
|
||||
PUBLIC void kenv_dmp()
|
||||
void kenv_dmp()
|
||||
{
|
||||
struct kinfo kinfo;
|
||||
struct machine machine;
|
||||
@@ -234,7 +234,7 @@ PUBLIC void kenv_dmp()
|
||||
/*===========================================================================*
|
||||
* s_flags_str *
|
||||
*===========================================================================*/
|
||||
PRIVATE char *s_flags_str(int flags)
|
||||
static char *s_flags_str(int flags)
|
||||
{
|
||||
static char str[10];
|
||||
str[0] = (flags & PREEMPTIBLE) ? 'P' : '-';
|
||||
@@ -252,7 +252,7 @@ PRIVATE char *s_flags_str(int flags)
|
||||
/*===========================================================================*
|
||||
* s_traps_str *
|
||||
*===========================================================================*/
|
||||
PRIVATE char *s_traps_str(int flags)
|
||||
static char *s_traps_str(int flags)
|
||||
{
|
||||
static char str[10];
|
||||
str[0] = (flags & (1 << SEND)) ? 'S' : '-';
|
||||
@@ -268,7 +268,7 @@ PRIVATE char *s_traps_str(int flags)
|
||||
/*===========================================================================*
|
||||
* privileges_dmp *
|
||||
*===========================================================================*/
|
||||
PUBLIC void privileges_dmp()
|
||||
void privileges_dmp()
|
||||
{
|
||||
register struct proc *rp;
|
||||
static struct proc *oldrp = BEG_PROC_ADDR;
|
||||
@@ -315,7 +315,7 @@ PUBLIC void privileges_dmp()
|
||||
/*===========================================================================*
|
||||
* p_rts_flags_str *
|
||||
*===========================================================================*/
|
||||
PRIVATE char *p_rts_flags_str(int flags)
|
||||
static char *p_rts_flags_str(int flags)
|
||||
{
|
||||
static char str[10];
|
||||
str[0] = (flags & RTS_PROC_STOP) ? 's' : '-';
|
||||
@@ -334,7 +334,7 @@ PRIVATE char *p_rts_flags_str(int flags)
|
||||
* proctab_dmp *
|
||||
*===========================================================================*/
|
||||
#if (CHIP == INTEL)
|
||||
PUBLIC void proctab_dmp()
|
||||
void proctab_dmp()
|
||||
{
|
||||
/* Proc table dump */
|
||||
|
||||
@@ -371,7 +371,7 @@ PUBLIC void proctab_dmp()
|
||||
/*===========================================================================*
|
||||
* procstack_dmp *
|
||||
*===========================================================================*/
|
||||
PUBLIC void procstack_dmp()
|
||||
void procstack_dmp()
|
||||
{
|
||||
/* Proc table dump, with stack */
|
||||
|
||||
@@ -396,7 +396,7 @@ PUBLIC void procstack_dmp()
|
||||
/*===========================================================================*
|
||||
* memmap_dmp *
|
||||
*===========================================================================*/
|
||||
PUBLIC void memmap_dmp()
|
||||
void memmap_dmp()
|
||||
{
|
||||
register struct proc *rp;
|
||||
static struct proc *oldrp = proc;
|
||||
@@ -428,7 +428,7 @@ PUBLIC void memmap_dmp()
|
||||
/*===========================================================================*
|
||||
* proc_name *
|
||||
*===========================================================================*/
|
||||
PRIVATE char *proc_name(proc_nr)
|
||||
static char *proc_name(proc_nr)
|
||||
int proc_nr;
|
||||
{
|
||||
struct proc *p;
|
||||
|
||||
Reference in New Issue
Block a user