inc: remove unused shmop plugin usage

This commit is contained in:
Franco Fichtner 2015-04-01 09:18:33 +02:00
parent 4d7e435ac7
commit 3bb1d29e9f
2 changed files with 0 additions and 22 deletions

View File

@ -155,26 +155,6 @@ function send_event($cmd)
return $backend->sendEvent("{$cmd}");
}
function refcount_init($reference) {
$shmid = @shmop_open($reference, "c", 0644, 10);
@shmop_write($shmid, str_pad("0", 10, "\x0", STR_PAD_RIGHT), 0);
@shmop_close($shmid);
}
function refcount_read($reference) {
/* This function just reads the current value of the refcount for information. */
/* There is no need for locking. */
$shmid = @shmop_open($reference, "a", 0, 0);
if (!$shmid) {
log_error(gettext("Could not open shared memory for read {$reference}"));
return -1;
}
$shm_data = @shmop_read($shmid, 0, 10);
@shmop_close($shmid);
return $shm_data;
}
function is_module_loaded($module_name) {
$module_name = str_replace(".ko", "", $module_name);
$running = 0;

View File

@ -59,8 +59,6 @@ PHPMODULES="$PHPMODULES suhosin"
PHPMODULES="$PHPMODULES ctype"
# firewall_rules_edit.php
PHPMODULES="$PHPMODULES mbstring"
# Synchronization primitives
PHPMODULES="$PHPMODULES shmop"
# Page compression
PHPMODULES="$PHPMODULES zlib"
# SQLlite & Database