paths.lisp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. (in-package :hurd)
  2. (defun %concat-downcase (path str)
  3. "Concatenates path and str and then returns that downcased."
  4. (string-downcase (concatenate-string path str)))
  5. (defconstant +servers+ "/servers/" "Servers path.")
  6. (defmacro %define-server-path (name str)
  7. "Defines a new server path."
  8. `(defconstant ,name
  9. (%concat-downcase +servers+ ,str)))
  10. (%define-server-path +servers-crash+ "crash")
  11. (%define-server-path +servers-exec+ "exec")
  12. (%define-server-path +servers-proc+ "proc")
  13. (%define-server-path +servers-password "password")
  14. (%define-server-path +servers-socket "socket")
  15. (defconstant +hurd+ "/hurd/" "Hurd path.")
  16. (defmacro %define-hurd-path (name str)
  17. "Defines a new hurd path."
  18. `(defconstant ,name
  19. (%concat-downcase +hurd+ ,str)))
  20. (%define-hurd-path +hurd-init+ "init")
  21. (%define-hurd-path +hurd-proc+ "proc")
  22. (%define-hurd-path +hurd-auth+ "auth")
  23. (%define-hurd-path +hurd-symlink+ "symlink")
  24. (%define-hurd-path +hurd-chrdev+ "chrdev")
  25. (%define-hurd-path +hurd-blkdev+ "blkdev")
  26. (%define-hurd-path +hurd-fifo+ "fifo")
  27. (%define-hurd-path +hurd-ifsock+ "ifsock")