Getsysctl() - VeriFone MX800 series Programmer's Manual

Hide thumbs Also See for MX800 series:
Table of Contents

Advertisement

F
S
ILE
YSTEMS

getSysctl()

getSysctl()
24
M
X
800 S
P
ERIES
ROGRAMMERS
Reads the value of the kernel parameters in the /proc/sys directory using the
sysctl utility.
Prototype
int result = getSysctl(char *var, char *value, int vlen);
Parameters
Points to a null terminated string containing the kernel parameter to
var
reference. Maximum length of the label is 128 bytes and will
automatically be converted to lower case before searching for its value.
Points to an area where the value of the kernel parameter will be copied.
value
Maximum length is 128 bytes. Value will be null terminated.
Maximum length of the value field. If the length of value is larger than
vlen
vlen-1 then only vlen-1 bytes will be copied to value.
Return Values
> 0
Len of value
= 0
Entry not found.
< 0
An error has occurred:
EINVAL = Invalid parameter
ENOENT = Invalid kernel parameter
ENOBUFS = Internal message error
G
UIDE

Advertisement

Table of Contents
loading

Table of Contents