!C99Shell v. 1.0 pre-release build #13!

Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a 

uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 

uid=99(nobody) gid=98(nobody) groups=98(nobody) 

Safe-mode: OFF (not secure)

/usr/src/linux-2.4.18-xfs-1.1/arch/mips/arc/   drwxr-xr-x
Free 318.35 GB of 458.09 GB (69.49%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     tree.c (2.77 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * tree.c: PROM component device tree code.
 *
 * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com)
 *
 * $Id: tree.c,v 1.1 1998/10/18 13:32:10 tsbogend Exp $
 */
#include <linux/init.h>
#include <asm/sgialib.h>

#define DEBUG_PROM_TREE

pcomponent * __init prom_getsibling(pcomponent *this)
{
    if(this == PROM_NULL_COMPONENT)
        return PROM_NULL_COMPONENT;
    return romvec->next_component(this);
}

pcomponent * __init prom_getchild(pcomponent *this)
{
    return romvec->child_component(this);
}

pcomponent * __init prom_getparent(pcomponent *child)
{
    if(child == PROM_NULL_COMPONENT)
        return PROM_NULL_COMPONENT;
    return romvec->parent_component(child);
}

long __init prom_getcdata(void *buffer, pcomponent *this)
{
    return romvec->component_data(buffer, this);
}

pcomponent * __init prom_childadd(pcomponent *this, pcomponent *tmp, void *data)
{
    return romvec->child_add(this, tmp, data);
}

long __init prom_delcomponent(pcomponent *this)
{
    return romvec->comp_del(this);
}

pcomponent * __init prom_componentbypath(char *path)
{
    return romvec->component_by_path(path);
}

#ifdef DEBUG_PROM_TREE
static char *classes[] = {
    "system", "processor", "cache", "adapter", "controller", "peripheral",
    "memory"
};

static char *types[] = {
    "arc", "cpu", "fpu", "picache", "pdcache", "sicache", "sdcache", "sccache",
    "memdev", "eisa adapter", "tc adapter", "scsi adapter", "dti adapter",
    "multi-func adapter", "disk controller", "tp controller",
    "cdrom controller", "worm controller", "serial controller",
    "net controller", "display controller", "parallel controller",
    "pointer controller", "keyboard controller", "audio controller",
    "misc controller", "disk peripheral", "floppy peripheral",
    "tp peripheral", "modem peripheral", "monitor peripheral",
    "printer peripheral", "pointer peripheral", "keyboard peripheral",
    "terminal peripheral", "line peripheral", "net peripheral",
    "misc peripheral", "anonymous"
};

static char *iflags[] = {
    "bogus", "read only", "removable", "console in", "console out",
    "input", "output"
};

static void __init dump_component(pcomponent *p)
{
    prom_printf("[%p]:class<%s>type<%s>flags<%s>ver<%d>rev<%d>",
            p, classes[p->class], types[p->type],
            iflags[p->iflags], p->vers, p->rev);
    prom_printf("key<%08lx>\n\tamask<%08lx>cdsize<%d>ilen<%d>iname<%s>\n",
            p->key, p->amask, (int)p->cdsize, (int)p->ilen, p->iname);
}

static void __init traverse(pcomponent *p, int op)
{
    dump_component(p);
    if(prom_getchild(p))
        traverse(prom_getchild(p), 1);
    if(prom_getsibling(p) && op)
        traverse(prom_getsibling(p), 1);
}

void __init prom_testtree(void)
{
    pcomponent *p;

    p = prom_getchild(PROM_NULL_COMPONENT);
    dump_component(p);
    p = prom_getchild(p);
    while(p) {
        dump_component(p);
        p = prom_getsibling(p);
    }
    prom_printf("press a key\n");
    prom_getchar();
}
#endif

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0124 ]--