summaryrefslogtreecommitdiff
path: root/rtl/nds/libc.inc
blob: 4e31a2a8882e849161c06c38bcdcec0f60e14745 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
    This file is part of the Free Component Library (FCL)
    Copyright (c) 1999-2002 by the Free Pascal development team

    BIOS functions unit for Nintendo DS
    Copyright (c) 2006 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 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;