functions.lisp 240 B

12345678910
  1. (define (port-valid? p)
  2. "Checks if port code is a valid port."
  3. ;; CL-Hurd checks whether p is a number,
  4. ;; and not whether it is an integer,
  5. ;; but I doubt the Hurd has fractional ports.
  6. (and (exact-integer? p)
  7. (> p 0)))