sysconst.inc 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2000 by Michael Van Canneyt,
  5. member of the Free Pascal development team.
  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. Const
  13. { Things for LSEEK call }
  14. Seek_set = 0;
  15. Seek_Cur = 1;
  16. Seek_End = 2;
  17. { Things for OPEN call - after linux/fcntl.h }
  18. Open_Accmode = 3;
  19. Open_RdOnly = 0;
  20. Open_WrOnly = 1;
  21. Open_RdWr = 2;
  22. Open_Creat = 1 shl 6;
  23. Open_Excl = 2 shl 6;
  24. Open_NoCtty = 4 shl 6;
  25. Open_Trunc = 1 shl 9;
  26. Open_Append = 2 shl 9;
  27. Open_NonBlock = 4 shl 9;
  28. Open_NDelay = Open_NonBlock;
  29. Open_Sync = 1 shl 12;
  30. { The waitpid uses the following options:}
  31. Wait_NoHang = 1;
  32. Wait_UnTraced = 2;
  33. Wait_Any = -1;
  34. Wait_MyPGRP = 0;
  35. { Constants to check stat.mode }
  36. STAT_IFMT = $f000; {00170000}
  37. STAT_IFSOCK = $c000; {0140000}
  38. STAT_IFLNK = $a000; {0120000}
  39. STAT_IFREG = $8000; {0100000}
  40. STAT_IFBLK = $6000; {0060000}
  41. STAT_IFDIR = $4000; {0040000}
  42. STAT_IFCHR = $2000; {0020000}
  43. STAT_IFIFO = $1000; {0010000}
  44. STAT_ISUID = $0800; {0004000}
  45. STAT_ISGID = $0400; {0002000}
  46. STAT_ISVTX = $0200; {0001000}
  47. { Constants to check permissions }
  48. STAT_IRWXO = $7;
  49. STAT_IROTH = $4;
  50. STAT_IWOTH = $2;
  51. STAT_IXOTH = $1;
  52. STAT_IRWXG = STAT_IRWXO shl 3;
  53. STAT_IRGRP = STAT_IROTH shl 3;
  54. STAT_IWGRP = STAT_IWOTH shl 3;
  55. STAT_IXGRP = STAT_IXOTH shl 3;
  56. STAT_IRWXU = STAT_IRWXO shl 6;
  57. STAT_IRUSR = STAT_IROTH shl 6;
  58. STAT_IWUSR = STAT_IWOTH shl 6;
  59. STAT_IXUSR = STAT_IXOTH shl 6;
  60. { Constants to test the type of filesystem }
  61. fs_old_ext2 = $ef51;
  62. fs_ext2 = $ef53;
  63. fs_ext = $137d;
  64. fs_iso = $9660;
  65. fs_minix = $137f;
  66. fs_minix_30 = $138f;
  67. fs_minux_V2 = $2468;
  68. fs_msdos = $4d44;
  69. fs_nfs = $6969;
  70. fs_proc = $9fa0;
  71. fs_xia = $012FD16D;
  72. {
  73. $Log$
  74. Revision 1.5 2000-02-09 16:59:32 peter
  75. * truncated log
  76. Revision 1.4 2000/01/07 16:41:41 daniel
  77. * copyright 2000
  78. Revision 1.3 2000/01/07 16:32:28 daniel
  79. * copyright 2000 added
  80. }