!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/drivers/s390/char/   drwxr-xr-x
Free 318.35 GB of 458.09 GB (69.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     tubttyscl.c (1.63 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 *  IBM/3270 Driver -- Copyright (C) 2000, 2001 UTS Global LLC
 *
 *  tubttyscl.c -- Linemode tty driver scroll-timing functions
 *
 *
 *
 *
 *
 *  Author:  Richard Hitt
 */
#include "tubio.h"
       void tty3270_scl_settimer(tub_t *);
       void tty3270_scl_resettimer(tub_t *);
static void tty3270_scl_timeout(unsigned long);

void
tty3270_scl_settimer(tub_t *tubp)
{
    struct timer_list *tp = &tubp->tty_stimer;

    if (tubp->flags & TUB_SCROLLTIMING)
        return;
    if (tubp->tty_scrolltime == 0)
        return;

    init_timer(tp);
    tp->expires = jiffies + HZ * tubp->tty_scrolltime;
    tp->data = (unsigned long)tubp;
    tp->function = tty3270_scl_timeout;
    add_timer(tp);
    tubp->flags |= TUB_SCROLLTIMING;
}

void
tty3270_scl_resettimer(tub_t *tubp)
{
    struct timer_list *tp = &tubp->tty_stimer;

    if ((tubp->flags & TUB_SCROLLTIMING) == 0)
        return;

    del_timer(tp);
    tubp->flags &= ~TUB_SCROLLTIMING;
}

static void
tty3270_scl_timeout(unsigned long data)
{
    tub_t *tubp = (void *)data;
    long flags;

    TUBLOCK(tubp->irq, flags);
    tubp->stat = TBS_RUNNING;
    tty3270_scl_resettimer(tubp);
    tubp->cmd = TBC_CLRUPDLOG;
    tty3270_build(tubp);
    TUBUNLOCK(tubp->irq, flags);
}

int
tty3270_scl_set(tub_t *tubp, char *buf, int count)
{
    if (strncmp(buf, "scrolltime=", 11) == 0) {
        tubp->tty_scrolltime =
            simple_strtoul(buf + 11, 0, 0);
        return count;
    }
    return 0;
}

int
tty3270_scl_init(tub_t *tubp)
{
    extern int tubscrolltime;

    tubp->tty_scrolltime = tubscrolltime;
    if (tubp->tty_scrolltime < 0)
        tubp->tty_scrolltime = DEFAULT_SCROLLTIME;
    return 0;
}

void
tty3270_scl_fini(tub_t *tubp)
{
    if ((tubp->flags & TUB_OPEN_STET) == 0)
        tty3270_scl_resettimer(tubp);
}

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