common.scm 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. (define-module (common)
  2. #:re-export (getpid getppid)
  3. #:export ((strerror . error->string)
  4. +minus-one-ll+
  5. +minus-one+
  6. largest-representable-number
  7. num-bits
  8. err
  9. unrecognized-error-code
  10. fs-type
  11. translate-foreign-list
  12. with-gensyms
  13. select-error
  14. flag-is?
  15. enable-flags
  16. disable-flags
  17. only-flags
  18. free-memory-list
  19. mode-t
  20. mode
  21. stat
  22. make-stat
  23. stat-t
  24. st-type
  25. st-fstype
  26. st-fsid
  27. st-ino
  28. st-gen
  29. st-rdev
  30. st-mode
  31. st-nlink
  32. st-uid
  33. st-gid
  34. st-size
  35. st-atime
  36. st-mtime
  37. st-ctime
  38. st-blksize
  39. st-blocks
  40. st-author
  41. st-flags
  42. set-trans
  43. set-type
  44. set-vtx
  45. stat-get
  46. open-flags
  47. with-cleanup
  48. has-perms?
  49. set-perms!
  50. set-perms-if!
  51. clear-perms!
  52. copy-perms
  53. is-dir?
  54. is-reg?
  55. is-lnk?
  56. is-chr?
  57. is-blk?
  58. is-sock?
  59. is-fifo?
  60. is-useunk?
  61. is-vtx?
  62. has-passive-trans?
  63. has-active-trans?
  64. is-fs-root?
  65. is-mmap?
  66. is-nocache?
  67. is-useunk?
  68. set-uid!
  69. set-gid!
  70. set-mmap!
  71. set-nocache!
  72. set-useunk!
  73. set-active-trans!
  74. set-passive-trans!
  75. set-root!
  76. set-types!
  77. memcpy
  78. stat-copy
  79. open-modes
  80. set-spare!
  81. set-owner!
  82. set-group!
  83. set-others!
  84. set-unknown!
  85. gid-t
  86. +gid-t-size+
  87. uid-t
  88. +uid-t-size+
  89. valid-id?
  90. split-path
  91. join-path
  92. pathconf-type
  93. dirent-type
  94. dirent-name
  95. dirent-size
  96. off-t
  97. loff-t
  98. ino-t
  99. pid-t
  100. get-type
  101. statfs-t
  102. make-statfs
  103. statfs-get
  104. statfs-copy
  105. statfs-struct
  106. statfs
  107. f-type
  108. f-bsize
  109. f-bfree
  110. f-bavail
  111. f-files
  112. f-ffree
  113. f-namelen
  114. f-favail
  115. f-frsize
  116. f-flags
  117. seek-type
  118. select-type
  119. foreign-string-zero-separated-to-list
  120. is-uid?
  121. is-gid?
  122. device
  123. device-major
  124. device-minor
  125. <device-id>
  126. with-stream
  127. concatenate-string
  128. exit
  129. list-to-foreign-string-zero-separated
  130. string-list-len
  131. sum-list
  132. lock-flags
  133. make-mode
  134. make-mode-clone
  135. time-value-t
  136. time-value
  137. make-time-value
  138. +now-time-value+
  139. make-dirent
  140. write-dirent
  141. read-dirent
  142. time-value-equal?
  143. time-value-newer?
  144. time-value-seconds
  145. time-value-microseconds
  146. remove-declare
  147. stat-eq
  148. load-hurd-common-libraries)
  149. #:re-export (getpid getppid
  150. getuid getgid
  151. geteuid getegid)
  152. #:use-module (oop goops)
  153. #:use-module (rnrs arithmetic fixnums)
  154. #:use-module (rnrs base)
  155. #:use-module (srfi srfi-1)
  156. #:use-module (hurd-cl-compat))
  157. (read-set! keywords 'prefix)
  158. (define-syntax-rule (include-from-paths x ...)
  159. (begin (include-from-path x)
  160. ...))
  161. (include-from-paths
  162. "common/constants.lisp"
  163. "common/device-id.lisp"
  164. "common/dirent.lisp"
  165. "common/error.lisp"
  166. "common/fs-type.lisp"
  167. "common/ids.lisp"
  168. "common/lock.lisp"
  169. "common/maptime.lisp"
  170. "common/memcmp.lisp"
  171. "common/memcpy.lisp"
  172. "common/mode.lisp"
  173. "common/open-flags.lisp"
  174. "common/pathconf.lisp"
  175. "common/seek.lisp"
  176. "common/select.lisp"
  177. "common/statfs.lisp"
  178. "common/stat.lisp"
  179. "common/time-value.lisp"
  180. "common/types.lisp"
  181. "common/utils.lisp")