mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 04:29:29 +02:00
* exported __FD*
+ __FD* inlined git-svn-id: trunk@773 -
This commit is contained in:
parent
614b06c3d4
commit
6ffce79785
@ -1,4 +1,5 @@
|
||||
{$mode objfpc}
|
||||
{$inline on}
|
||||
{$h+}
|
||||
unit libc;
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
|
||||
Function __FDELT(d: longint): Integer;
|
||||
Function __FDELT(d: longint): Integer;inline;
|
||||
|
||||
begin
|
||||
Result:=d div __NFDBITS;
|
||||
end;
|
||||
|
||||
|
||||
Function __FDMASK(d: longint): __fd_mask;
|
||||
Function __FDMASK(d: longint): __fd_mask;inline;
|
||||
begin
|
||||
Result:=1 shl (d mod __NFDBITS);
|
||||
end;
|
||||
|
@ -12,7 +12,9 @@ Type
|
||||
|
||||
const
|
||||
NFDBITS = __NFDBITS;
|
||||
|
||||
|
||||
Function __FDELT(d: longint): Integer;inline;
|
||||
Function __FDMASK(d: longint): __fd_mask;inline;
|
||||
procedure FD_ZERO(var fdset: _fd_set);
|
||||
procedure FD_SET(fd: longint; var fdset: _fd_Set);
|
||||
procedure FD_CLR(fd: longint; var fdset: _fd_set);
|
||||
|
Loading…
Reference in New Issue
Block a user