pathconf.lisp 462 B

123456789101112131415161718
  1. (in-package :hurd)
  2. (defcfun ("io_pathconf" %io-pathconf)
  3. err
  4. (file port)
  5. (name pathconf-type)
  6. (value :pointer))
  7. (defun io-pathconf (file name)
  8. "Return a specific configuration file for 'file'. See common/pathconf.lisp for 'name' values."
  9. (declare (type fixnum file)
  10. (type keyword name))
  11. (with-foreign-pointer (value (foreign-type-size :int))
  12. (select-error (%io-pathconf file name value)
  13. (mem-ref value :int))))