fsys-wrapper.lisp 766 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. (in-package :hurd-translator)
  2. ;; All the fsys routines.
  3. (defcenum fsys-routine-code
  4. :FSYS-STARTUP
  5. :FSYS-GOAWAY
  6. :FSYS-GETROOT
  7. :FSYS-GETFILE
  8. :FSYS-SYNCFS
  9. :FSYS-SET-OPTIONS
  10. :FSYS-GETPRIV
  11. :FSYS-INIT
  12. :FSYS-FORWARD
  13. :FSYS-GET-OPTIONS)
  14. (defcfun ("set_fsys_routine" %set-fsys-routine) :void
  15. (what fsys-routine-code)
  16. (fun :pointer))
  17. (defun set-fsys-routine (what fun)
  18. "Sets the 'what' routine as the function 'fun'."
  19. (declare (type symbol what))
  20. (%set-fsys-routine what fun))
  21. (defsetf fsys-routine set-fsys-routine)
  22. (defcfun ("get_fsys_info" %get-fsys-info) :void)
  23. (defcfun ("lisp_fsys_server" %lisp-fsys-server)
  24. :boolean
  25. (in :pointer)
  26. (out :pointer))
  27. (defun fsys-server (in out)
  28. "The FSYS server."
  29. (%lisp-fsys-server in out))