file-lock-stat.lisp 403 B

12345678910111213
  1. (in-package :hurd-translator)
  2. (def-fs-interface :file-lock-stat ((file port)
  3. (status :pointer)
  4. (otherstatus :pointer))
  5. (with-lookup protid file
  6. (let ((status-flags (lock-status (open-node protid))))
  7. (setf (mem-ref status 'lock-flags) status-flags
  8. (mem-ref otherstatus 'lock-flags) status-flags)
  9. t)))