1999-09-14 09:32:05 -04:00
|
|
|
;;; The packages that scsh uses/defines.
|
|
|
|
;;; Copyright (c) 1994 by Olin Shivers.
|
|
|
|
|
|
|
|
;;; Note: field-reader package (fr.scm) and here docs use READ-LINE.
|
|
|
|
;;; It is defined in rdelim.scm.
|
|
|
|
|
|
|
|
;;; You link up a scsh package by defining a package named OS-DEPENDENT
|
|
|
|
;;; that satisfies the interfaces for packages
|
|
|
|
;;; buffered-io-flags
|
|
|
|
;;; posix-fdflags
|
|
|
|
;;; posix-errno
|
|
|
|
;;; posix-signals
|
|
|
|
;;; Anything else it provides should be specified in an interface called
|
|
|
|
;;; os-extras-interface. See the scsh structure below.
|
|
|
|
;;; Then the scsh structure can be instantiated.
|
|
|
|
;;;
|
|
|
|
;;; The architecture directories, like next/ and irix/ and so forth,
|
|
|
|
;;; provide packages that can serve as the os-dependent package. E.g.,
|
|
|
|
;;; the next-defs package, defined in next/packages.
|
|
|
|
;;;
|
|
|
|
;;; This whole mechanism would be better solved with a functor.
|
|
|
|
;;; -Olin
|
|
|
|
|
|
|
|
|
|
|
|
;;; The LET-OPT package for optional argument parsing & defaulting
|
|
|
|
;;; is found in the let-opt.scm file.
|
|
|
|
|
|
|
|
|
|
|
|
(define-structure error-package (export error warn)
|
1999-09-23 13:46:46 -04:00
|
|
|
(open signals)
|
1999-10-08 14:41:05 -04:00
|
|
|
; (optimize auto-integrate)
|
1999-09-23 13:46:46 -04:00
|
|
|
)
|
1999-09-14 09:32:05 -04:00
|
|
|
|
|
|
|
|
|
|
|
(define-structure scsh-utilities scsh-utilities-interface
|
1999-09-23 13:46:46 -04:00
|
|
|
(open bitwise error-package loopholes let-opt scheme)
|
|
|
|
(files utilities)
|
1999-10-08 14:41:05 -04:00
|
|
|
; (optimize auto-integrate)
|
1999-09-23 13:46:46 -04:00
|
|
|
)
|
1999-09-14 09:32:05 -04:00
|
|
|
|
|
|
|
|
|
|
|
;;; This guy goes into the FOR-SYNTAX part of scsh's syntax exports.
|
|
|
|
(define-structure scsh-syntax-helpers
|
|
|
|
(export transcribe-extended-process-form)
|
|
|
|
(open receiving ; receive
|
|
|
|
error-package
|
1999-09-15 20:20:37 -04:00
|
|
|
names ; generated? by JMG
|
1999-09-14 09:32:05 -04:00
|
|
|
scsh-utilities ; check-arg
|
|
|
|
scheme
|
|
|
|
)
|
1999-09-23 13:46:46 -04:00
|
|
|
(files syntax-helpers)
|
1999-10-08 14:41:05 -04:00
|
|
|
; (optimize auto-integrate)
|
1999-09-23 13:46:46 -04:00
|
|
|
)
|
1999-09-14 09:32:05 -04:00
|
|
|
|
|
|
|
|
|
|
|
;;; The bufpol/{block, line, none} values
|
|
|
|
(define-structure buffered-io-flags buffered-io-flags-interface
|
|
|
|
(open defenum-package scheme)
|
1999-09-23 13:46:46 -04:00
|
|
|
(files (machine bufpol))
|
1999-10-08 14:41:05 -04:00
|
|
|
; (optimize auto-integrate)
|
1999-09-23 13:46:46 -04:00
|
|
|
)
|
1999-09-14 09:32:05 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(define-structures ((tty-flags tty-flags-interface)
|
|
|
|
(scsh-internal-tty-flags scsh-internal-tty-flags-interface))
|
|
|
|
(open scheme ascii bitwise)
|
1999-09-23 13:46:46 -04:00
|
|
|
(files (machine tty-consts))
|
1999-10-08 14:41:05 -04:00
|
|
|
; (optimize auto-integrate)
|
1999-09-23 13:46:46 -04:00
|
|
|
)
|
1999-09-14 09:32:05 -04:00
|
|
|
|
|
|
|
|
|
|
|
(define-structure scsh-version scsh-version-interface
|
|
|
|
(open scheme)
|
|
|
|
(files scsh-version))
|
|
|
|
|
|
|
|
(define-structure partial-s48-ports
|
|
|
|
(export current-input-port current-output-port
|
|
|
|
newline
|
|
|
|
current-error-port
|
|
|
|
|
|
|
|
$current-input-port
|
|
|
|
$current-output-port
|
1999-10-08 14:41:05 -04:00
|
|
|
$current-error-port
|
|
|
|
$current-noise-port)
|
1999-09-14 09:32:05 -04:00
|
|
|
(open ports i/o))
|
|
|
|
|
|
|
|
;;; The scsh-level-0 package is for implementation convenience.
|
|
|
|
;;; The scsh startup and top-level modules need access to scsh
|
|
|
|
;;; procedures, but they export procedures that are themselves
|
|
|
|
;;; part of scsh. So scsh-level-0 is the core scsh stuff, which is
|
|
|
|
;;; imported by these two modules. These modules all collectively
|
|
|
|
;;; export the whole scsh enchilada.
|
|
|
|
|
|
|
|
(define-structures
|
|
|
|
((scsh-level-0
|
|
|
|
(compound-interface posix-fdflags-interface
|
|
|
|
posix-errno-interface
|
|
|
|
posix-signals-interface
|
|
|
|
sockets-network-interface ; Standard Network Interface
|
|
|
|
os-extras-interface ; Extra stuff from OS.
|
|
|
|
scsh-delimited-readers-interface
|
|
|
|
scsh-errors-interface
|
|
|
|
scsh-io-interface
|
|
|
|
scsh-file-interface
|
|
|
|
scsh-process-interface
|
|
|
|
scsh-process-state-interface
|
|
|
|
scsh-user/group-db-interface
|
|
|
|
scsh-command-line-interface
|
|
|
|
scsh-signals-interface
|
|
|
|
scsh-environment-interface
|
|
|
|
scsh-home-interface
|
|
|
|
scsh-string-interface
|
|
|
|
scsh-file-names-interface
|
|
|
|
scsh-misc-interface
|
|
|
|
scsh-high-level-process-interface
|
|
|
|
scsh-time-interface ; new in 0.2
|
|
|
|
scsh-sockets-interface ; new in 0.3
|
|
|
|
tty-interface ; new in 0.4
|
|
|
|
scsh-version-interface
|
|
|
|
char-set-interface
|
|
|
|
signal-handler-interface
|
|
|
|
;; This stuff would probably be better off kept
|
|
|
|
;; in separate modules, but we'll toss it in for now.
|
|
|
|
(interface-of ascii) ; char<->ascii
|
|
|
|
string-ports-interface
|
2001-01-02 09:43:27 -05:00
|
|
|
syslog-interface
|
1999-09-14 09:32:05 -04:00
|
|
|
))
|
|
|
|
(scsh-level-0-internals (export set-command-line-args!
|
|
|
|
init-scsh-hindbrain
|
|
|
|
init-scsh-vars))
|
1999-09-23 13:46:46 -04:00
|
|
|
; (scsh-regexp-package scsh-regexp-interface)
|
|
|
|
)
|
|
|
|
(for-syntax (open scsh-syntax-helpers scheme))
|
2001-04-09 15:34:48 -04:00
|
|
|
(access sigevents scsh-events threads)
|
1999-09-23 13:46:46 -04:00
|
|
|
(open enumerated
|
2001-01-02 09:43:27 -05:00
|
|
|
defenum-package
|
1999-09-22 20:43:13 -04:00
|
|
|
external-calls ;JMG new FFI
|
1999-09-14 09:32:05 -04:00
|
|
|
structure-refs
|
|
|
|
cig-aux
|
|
|
|
receiving
|
|
|
|
defrec-package
|
2001-03-23 07:45:31 -05:00
|
|
|
define-record-types
|
1999-09-14 09:32:05 -04:00
|
|
|
define-foreign-syntax
|
|
|
|
formats
|
|
|
|
os-dependent ; OS dependent stuff
|
|
|
|
buffered-io-flags ; stdio dependent
|
|
|
|
ascii
|
|
|
|
records
|
|
|
|
extended-ports
|
|
|
|
partial-s48-ports
|
1999-09-23 19:02:54 -04:00
|
|
|
ports
|
1999-09-14 09:32:05 -04:00
|
|
|
build
|
|
|
|
bigbit
|
|
|
|
bitwise
|
|
|
|
signals
|
|
|
|
conditions
|
|
|
|
scsh-utilities
|
|
|
|
handle
|
|
|
|
fluids
|
|
|
|
weak
|
|
|
|
|
2001-03-23 07:45:31 -05:00
|
|
|
scsh-char-set-low-level-lib ; rdelim.scm needs it.
|
1999-09-14 09:32:05 -04:00
|
|
|
; scsh-regexp-package
|
|
|
|
; scsh-regexp-internals
|
2001-03-23 07:45:31 -05:00
|
|
|
char-set-lib
|
1999-09-14 09:32:05 -04:00
|
|
|
scsh-version
|
|
|
|
tty-flags
|
|
|
|
scsh-internal-tty-flags ; Not exported
|
|
|
|
let-opt ; optional-arg parsing & defaulting
|
|
|
|
|
1999-09-23 13:46:46 -04:00
|
|
|
architecture ; Was this by JMG ??
|
1999-09-14 09:32:05 -04:00
|
|
|
|
1999-09-23 13:46:46 -04:00
|
|
|
re-level-0
|
|
|
|
rx-syntax
|
|
|
|
|
|
|
|
string-lib
|
|
|
|
|
2001-03-11 13:58:54 -05:00
|
|
|
fluids ; For exec-path-list
|
|
|
|
loopholes ; For my bogus CALL-TERMINALLY implementation.
|
1999-09-23 13:46:46 -04:00
|
|
|
|
1999-09-14 09:32:05 -04:00
|
|
|
scheme
|
1999-09-22 20:43:13 -04:00
|
|
|
|
1999-11-04 15:48:47 -05:00
|
|
|
low-interrupt ; for sighandler and procobj
|
1999-09-23 13:46:46 -04:00
|
|
|
i/o ; all these seem to be for scsh-0.6 JMG
|
1999-09-14 09:32:05 -04:00
|
|
|
i/o-internal
|
|
|
|
channels channel-i/o
|
1999-09-22 20:43:13 -04:00
|
|
|
low-channels
|
1999-11-04 15:48:47 -05:00
|
|
|
byte-vectors
|
2000-06-28 06:30:59 -04:00
|
|
|
threads locks placeholders
|
1999-09-14 09:32:05 -04:00
|
|
|
primitives
|
|
|
|
escapes
|
|
|
|
command-levels
|
|
|
|
features
|
1999-11-04 15:48:47 -05:00
|
|
|
general-tables
|
|
|
|
simple-syntax)
|
1999-09-14 09:32:05 -04:00
|
|
|
(for-syntax (open scsh-syntax-helpers scheme))
|
1999-11-04 15:48:47 -05:00
|
|
|
(access interrupts
|
|
|
|
command-processor
|
1999-09-14 09:32:05 -04:00
|
|
|
escapes
|
|
|
|
i/o ; S48's force-output
|
2000-07-27 09:38:35 -04:00
|
|
|
exceptions ; signal-exception
|
1999-09-14 09:32:05 -04:00
|
|
|
formats
|
2000-06-28 06:30:59 -04:00
|
|
|
threads-internal
|
1999-09-14 09:32:05 -04:00
|
|
|
records ; I don't think this is necessary. !!!
|
|
|
|
scheme) ; For accessing the normal I/O operators.
|
|
|
|
(files syntax
|
|
|
|
syscalls
|
|
|
|
select
|
|
|
|
fname
|
|
|
|
stringcoll
|
|
|
|
scsh-condition
|
|
|
|
rw
|
|
|
|
newports
|
|
|
|
fdports
|
|
|
|
procobj ; New in release 0.4.
|
|
|
|
(machine waitcodes) ; OS dependent code.
|
|
|
|
filesys
|
|
|
|
fileinfo
|
|
|
|
glob
|
1999-09-23 13:46:46 -04:00
|
|
|
; filemtch
|
1999-09-14 09:32:05 -04:00
|
|
|
time ; New in release 0.2.
|
|
|
|
(machine time_dep)
|
|
|
|
network ; New in release 0.3.
|
|
|
|
endian ; New in release 0.4.
|
|
|
|
flock ; New in release 0.4.
|
|
|
|
tty ; New in release 0.4.
|
|
|
|
pty ; New in release 0.4.
|
|
|
|
sighandlers ; New in release 0.5.
|
|
|
|
scsh
|
1999-09-23 13:46:46 -04:00
|
|
|
; re
|
1999-10-08 14:41:05 -04:00
|
|
|
rdelim
|
1999-09-23 13:46:46 -04:00
|
|
|
)
|
|
|
|
; (optimize auto-integrate)
|
|
|
|
)
|
1999-09-14 09:32:05 -04:00
|
|
|
|
|
|
|
(define-structure defrec-package (export (define-record :syntax))
|
|
|
|
(open records scheme)
|
|
|
|
(for-syntax (open scheme error-package receiving))
|
1999-09-23 13:46:46 -04:00
|
|
|
(files defrec)
|
1999-10-08 14:41:05 -04:00
|
|
|
; (optimize auto-integrate)
|
1999-09-23 13:46:46 -04:00
|
|
|
)
|
1999-09-14 09:32:05 -04:00
|
|
|
|
|
|
|
(define-structure defenum-package (export (define-enum-constant :syntax)
|
2001-01-02 09:43:27 -05:00
|
|
|
(define-enum-constants :syntax)
|
|
|
|
(define-enum-constants-from-zero
|
|
|
|
:syntax))
|
1999-09-14 09:32:05 -04:00
|
|
|
(open scheme)
|
1999-09-23 13:46:46 -04:00
|
|
|
(files enumconst)
|
1999-10-08 14:41:05 -04:00
|
|
|
; (optimize auto-integrate)
|
1999-09-23 13:46:46 -04:00
|
|
|
)
|
1999-09-14 09:32:05 -04:00
|
|
|
|
|
|
|
;;; This code opens so many modules of gruesome, low-level S48 internals
|
|
|
|
;;; that these two modules are segregated into separate packages, each
|
|
|
|
;;; exporting just two definitions.
|
|
|
|
|
1999-10-08 14:41:05 -04:00
|
|
|
(define-structure scsh-startup-package (export dump-scsh-program
|
|
|
|
dump-scsh
|
|
|
|
make-scsh-starter
|
|
|
|
scsh-stand-alone-resumer)
|
1999-09-14 09:32:05 -04:00
|
|
|
(open scsh-level-0-internals ; init-scsh-* set-command-line-args!
|
|
|
|
scsh-level-0 ; error-output-port command-line-arguments
|
|
|
|
scsh-top-package ; parse-switches-and-execute
|
|
|
|
handle ; with-handler
|
|
|
|
command-levels ; user-context
|
|
|
|
write-images ; write-image
|
|
|
|
build-internals ; simple-condition-handler
|
|
|
|
low-level ; flush-the-symbol-table!
|
|
|
|
command-processor ; command-output
|
1999-10-08 14:41:05 -04:00
|
|
|
package-commands-internal
|
1999-09-14 09:32:05 -04:00
|
|
|
filenames ; translate
|
|
|
|
usual-resumer ; usual-resumer
|
1999-09-22 20:43:13 -04:00
|
|
|
fluids-internal ; JMG: get-dynamic-env
|
1999-09-14 09:32:05 -04:00
|
|
|
scsh-utilities
|
|
|
|
interrupts
|
2000-08-28 08:51:22 -04:00
|
|
|
low-interrupt
|
2001-01-09 10:52:52 -05:00
|
|
|
scsh-events
|
1999-09-14 09:32:05 -04:00
|
|
|
primitives
|
|
|
|
scheme)
|
|
|
|
(files startup))
|
|
|
|
|
1999-10-08 14:41:05 -04:00
|
|
|
(define-structure scsh-top-package (export parse-switches-and-execute
|
|
|
|
repl )
|
1999-09-14 09:32:05 -04:00
|
|
|
(open command-processor
|
|
|
|
command-levels ; with-new-session
|
|
|
|
ensures-loaded
|
|
|
|
environments
|
|
|
|
error-package
|
|
|
|
evaluation
|
|
|
|
extended-ports
|
|
|
|
interfaces
|
2001-01-09 10:52:52 -05:00
|
|
|
scsh-events
|
1999-11-04 15:48:47 -05:00
|
|
|
low-interrupt
|
1999-09-22 20:43:13 -04:00
|
|
|
fluids-internal ; JMG: get-dynamic-env
|
|
|
|
handle ; JMG: with-handler
|
1999-10-08 14:41:05 -04:00
|
|
|
; package-commands
|
1999-09-14 09:32:05 -04:00
|
|
|
interrupts
|
|
|
|
i/o
|
|
|
|
package-commands-internal
|
|
|
|
package-mutation
|
|
|
|
packages
|
|
|
|
receiving
|
|
|
|
scsh-version
|
|
|
|
scsh-level-0 ; with-current-input-port error-output-port
|
|
|
|
; with-current-output-port exit
|
|
|
|
scsh-level-0-internals ; set-command-line-args! init-scsh-vars
|
2000-08-28 08:51:22 -04:00
|
|
|
threads
|
1999-09-14 09:32:05 -04:00
|
|
|
scheme)
|
|
|
|
(files top meta-arg))
|
|
|
|
|
|
|
|
|
|
|
|
(define-structure field-reader-package scsh-field-reader-interface
|
2001-03-23 07:45:31 -05:00
|
|
|
(open receiving ; receive
|
|
|
|
scsh-utilities ; nth
|
1999-09-14 09:32:05 -04:00
|
|
|
error-package ; error
|
2001-03-23 07:45:31 -05:00
|
|
|
string-lib ; string-join for obsolete join-strings
|
1999-09-14 09:32:05 -04:00
|
|
|
scsh-level-0 ; delimited readers
|
1999-09-23 13:46:46 -04:00
|
|
|
; scsh-regexp-package
|
|
|
|
re-exports
|
1999-09-14 09:32:05 -04:00
|
|
|
let-opt ; optional-arg parsing & defaulting
|
|
|
|
scheme
|
|
|
|
)
|
2001-03-23 07:45:31 -05:00
|
|
|
(files fr)
|
|
|
|
;; Handle a little bit of backwards compatibility.
|
|
|
|
(begin (define join-strings (deprecated-proc string-join 'join-strings
|
|
|
|
"Use SRFI-13 STRING-JOIN.")))
|
|
|
|
)
|
1999-09-14 09:32:05 -04:00
|
|
|
|
|
|
|
|
|
|
|
(define-structures
|
1999-09-23 13:46:46 -04:00
|
|
|
((awk-expander-package (export expand-awk expand-awk/obsolete))
|
1999-09-14 09:32:05 -04:00
|
|
|
(awk-support-package (export next-range next-:range
|
|
|
|
next-range: next-:range:)))
|
|
|
|
(open receiving ; receive
|
|
|
|
scsh-utilities
|
|
|
|
error-package ; error
|
1999-09-23 13:46:46 -04:00
|
|
|
; scsh-regexp-package
|
|
|
|
; re-exports
|
|
|
|
sre-syntax-tools
|
1999-09-14 09:32:05 -04:00
|
|
|
scheme
|
|
|
|
)
|
1999-09-24 19:54:22 -04:00
|
|
|
(files awk)
|
1999-10-08 14:41:05 -04:00
|
|
|
; (optimize auto-integrate)
|
|
|
|
)
|
1999-09-14 09:32:05 -04:00
|
|
|
|
|
|
|
|
|
|
|
(define-structure awk-package awk-interface
|
1999-09-23 13:46:46 -04:00
|
|
|
(open awk-support-package ; These packages provide all the stuff
|
|
|
|
re-exports ; that appears in the code produced by
|
|
|
|
receiving ; an awk expansion.
|
|
|
|
scheme)
|
1999-09-14 09:32:05 -04:00
|
|
|
(for-syntax (open awk-expander-package scheme))
|
1999-09-23 13:46:46 -04:00
|
|
|
(begin (define-syntax awk expand-awk)
|
|
|
|
(define-syntax awk/posix-string expand-awk/obsolete)))
|
1999-09-14 09:32:05 -04:00
|
|
|
|
1999-09-23 13:46:46 -04:00
|
|
|
;;; Exports an AWK macro that is just AWK/POSIX-STRING.
|
|
|
|
(define-structure obsolete-awk-package (export (awk :syntax))
|
|
|
|
(open awk-package)
|
|
|
|
(begin (define-syntax awk
|
|
|
|
(syntax-rules () ((awk body ...) (awk/posix-string body ....))))))
|
1999-09-14 09:32:05 -04:00
|
|
|
|
|
|
|
(define-structure scsh
|
|
|
|
(compound-interface (interface-of scsh-level-0)
|
|
|
|
(interface-of scsh-startup-package)
|
1999-09-23 13:46:46 -04:00
|
|
|
; scsh-regexp-interface
|
|
|
|
re-exports-interface
|
|
|
|
re-old-funs-interface
|
|
|
|
scsh-field-reader-interface ; new in 0.3
|
1999-09-14 09:32:05 -04:00
|
|
|
; scsh-dbm-interface
|
|
|
|
(export repl)
|
1999-09-23 13:46:46 -04:00
|
|
|
awk-interface
|
2001-03-23 07:45:31 -05:00
|
|
|
char-set-predicates-interface; Urk -- Some of this is R5RS!
|
|
|
|
obsolete-char-set-interface
|
1999-09-22 20:43:13 -04:00
|
|
|
)
|
1999-09-14 09:32:05 -04:00
|
|
|
|
|
|
|
(open structure-refs
|
2001-03-23 07:45:31 -05:00
|
|
|
obsolete-char-set-lib
|
1999-09-14 09:32:05 -04:00
|
|
|
scsh-level-0
|
|
|
|
scsh-level-0-internals
|
1999-09-23 13:46:46 -04:00
|
|
|
re-exports
|
|
|
|
re-old-funs
|
|
|
|
; scsh-regexp-package
|
1999-09-14 09:32:05 -04:00
|
|
|
scsh-startup-package
|
|
|
|
; dbm
|
1999-09-23 13:46:46 -04:00
|
|
|
awk-package
|
|
|
|
field-reader-package
|
2001-03-23 07:45:31 -05:00
|
|
|
char-set-predicates-lib ; Urk -- Some of this is R5RS!
|
2000-09-27 07:53:21 -04:00
|
|
|
dot-locking
|
1999-09-14 09:32:05 -04:00
|
|
|
scheme)
|
|
|
|
|
|
|
|
(access scsh-top-package)
|
1999-09-23 13:46:46 -04:00
|
|
|
(begin (define repl (structure-ref scsh-top-package repl)))
|
1999-10-08 14:41:05 -04:00
|
|
|
; (optimize auto-integrate)
|
1999-09-23 13:46:46 -04:00
|
|
|
)
|
1999-09-14 09:32:05 -04:00
|
|
|
|
|
|
|
(define-structure scsh-here-string-hax (export)
|
|
|
|
(open reading
|
|
|
|
receiving
|
|
|
|
scsh ; Just need the delimited readers.
|
|
|
|
features ; make-immutable!
|
|
|
|
scheme)
|
|
|
|
(files here))
|
|
|
|
|
2001-01-09 10:52:52 -05:00
|
|
|
(define-structure scsh-events scsh-events-interface
|
1999-09-14 09:32:05 -04:00
|
|
|
(open scsh-level-0
|
|
|
|
scheme
|
2001-01-09 10:52:52 -05:00
|
|
|
structure-refs
|
|
|
|
low-interrupt
|
2001-03-23 07:45:31 -05:00
|
|
|
sigevents)
|
1999-09-14 09:32:05 -04:00
|
|
|
(files event))
|
|
|
|
|
1999-11-04 15:48:47 -05:00
|
|
|
(define-structure simple-syntax (export define-simple-syntax)
|
|
|
|
(open scheme)
|
|
|
|
(begin (define-syntax define-simple-syntax
|
|
|
|
(syntax-rules ()
|
|
|
|
((define-simple-syntax (name . pattern) result)
|
|
|
|
(define-syntax name (syntax-rules () ((name . pattern) result))))))))
|
|
|
|
|
|
|
|
|
|
|
|
(define-structure low-interrupt low-interrupt-interface
|
2001-01-09 10:52:52 -05:00
|
|
|
(open scheme
|
|
|
|
enumerated
|
|
|
|
bigbit
|
|
|
|
bitwise)
|
1999-11-04 15:48:47 -05:00
|
|
|
(files low-interrupt))
|
|
|
|
|
1999-09-23 19:02:54 -04:00
|
|
|
;(define-structure test-package (export test-proc)
|
|
|
|
; (open scsh-regexp-package scheme)
|
|
|
|
; (begin (define (test-proc p)
|
|
|
|
; (regexp-substitute p
|
|
|
|
; (string-match "(foo)(.*)(bar)" "Hello foo Olin bar quux")
|
|
|
|
; 'post 3 1 2 'pre))))
|
1999-09-14 09:32:05 -04:00
|
|
|
|
|
|
|
|
|
|
|
(define-structure scsh-threads
|
|
|
|
(export fork/thread
|
|
|
|
fork/process
|
|
|
|
wait/thread
|
|
|
|
wait/process)
|
|
|
|
(open structure-refs
|
|
|
|
scheme)
|
|
|
|
(access scsh-level-0
|
|
|
|
threads
|
|
|
|
threads-internal)
|
1999-11-14 19:23:11 -05:00
|
|
|
(files threads))
|
2000-09-27 07:53:21 -04:00
|
|
|
|
|
|
|
(define-structure dot-locking locks-interface
|
|
|
|
(open scsh
|
|
|
|
scheme
|
|
|
|
handle
|
|
|
|
threads) ; sleep
|
|
|
|
(files dot-locking))
|