port-right.scm 754 B

1234567891011121314151617181920212223
  1. (define-module (mach port-right)
  2. #:export (ffi:port-right-type right:send right:receive right:send-once
  3. right:port-set right:dead-name
  4. right:number %wrap-port-right-type
  5. %unwrap-port-right-type)
  6. #:use-module (mach ffi))
  7. ;;
  8. ;; The port right type. Represents different kinds of port rights.
  9. ;; This used to be callend 'port-right', but this is just a number and
  10. ;; not the actual capability.
  11. ;;
  12. ;; XXX is the underlying type correct?
  13. (define-ffi-enum (ffi:port-right-type ffi:int)
  14. (%wrap-port-right-type %unwrap-port-right-type)
  15. (right:send 0)
  16. (right:receive 1)
  17. (right:send-once 2)
  18. (right:port-set 3)
  19. (right:dead-name 4)
  20. (right:number 5))