mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 13:09:22 +02:00
* change sysctl name parameter type to pcint as per manpage. Param names already conform to manual page names, so not changed
mantis #31515 git-svn-id: trunk@35566 -
This commit is contained in:
parent
53c40371ff
commit
ec3aa1f56a
@ -81,11 +81,11 @@ TYPE CtlNameRec = Record
|
|||||||
//
|
//
|
||||||
|
|
||||||
{$ifdef FPC_USE_LIBC}
|
{$ifdef FPC_USE_LIBC}
|
||||||
function FPsysctl (Name: pchar; namelen:cuint; oldp:pointer;oldlenp:psize_t; newp:pointer;newlen:size_t):cint; cdecl; external name 'sysctl';
|
function FPsysctl (Name: pcint; namelen:cuint; oldp:pointer;oldlenp:psize_t; newp:pointer;newlen:size_t):cint; cdecl; external name 'sysctl';
|
||||||
function FPsysctlbyname (Name: pchar; oldp:pointer;oldlenp:psize_t; newp:pointer;newlen:size_t):cint; cdecl; external name 'sysctlbyname';
|
function FPsysctlbyname (Name: pchar; oldp:pointer;oldlenp:psize_t; newp:pointer;newlen:size_t):cint; cdecl; external name 'sysctlbyname';
|
||||||
function FPsysctlnametomib (Name: pchar;mibp:pcint;sizep:psize_t):cint; cdecl; external name 'sysctlnametomib';
|
function FPsysctlnametomib (Name: pchar;mibp:pcint;sizep:psize_t):cint; cdecl; external name 'sysctlnametomib';
|
||||||
{$else}
|
{$else}
|
||||||
function FPsysctl (Name: pchar; namelen:cuint; oldp:pointer;oldlenp:psize_t; newp:pointer;newlen:size_t):cint;
|
function FPsysctl (Name: pcint; namelen:cuint; oldp:pointer;oldlenp:psize_t; newp:pointer;newlen:size_t):cint;
|
||||||
function FPsysctlbyname (Name: pchar; oldp:pointer;oldlenp:psize_t; newp:pointer;newlen:size_t):cint;
|
function FPsysctlbyname (Name: pchar; oldp:pointer;oldlenp:psize_t; newp:pointer;newlen:size_t):cint;
|
||||||
function FPsysctlnametomib (Name: pchar; mibp:pcint;sizep:psize_t):cint;
|
function FPsysctlnametomib (Name: pchar; mibp:pcint;sizep:psize_t):cint;
|
||||||
{$endif}
|
{$endif}
|
||||||
@ -101,7 +101,7 @@ Uses Syscall;
|
|||||||
CONST syscall_nr___sysctl = 202;
|
CONST syscall_nr___sysctl = 202;
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
function FPsysctl (Name: pchar; namelen:cuint; oldp:pointer;oldlenp:psize_t; newp:pointer;newlen:size_t):cint;
|
function FPsysctl (Name: pcint; namelen:cuint; oldp:pointer;oldlenp:psize_t; newp:pointer;newlen:size_t):cint;
|
||||||
|
|
||||||
Begin
|
Begin
|
||||||
if (name[0] <> chr(CTL_USER)) Then
|
if (name[0] <> chr(CTL_USER)) Then
|
||||||
|
Loading…
Reference in New Issue
Block a user