io-pathconf.lisp 451 B

123456789101112131415161718
  1. (in-package :hurd-translator)
  2. (def-io-interface :io-pathconf ((io port)
  3. (what pathconf-type)
  4. (value :pointer))
  5. (with-lookup protid io
  6. (let ((result (pathconf *translator*
  7. (get-node protid)
  8. (get-user protid)
  9. what)))
  10. (cond
  11. ((null result) :invalid-argument)
  12. (t
  13. (setf (mem-ref value :int) result)
  14. t)))))