!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/ia64/hp/   drwxr-xr-x
Free 318.32 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:     hpsim_console.c (1.54 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * Platform dependent support for HP simulator.
 *
 * Copyright (C) 1998, 1999 Hewlett-Packard Co
 * Copyright (C) 1998, 1999 David Mosberger-Tang <davidm@hpl.hp.com>
 * Copyright (C) 1999 Vijay Chander <vijay@engr.sgi.com>
 */
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/param.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/kdev_t.h>
#include <linux/console.h>

#include <asm/delay.h>
#include <asm/irq.h>
#include <asm/pal.h>
#include <asm/machvec.h>
#include <asm/pgtable.h>
#include <asm/sal.h>

#include "hpsim_ssc.h"

static int simcons_init (struct console *, char *);
static void simcons_write (struct console *, const char *, unsigned);
static int simcons_wait_key (struct console *);
static kdev_t simcons_console_device (struct console *);

struct console hpsim_cons = {
    name:        "simcons",
    write:        simcons_write,
    device:        simcons_console_device,
    wait_key:    simcons_wait_key,
    setup:        simcons_init,
    flags:        CON_PRINTBUFFER,
    index:        -1,
};

static int
simcons_init (struct console *cons, char *options)
{
    return 0;
}

static void
simcons_write (struct console *cons, const char *buf, unsigned count)
{
    unsigned long ch;

    while (count-- > 0) {
        ch = *buf++;
        ia64_ssc(ch, 0, 0, 0, SSC_PUTCHAR);
        if (ch == '\n')
          ia64_ssc('\r', 0, 0, 0, SSC_PUTCHAR);
    }
}

static int
simcons_wait_key (struct console *cons)
{
    char ch;

    do {
        ch = ia64_ssc(0, 0, 0, 0, SSC_GETCHAR);
    } while (ch == '\0');
    return ch;
}

static kdev_t
simcons_console_device (struct console *c)
{
    return MKDEV(TTY_MAJOR, 64 + c->index);
}

:: 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.026 ]--