!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/include/asm-arm/   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:     atomic.h (2.24 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 *  linux/include/asm-arm/atomic.h
 *
 *  Copyright (c) 1996 Russell King.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 *  Changelog:
 *   27-06-1996    RMK    Created
 *   13-04-1997    RMK    Made functions atomic!
 *   07-12-1997    RMK    Upgraded for v2.1.
 *   26-08-1998    PJB    Added #ifdef __KERNEL__
 */
#ifndef __ASM_ARM_ATOMIC_H
#define __ASM_ARM_ATOMIC_H

#include <linux/config.h>

#ifdef CONFIG_SMP
#error SMP not supported
#endif

typedef struct { volatile int counter; } atomic_t;

#define ATOMIC_INIT(i)    { (i) }

#ifdef __KERNEL__
#include <asm/proc/system.h>

#define atomic_read(v)    ((v)->counter)
#define atomic_set(v,i)    (((v)->counter) = (i))

static __inline__ void atomic_add(int i, volatile atomic_t *v)
{
    unsigned long flags;

    __save_flags_cli(flags);
    v->counter += i;
    __restore_flags(flags);
}

static __inline__ void atomic_sub(int i, volatile atomic_t *v)
{
    unsigned long flags;

    __save_flags_cli(flags);
    v->counter -= i;
    __restore_flags(flags);
}

static __inline__ void atomic_inc(volatile atomic_t *v)
{
    unsigned long flags;

    __save_flags_cli(flags);
    v->counter += 1;
    __restore_flags(flags);
}

static __inline__ void atomic_dec(volatile atomic_t *v)
{
    unsigned long flags;

    __save_flags_cli(flags);
    v->counter -= 1;
    __restore_flags(flags);
}

static __inline__ int atomic_dec_and_test(volatile atomic_t *v)
{
    unsigned long flags;
    int result;

    __save_flags_cli(flags);
    v->counter -= 1;
    result = (v->counter == 0);
    __restore_flags(flags);

    return result;
}

static inline int atomic_add_negative(int i, volatile atomic_t *v)
{
    unsigned long flags;
    int result;

    __save_flags_cli(flags);
    v->counter += i;
    result = (v->counter < 0);
    __restore_flags(flags);

    return result;
}

static __inline__ void atomic_clear_mask(unsigned long mask, unsigned long *addr)
{
    unsigned long flags;

    __save_flags_cli(flags);
    *addr &= ~mask;
    __restore_flags(flags);
}

/* Atomic operations are already serializing on ARM */
#define smp_mb__before_atomic_dec()    barrier()
#define smp_mb__after_atomic_dec()    barrier()
#define smp_mb__before_atomic_inc()    barrier()
#define smp_mb__after_atomic_inc()    barrier()

#endif
#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.0322 ]--