io.scm 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ;;; Ported from Scheme 48 1.9. See file COPYING for notices and license.
  2. ;;;
  3. ;;; Port Author: Andrew Whatson
  4. ;;;
  5. ;;; Original Authors: Richard Kelsey, Marcus Crestani
  6. ;;;
  7. ;;; scheme48-1.9.2/ps-compiler/prescheme/primop/io.scm
  8. (define-module (ps-compiler prescheme primop io)
  9. #:use-module (ps-compiler prescheme primop primop)
  10. #:use-module (ps-compiler prescheme type))
  11. ;;(define-scheme-primop cast-to-long)
  12. (define-scheme-primop stdin type/input-port)
  13. (define-scheme-primop stdout type/output-port)
  14. (define-scheme-primop stderr type/output-port)
  15. (define-nonsimple-scheme-primop read-char io)
  16. (define-nonsimple-scheme-primop peek-char io)
  17. (define-nonsimple-scheme-primop read-integer io)
  18. (define type/status type/integer)
  19. (define-nonsimple-scheme-primop write-char io)
  20. (define-scheme-primop write-string io type/status)
  21. (define-scheme-primop write-integer io type/status)
  22. (define-scheme-primop force-output io type/status)
  23. (define-nonsimple-scheme-primop open-input-file)
  24. (define-nonsimple-scheme-primop open-output-file)
  25. (define-scheme-primop close-input-port io type/status)
  26. (define-scheme-primop close-output-port io type/status)
  27. (define-scheme-primop abort io type/unit)
  28. (define-nonsimple-scheme-primop error io)
  29. (define-scheme-primop error-string type/string)
  30. (define-scheme-primop call-external-value io type/integer)
  31. (define-scheme-primop call-external-value-2 io type/integer)
  32. (define-nonsimple-scheme-primop read-block io)
  33. (define-scheme-primop write-block io type/status)