!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)

/home/sources/unixbench/UnixBench/src/   drwxrwxr-x
Free 83.34 GB of 96.73 GB (86.16%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     context1.c (2.76 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |

/*******************************************************************************
 *  The BYTE UNIX Benchmarks - Release 3
 *          Module: context1.c   SID: 3.3 5/15/91 19:30:18
 *
 *******************************************************************************
 * Bug reports, patches, comments, suggestions should be sent to:
 *
 *    Ben Smith, Rick Grehan or Tom Yager
 *    [email protected]   [email protected]   [email protected]
 *
 *******************************************************************************
 *  Modification Log:
 *  $Header: context1.c,v 3.4 87/06/22 14:22:59 kjmcdonell Beta $
 *  August 28, 1990 - changed timing routines--now returns total number of
 *                    iterations in specified time period
 *  October 22, 1997 - code cleanup to remove ANSI C compiler warnings
 *                     Andy Kahn <[email protected]>
 *
 ******************************************************************************/
char SCCSid[] = "@(#) @(#)context1.c:3.3 -- 5/15/91 19:30:18";
/*
 *  Context switching via synchronized unbuffered pipe i/o
 *
 */

#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include "timeit.c"

unsigned long iter;

void report()
{
    fprintf(stderr, "COUNT|%lu|1|lps\n", iter);
    exit(0);
}

int main(argc, argv)
int    argc;
char    *argv[];
{
    int duration;
    unsigned long    check;
    int    p1[2], p2[2];

    if (argc != 2) {
        fprintf(stderr, "Usage: context duration\n");
        exit(1);
    }

    duration = atoi(argv[1]);

    /* set up alarm call */
    iter = 0;
    wake_me(duration, report);

    if (pipe(p1) || pipe(p2)) {
        perror("pipe create failed");
        exit(1);
    }

    if (fork()) {    /* parent process */
        /* master, write p1 & read p2 */
        close(p1[0]); close(p2[1]);
        while (1) {
            if (write(p1[1], (char *)&iter, sizeof(iter)) != sizeof(iter)) {
                if ((errno != 0) && (errno != EINTR))
                    perror("master write failed");
                exit(1);
            }
            if (read(p2[0], (char *)&check, sizeof(check)) != sizeof(check)) {
                if ((errno != 0) && (errno != EINTR))
                    perror("master read failed");
                exit(1);
            }
            if (check != iter) {
                fprintf(stderr, "Master sync error: expect %lu, got %lu\n",
                    iter, check);
                exit(2);
            }
            iter++;
        }
    }
    else { /* child process */
        unsigned long iter1;

        iter1 = 0;
        /* slave, read p1 & write p2 */
        close(p1[1]); close(p2[0]);
        while (1) {
            if (read(p1[0], (char *)&check, sizeof(check)) != sizeof(check)) {
                if ((errno != 0) && (errno != EINTR))
                    perror("slave read failed");
                exit(1);
            }
            if (check != iter1) {
                fprintf(stderr, "Slave sync error: expect %lu, got %lu\n",
                    iter, check);
                exit(2);
            }
            if (write(p2[1], (char *)&iter1, sizeof(iter1)) != sizeof(check)) {
                if ((errno != 0) && (errno != EINTR))
                    perror("slave write failed");
                exit(1);
            }
            iter1++;
        }
    }
}

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