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

Software: Apache/2.4.18 (Ubuntu). PHP/7.0.33-0ubuntu0.16.04.16 

uname -a: Linux digifus 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 

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

Safe-mode: OFF (not secure)

/usr/src/linux-headers-3.13.0-57/arch/xtensa/platforms/iss/include/platform/   drwxr-xr-x
Free 9.58 GB of 29.4 GB (32.58%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     simcall.h (2.92 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * include/asm-xtensa/platform-iss/simcall.h
 *
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
 * Copyright (C) 2001 Tensilica Inc.
 */

#ifndef _XTENSA_PLATFORM_ISS_SIMCALL_H
#define _XTENSA_PLATFORM_ISS_SIMCALL_H


/*
 *  System call like services offered by the simulator host.
 */

#define SYS_nop        0    /* unused */
#define SYS_exit    1    /*x*/
#define SYS_fork    2
#define SYS_read    3    /*x*/
#define SYS_write    4    /*x*/
#define SYS_open    5    /*x*/
#define SYS_close    6    /*x*/
#define SYS_rename    7    /*x 38 - waitpid */
#define SYS_creat    8    /*x*/
#define SYS_link    9    /*x (not implemented on WIN32) */
#define SYS_unlink    10    /*x*/
#define SYS_execv    11    /* n/a - execve */
#define SYS_execve    12    /* 11 - chdir */
#define SYS_pipe    13    /* 42 - time */
#define SYS_stat    14    /* 106 - mknod */
#define SYS_chmod    15
#define SYS_chown    16    /* 202 - lchown */
#define SYS_utime    17    /* 30 - break */
#define SYS_wait    18    /* n/a - oldstat */
#define SYS_lseek    19    /*x*/
#define SYS_getpid    20
#define SYS_isatty    21    /* n/a - mount */
#define SYS_fstat    22    /* 108 - oldumount */
#define SYS_time    23    /* 13 - setuid */
#define SYS_gettimeofday 24    /*x 78 - getuid (not implemented on WIN32) */
#define SYS_times    25    /*X 43 - stime (Xtensa-specific implementation) */
#define SYS_socket      26
#define SYS_sendto      27
#define SYS_recvfrom    28
#define SYS_select_one  29      /* not compitible select, one file descriptor at the time */
#define SYS_bind        30
#define SYS_ioctl    31

/*
 * SYS_select_one specifiers
 */

#define  XTISS_SELECT_ONE_READ    1
#define  XTISS_SELECT_ONE_WRITE   2
#define  XTISS_SELECT_ONE_EXCEPT  3

static int errno;

static inline int __simc(int a, int b, int c, int d)
{
    int ret;
    register int a1 asm("a2") = a;
    register int b1 asm("a3") = b;
    register int c1 asm("a4") = c;
    register int d1 asm("a5") = d;
    __asm__ __volatile__ (
            "simcall\n"
            "mov %0, a2\n"
            "mov %1, a3\n"
            : "=a" (ret), "=a" (errno), "+r"(a1), "+r"(b1)
            : "r"(c1), "r"(d1)
            : "memory");
    return ret;
}

static inline int simc_open(const char *file, int flags, int mode)
{
    return __simc(SYS_open, (int) file, flags, mode);
}

static inline int simc_close(int fd)
{
    return __simc(SYS_close, fd, 0, 0);
}

static inline int simc_ioctl(int fd, int request, void *arg)
{
    return __simc(SYS_ioctl, fd, request, (int) arg);
}

static inline int simc_read(int fd, void *buf, size_t count)
{
    return __simc(SYS_read, fd, (int) buf, count);
}

static inline int simc_write(int fd, const void *buf, size_t count)
{
    return __simc(SYS_write, fd, (int) buf, count);
}

static inline int simc_poll(int fd)
{
    struct timeval tv = { .tv_sec = 0, .tv_usec = 0 };

    return __simc(SYS_select_one, fd, XTISS_SELECT_ONE_READ, (int)&tv);
}

static inline int simc_lseek(int fd, uint32_t off, int whence)
{
    return __simc(SYS_lseek, fd, off, whence);
}

#endif /* _XTENSA_PLATFORM_ISS_SIMCALL_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 KaizenLouie | C99Shell Github | Generation time: 0.0133 ]--