!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/src/linux-oracle-5.13-headers-5.13.0-1018/arch/s390/include/asm/   drwxr-xr-x
Free 83.22 GB of 96.73 GB (86.04%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     facility.h (2.53 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright IBM Corp. 1999, 2009
 *
 * Author(s): Martin Schwidefsky <[email protected]>
 */

#ifndef __ASM_FACILITY_H
#define __ASM_FACILITY_H

#include <asm/facility-defs.h>
#include <linux/string.h>
#include <linux/preempt.h>
#include <asm/lowcore.h>

#define MAX_FACILITY_BIT (sizeof(((struct lowcore *)0)->stfle_fac_list) * 8)

static inline void __set_facility(unsigned long nr, void *facilities)
{
    unsigned char *ptr = (unsigned char *) facilities;

    if (nr >= MAX_FACILITY_BIT)
        return;
    ptr[nr >> 3] |= 0x80 >> (nr & 7);
}

static inline void __clear_facility(unsigned long nr, void *facilities)
{
    unsigned char *ptr = (unsigned char *) facilities;

    if (nr >= MAX_FACILITY_BIT)
        return;
    ptr[nr >> 3] &= ~(0x80 >> (nr & 7));
}

static inline int __test_facility(unsigned long nr, void *facilities)
{
    unsigned char *ptr;

    if (nr >= MAX_FACILITY_BIT)
        return 0;
    ptr = (unsigned char *) facilities + (nr >> 3);
    return (*ptr & (0x80 >> (nr & 7))) != 0;
}

/*
 * The test_facility function uses the bit ordering where the MSB is bit 0.
 * That makes it easier to query facility bits with the bit number as
 * documented in the Principles of Operation.
 */
static inline int test_facility(unsigned long nr)
{
    unsigned long facilities_als[] = { FACILITIES_ALS };

    if (__builtin_constant_p(nr) && nr < sizeof(facilities_als) * 8) {
        if (__test_facility(nr, &facilities_als))
            return 1;
    }
    return __test_facility(nr, &S390_lowcore.stfle_fac_list);
}

static inline unsigned long __stfle_asm(u64 *stfle_fac_list, int size)
{
    register unsigned long reg0 asm("0") = size - 1;

    asm volatile(
        ".insn s,0xb2b00000,0(%1)" /* stfle */
        : "+d" (reg0)
        : "a" (stfle_fac_list)
        : "memory", "cc");
    return reg0;
}

/**
 * stfle - Store facility list extended
 * @stfle_fac_list: array where facility list can be stored
 * @size: size of passed in array in double words
 */
static inline void __stfle(u64 *stfle_fac_list, int size)
{
    unsigned long nr;

    asm volatile(
        "    stfl    0(0)\n"
        : "=m" (S390_lowcore.stfl_fac_list));
    nr = 4; /* bytes stored by stfl */
    memcpy(stfle_fac_list, &S390_lowcore.stfl_fac_list, 4);
    if (S390_lowcore.stfl_fac_list & 0x01000000) {
        /* More facility bits available with stfle */
        nr = __stfle_asm(stfle_fac_list, size);
        nr = min_t(unsigned long, (nr + 1) * 8, size * 8);
    }
    memset((char *) stfle_fac_list + nr, 0, size * 8 - nr);
}

static inline void stfle(u64 *stfle_fac_list, int size)
{
    preempt_disable();
    __stfle(stfle_fac_list, size);
    preempt_enable();
}

#endif /* __ASM_FACILITY_H */

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0071 ]--