mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-07-10 14:08:09 +02:00

than a pointer. The interface still accepts a plain pointer for backwards compatibility. git-svn-id: trunk@9176 -
28 lines
1.0 KiB
PHP
28 lines
1.0 KiB
PHP
{
|
|
This file is part of the Free Pascal run time library.
|
|
Copyright (c) 2007 by the Free Pascal development team
|
|
|
|
This file should become an alternative to the syscalls in due time,
|
|
to import the base calls from libc.
|
|
Be very careful though. Kernel types and libc types are often not the
|
|
same on Linux.
|
|
|
|
See the file COPYING.FPC, included in this distribution,
|
|
for details about the copyright.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
***********************************************************************}
|
|
|
|
{$if defined(bsd) or defined(solaris)}
|
|
function real_FpIOCtl (Handle:cint;Ndx: TIOCtlRequest):cint; cdecl; varargs; external clib name 'ioctl';
|
|
|
|
function FpIOCtl (Handle:cint;Ndx: TIOCtlRequest;Data: Pointer):cint;
|
|
begin
|
|
FpIOCtl:=real_FpIOCtl(Handle, Ndx, Data);
|
|
end;
|
|
{$endif bsd or solaris}
|
|
|