io-clear-some-openmodes.lisp 356 B

12345678910111213
  1. (in-package :hurd-translator)
  2. (def-io-interface :io-clear-some-openmodes ((port port)
  3. (old-flags open-flags))
  4. (with-lookup protid port
  5. (setf (flags (open-node protid))
  6. (disable-flags (flags (open-node protid))
  7. (only-flags old-flags
  8. +honored-open-modes+)))
  9. t))