* exported __FD*

+ __FD* inlined

git-svn-id: trunk@773 -
This commit is contained in:
florian 2005-07-30 21:14:25 +00:00
parent 614b06c3d4
commit 6ffce79785
3 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,5 @@
{$mode objfpc} {$mode objfpc}
{$inline on}
{$h+} {$h+}
unit libc; unit libc;

View File

@ -1,12 +1,12 @@
Function __FDELT(d: longint): Integer; Function __FDELT(d: longint): Integer;inline;
begin begin
Result:=d div __NFDBITS; Result:=d div __NFDBITS;
end; end;
Function __FDMASK(d: longint): __fd_mask; Function __FDMASK(d: longint): __fd_mask;inline;
begin begin
Result:=1 shl (d mod __NFDBITS); Result:=1 shl (d mod __NFDBITS);
end; end;

View File

@ -12,7 +12,9 @@ Type
const const
NFDBITS = __NFDBITS; NFDBITS = __NFDBITS;
Function __FDELT(d: longint): Integer;inline;
Function __FDMASK(d: longint): __fd_mask;inline;
procedure FD_ZERO(var fdset: _fd_set); procedure FD_ZERO(var fdset: _fd_set);
procedure FD_SET(fd: longint; var fdset: _fd_Set); procedure FD_SET(fd: longint; var fdset: _fd_Set);
procedure FD_CLR(fd: longint; var fdset: _fd_set); procedure FD_CLR(fd: longint; var fdset: _fd_set);