diff options
author | Legolas <Legolas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2011-02-07 16:56:45 +0000 |
---|---|---|
committer | Legolas <Legolas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2011-02-07 16:56:45 +0000 |
commit | c0b5af2dd31403314f91c157d007bd3aeb2e0fe7 (patch) | |
tree | e55f90c1013b7011ddf5c464a95270e8aadf07b0 /rtl/wii/libc.inc | |
parent | 365916ca7d0fa2c3a83742f5dbafec800762ef45 (diff) | |
download | fpc-c0b5af2dd31403314f91c157d007bd3aeb2e0fe7.tar.gz |
+ Initial Wii support
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16888 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'rtl/wii/libc.inc')
-rw-r--r-- | rtl/wii/libc.inc | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/rtl/wii/libc.inc b/rtl/wii/libc.inc new file mode 100644 index 0000000000..354fe94536 --- /dev/null +++ b/rtl/wii/libc.inc @@ -0,0 +1,56 @@ +{ + 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; |