Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
3bb1d29e
Commit
3bb1d29e
authored
Apr 01, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inc: remove unused shmop plugin usage
parent
4d7e435a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
22 deletions
+0
-22
util.inc
src/etc/inc/util.inc
+0
-20
rc.php_ini_setup
src/etc/rc.php_ini_setup
+0
-2
No files found.
src/etc/inc/util.inc
View file @
3bb1d29e
...
...
@@ -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
;
...
...
src/etc/rc.php_ini_setup
View file @
3bb1d29e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment