io-stat.lisp 349 B

12345678910111213
  1. (in-package :hurd-translator)
  2. (def-io-interface :io-stat ((io port)
  3. (stat-info stat-t))
  4. (with-lookup protid io
  5. (stat-copy stat-info (get-stat protid))
  6. (set-root stat-info
  7. (or (eq (get-node protid) (get-shadow-root protid))
  8. (eq (get-node protid) (root *translator*))))
  9. t))