fs-wrapper.lisp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. (in-package :hurd-translator)
  2. ;; All filesystem routines.
  3. (defcenum fs-routine-code
  4. :FILE-EXEC
  5. :FILE-CHOWN
  6. :FILE-CHAUTHOR
  7. :FILE-CHMOD
  8. :FILE-CHFLAGS
  9. :FILE-UTIMES
  10. :FILE-SET-SIZE
  11. :FILE-LOCK
  12. :FILE-LOCK-STAT
  13. :FILE-CHECK-ACCESS
  14. :FILE-NOTICE-CHANGES
  15. :FILE-GETCONTROL
  16. :FILE-STATFS
  17. :FILE-SYNC
  18. :FILE-SYNCFS
  19. :FILE-GET-STORAGE-INFO
  20. :FILE-GETLINKNODE
  21. :FILE-GETFH
  22. :DIR-LOOKUP
  23. :DIR-READDIR
  24. :DIR-MKDIR
  25. :DIR-RMDIR
  26. :DIR-UNLINK
  27. :DIR-LINK
  28. :DIR-RENAME
  29. :DIR-MKFILE
  30. :DIR-NOTICE-CHANGES
  31. :FILE-SET-TRANSLATOR
  32. :FILE-GET-TRANSLATOR
  33. :FILE-GET-TRANSLATOR-CNTL
  34. :FILE-GET-FS-OPTIONS
  35. :FILE-REPARENT)
  36. (defcfun ("set_fs_routine" %set-fs-routine) :void
  37. (what fs-routine-code)
  38. (fun :pointer))
  39. (defun set-fs-routine (what fun)
  40. "Sets 'what' routine as the function 'fun'."
  41. (declare (type symbol what))
  42. (%set-fs-routine what fun))
  43. (defsetf fs-routine set-fs-routine)
  44. (defcfun ("get_fs_info" %get-fs-info) :void)
  45. (defcfun ("lisp_fs_server" %lisp-fs-server)
  46. :boolean
  47. (in :pointer)
  48. (out :pointer))
  49. (defun fs-server (in out)
  50. "Filesystem server."
  51. (%lisp-fs-server in out))