Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.35
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
win32 /
Delete
Unzip
Name
Size
Permission
Date
Action
build
[ DIR ]
drwxrwxr-x
2022-10-31 11:36
codepage.c
16.57
KB
-rw-rw-r--
2022-10-31 11:36
codepage.h
6.5
KB
-rw-rw-r--
2022-10-31 11:36
console.c
3.26
KB
-rw-rw-r--
2022-10-31 11:36
console.h
2.44
KB
-rw-rw-r--
2022-10-31 11:36
cp_enc_map.c
11.49
KB
-rw-rw-r--
2022-10-31 11:36
cp_enc_map_gen.c
13.56
KB
-rw-rw-r--
2022-10-31 11:36
dllmain.c
2.9
KB
-rw-rw-r--
2022-10-31 11:36
fnmatch.c
5.77
KB
-rw-rw-r--
2022-10-31 11:36
fnmatch.h
2.44
KB
-rw-rw-r--
2022-10-31 11:36
ftok.c
2.03
KB
-rw-rw-r--
2022-10-31 11:36
getrusage.c
2.51
KB
-rw-rw-r--
2022-10-31 11:36
getrusage.h
2.71
KB
-rw-rw-r--
2022-10-31 11:36
glob.c
20.8
KB
-rw-rw-r--
2022-10-31 11:36
glob.h
4.22
KB
-rw-rw-r--
2022-10-31 11:36
globals.c
2.17
KB
-rw-rw-r--
2022-10-31 11:36
grp.h
1.25
KB
-rw-rw-r--
2022-10-31 11:36
inet.c
1.3
KB
-rw-rw-r--
2022-10-31 11:36
inet.h
1.28
KB
-rw-rw-r--
2022-10-31 11:36
ioutil.c
32.61
KB
-rw-rw-r--
2022-10-31 11:36
ioutil.h
21.87
KB
-rw-rw-r--
2022-10-31 11:36
ipc.h
1.4
KB
-rw-rw-r--
2022-10-31 11:36
nice.c
3.29
KB
-rw-rw-r--
2022-10-31 11:36
nice.h
1.2
KB
-rw-rw-r--
2022-10-31 11:36
param.h
990
B
-rw-rw-r--
2022-10-31 11:36
php_inttypes.h
8
KB
-rw-rw-r--
2022-10-31 11:36
php_registry.h
1.27
KB
-rw-rw-r--
2022-10-31 11:36
php_stdint.h
7.58
KB
-rw-rw-r--
2022-10-31 11:36
php_win32_globals.h
2.03
KB
-rw-rw-r--
2022-10-31 11:36
readdir.c
5.05
KB
-rw-rw-r--
2022-10-31 11:36
readdir.h
1.08
KB
-rw-rw-r--
2022-10-31 11:36
registry.c
8.48
KB
-rw-rw-r--
2022-10-31 11:36
select.c
5.12
KB
-rw-rw-r--
2022-10-31 11:36
select.h
1.3
KB
-rw-rw-r--
2022-10-31 11:36
sendmail.c
29.69
KB
-rw-rw-r--
2022-10-31 11:36
sendmail.h
1.81
KB
-rw-rw-r--
2022-10-31 11:36
signal.c
4.92
KB
-rw-rw-r--
2022-10-31 11:36
signal.h
384
B
-rw-rw-r--
2022-10-31 11:36
sockets.c
2.64
KB
-rw-rw-r--
2022-10-31 11:36
sockets.h
1.52
KB
-rw-rw-r--
2022-10-31 11:36
syslog.h
2.64
KB
-rw-rw-r--
2022-10-31 11:36
time.c
3.34
KB
-rw-rw-r--
2022-10-31 11:36
time.h
2.06
KB
-rw-rw-r--
2022-10-31 11:36
unistd.h
105
B
-rw-rw-r--
2022-10-31 11:36
winutil.c
23.78
KB
-rw-rw-r--
2022-10-31 11:36
winutil.h
2.37
KB
-rw-rw-r--
2022-10-31 11:36
wsyslog.c
4.32
KB
-rw-rw-r--
2022-10-31 11:36
Save
Rename
/* +----------------------------------------------------------------------+ | PHP Version 7 | +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | | available through the world-wide-web at the following url: | | http://www.php.net/license/3_01.txt | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Authors: Kalle Sommer Nielsen <kalle@php.net> | +----------------------------------------------------------------------+ */ #include <php.h> #include <psapi.h> #include "getrusage.h" /* * Parts of this file is based on code from the OpenVSwitch project, that * is released under the Apache 2.0 license and is copyright 2014 Nicira, Inc. * and have been modified to work with PHP. */ static zend_always_inline void usage_to_timeval(FILETIME *ft, struct timeval *tv) { ULARGE_INTEGER time; time.LowPart = ft->dwLowDateTime; time.HighPart = ft->dwHighDateTime; tv->tv_sec = (zend_long) (time.QuadPart / 10000000); tv->tv_usec = (zend_long) ((time.QuadPart % 10000000) / 10); } PHPAPI int getrusage(int who, struct rusage *usage) { FILETIME ctime, etime, stime, utime; memset(usage, 0, sizeof(struct rusage)); if (who == RUSAGE_SELF) { PROCESS_MEMORY_COUNTERS pmc; HANDLE proc = GetCurrentProcess(); if (!GetProcessTimes(proc, &ctime, &etime, &stime, &utime)) { return -1; } else if(!GetProcessMemoryInfo(proc, &pmc, sizeof(pmc))) { return -1; } usage_to_timeval(&stime, &usage->ru_stime); usage_to_timeval(&utime, &usage->ru_utime); usage->ru_majflt = pmc.PageFaultCount; usage->ru_maxrss = pmc.PeakWorkingSetSize / 1024; return 0; } else if (who == RUSAGE_THREAD) { if (!GetThreadTimes(GetCurrentThread(), &ctime, &etime, &stime, &utime)) { return -1; } usage_to_timeval(&stime, &usage->ru_stime); usage_to_timeval(&utime, &usage->ru_utime); return 0; } else { return -1; } }