1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- {
- This file is part of the Free Component Library (FCL)
- Copyright (c) 1999-2002 by the Free Pascal development team
- libc functions unit for Nintendo Wii
- Copyright (c) 2011 by Francesco Lombardi
- 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.
- *****************************************************************************}
- function __errno: plongint; cdecl; export;
- begin
- end;
- function S_ISBLK(m: longint): boolean; inline;
- begin
- result := (m and _IFMT) = _IFBLK;
- end;
- function S_ISCHR(m: longint): boolean; inline;
- begin
- result := (m and _IFMT) = _IFCHR;
- end;
- function S_ISDIR(m: longint): boolean; inline;
- begin
- result := (m and _IFMT) = _IFDIR;
- end;
- function S_ISFIFO(m: longint): boolean; inline;
- begin
- result := (m and _IFMT) = _IFIFO;
- end;
- function S_ISREG(m: longint): boolean; inline;
- begin
- result := (m and _IFMT) = _IFREG;
- end;
- function S_ISLNK(m: longint): boolean; inline;
- begin
- result := (m and _IFMT) = _IFLNK;
- end;
- function S_ISSOCK(m: longint): boolean; inline;
- begin
- result := (m and _IFMT) = _IFSOCK;
- end;
|