!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/parisc/lib/   drwxr-xr-x
Free 318.33 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:     bitops.c (1.32 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* atomic.c: atomic operations which got too long to be inlined all over
 * the place.
 * 
 * Copyright 1999 Philipp Rumpf (prumpf@tux.org */

#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/spinlock.h>
#include <asm/system.h>
#include <asm/atomic.h>

#ifdef CONFIG_SMP
spinlock_t __atomic_hash[ATOMIC_HASH_SIZE] = {
    [0 ... (ATOMIC_HASH_SIZE-1)]  = SPIN_LOCK_UNLOCKED
};
#endif

spinlock_t __atomic_lock = SPIN_LOCK_UNLOCKED;

#ifndef __LP64__
unsigned long __xchg(unsigned long x, unsigned long *ptr, int size)
{
    unsigned long temp, flags;

    if (size != sizeof x) {
        printk("__xchg called with bad pointer\n");
    }
    spin_lock_irqsave(&__atomic_lock, flags);
    temp = *ptr;
    *ptr = x;
    spin_unlock_irqrestore(&__atomic_lock, flags);
    return temp;
}
#else
unsigned long __xchg(unsigned long x, unsigned long *ptr, int size)
{
    unsigned long temp, flags;
    unsigned int *ptr32;

    if (size == 8) {
try_long:
        spin_lock_irqsave(&__atomic_lock, flags);
        temp = *ptr;
        *ptr = x;
        spin_unlock_irqrestore(&__atomic_lock, flags);
        return temp;
    }
    if (size == 4) {
        ptr32 = (unsigned int *)ptr;
        spin_lock_irqsave(&__atomic_lock, flags);
        temp = (unsigned long)*ptr32;
        *ptr32 = (unsigned int)x;
        spin_unlock_irqrestore(&__atomic_lock, flags);
        return temp;
    }

    printk("__xchg called with bad pointer\n");
    goto try_long;
}
#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.0306 ]--