STAT.LST 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. Listing:
  2. 1 (* Release 3.10 *)
  3. 2 (*-------------------------------------------------------------------------*
  4. 3 * *
  5. 4 * STAT.DEF - Modula-2 interface to STAT.H *
  6. 5 * *
  7. 6 * COPYRIGHT (C) 1989..1992 Clarion Software Corporation. *
  8. 7 * All Rights Reserved *
  9. 8 * *
  10. 9 *--------------------------------------------------------------------------*)
  11. 10
  12. 11 (*# project("#set tsc='on'") *)
  13. 12 (*# call(o_a_size=>off, o_a_copy=>off, c_conv=>on, result_optional=>on) *)
  14. 13 (*# module(implementation=>off, init_code=>off) *)
  15. 14 (*# name(prefix=>c) *)
  16. 15
  17. 16
  18. 17 DEFINITION MODULE stat;
  19. 18
  20. 19 CONST
  21. 20 S_IFMT = 0170000; (* file type mask *)
  22. 21 S_IFDIR = 4000H; (* directory *)
  23. 22 S_IFCHR = 2000H; (* character device *)
  24. 23 S_IFREG = 8000H; (* regular file *)
  25. 24 S_IREAD = 100H; (* owner may read *)
  26. 25 S_IWRITE = 80H; (* owner may write *)
  27. 26 S_IEXEC = 40H; (* owner may execute <directory search> *)
  28. 27
  29. 28 TYPE
  30. 29 stat_t = RECORD
  31. 30 st_dev,
  32. 31 st_ino,
  33. 32 st_mode,
  34. 33 st_nlink: SHORTCARD;
  35. 34 st_uid,
  36. 35 st_gid: CARDINAL;
  37. 36 st_rdev: SHORTCARD;
  38. 37 st_size,
  39. 38 st_atime,
  40. 39 st_mtime,
  41. 40 st_ctime: LONGCARD;
  42. ***** ^ undeclared identifier
  43. 41 END;
  44. ***** ^ not supported yet
  45. 42
  46. 43 PROCEDURE fstat(_handle: CARDINAL; VAR _statbuf: stat_t): INTEGER;
  47. 44 PROCEDURE stat(_path: ARRAY OF CHAR; VAR _statbuf: stat_t): INTEGER;
  48. ***** ^ duplicate identifier
  49. ***** ^ not supported yet
  50. 45
  51. 46 END stat.
  52. ***** ^ not supported yet
  53. 5 errors