libc.inc 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {
  2. This file is part of the Free Component Library (FCL)
  3. Copyright (c) 1999-2002 by the Free Pascal development team
  4. BIOS functions unit for Nintendo DS
  5. Copyright (c) 2006 by Francesco Lombardi
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. *****************************************************************************}
  12. function S_ISBLK(m: longint): boolean; inline;
  13. begin
  14. result := (m and _IFMT) = _IFBLK;
  15. end;
  16. function S_ISCHR(m: longint): boolean; inline;
  17. begin
  18. result := (m and _IFMT) = _IFCHR;
  19. end;
  20. function S_ISDIR(m: longint): boolean; inline;
  21. begin
  22. result := (m and _IFMT) = _IFDIR;
  23. end;
  24. function S_ISFIFO(m: longint): boolean; inline;
  25. begin
  26. result := (m and _IFMT) = _IFIFO;
  27. end;
  28. function S_ISREG(m: longint): boolean; inline;
  29. begin
  30. result := (m and _IFMT) = _IFREG;
  31. end;
  32. function S_ISLNK(m: longint): boolean; inline;
  33. begin
  34. result := (m and _IFMT) = _IFLNK;
  35. end;
  36. function S_ISSOCK(m: longint): boolean; inline;
  37. begin
  38. result := (m and _IFMT) = _IFSOCK;
  39. end;