2005-01-18 10:18:22 -05:00
|
|
|
(define-interface jobd-interface
|
|
|
|
(export make-jobd
|
|
|
|
jobd?
|
|
|
|
version
|
|
|
|
execute
|
|
|
|
stop
|
|
|
|
continue
|
|
|
|
shutdown
|
|
|
|
set-jobbers!))
|
|
|
|
|
|
|
|
(define-structure jobd jobd-interface
|
|
|
|
(open scheme-with-scsh
|
2005-03-12 03:22:51 -05:00
|
|
|
let-opt
|
2005-01-18 10:18:22 -05:00
|
|
|
formats
|
|
|
|
srfi-1
|
|
|
|
(with-prefix srfi-8 srfi-8/)
|
|
|
|
srfi-9
|
|
|
|
srfi-11
|
|
|
|
threads
|
|
|
|
threads-internal
|
|
|
|
(with-prefix rendezvous cml-rv/)
|
|
|
|
(with-prefix mcast-channels cml-mcast-ch/)
|
|
|
|
(with-prefix rendezvous-channels cml-sync-ch/)
|
|
|
|
(with-prefix rendezvous-async-channels cml-async-ch/)
|
|
|
|
finite-types
|
|
|
|
job
|
|
|
|
cml-pe)
|
|
|
|
(files jobd))
|
|
|
|
|
|
|
|
(define-interface cml-pe-interface
|
|
|
|
(export cml-fork
|
2005-03-12 13:50:24 -05:00
|
|
|
cml-fork/collecting))
|
2005-01-18 10:18:22 -05:00
|
|
|
|
|
|
|
(define-structure cml-pe cml-pe-interface
|
|
|
|
(open scheme-with-scsh
|
|
|
|
srfi-9
|
|
|
|
threads
|
|
|
|
(with-prefix rendezvous cml-rv/)
|
|
|
|
(with-prefix rendezvous-channels cml-sync-ch/))
|
|
|
|
(files cml-pe))
|
|
|
|
|
|
|
|
(define-interface mcast-channels-interface
|
|
|
|
(export make-mcast-channel
|
|
|
|
mcast-channel?
|
|
|
|
mcast-port?
|
|
|
|
mcast
|
|
|
|
mcast-port
|
|
|
|
mcast-port-receive
|
|
|
|
mcast-port-receive-rv))
|
|
|
|
|
|
|
|
(define-structure mcast-channels mcast-channels-interface
|
|
|
|
(open scheme
|
|
|
|
srfi-9
|
|
|
|
threads
|
|
|
|
finite-types
|
|
|
|
rendezvous
|
|
|
|
rendezvous-channels)
|
|
|
|
(files mcast-channels))
|
|
|
|
|
|
|
|
(define-interface job-interface
|
|
|
|
(export make-job-desc
|
|
|
|
job-desc?
|
|
|
|
job-desc-wd
|
|
|
|
job-desc-env
|
|
|
|
job-desc-cmd
|
|
|
|
make-job-res
|
|
|
|
job-res?
|
|
|
|
job-res-errno
|
|
|
|
job-res-stdout
|
|
|
|
job-res-stderr
|
|
|
|
display-job-output))
|
|
|
|
|
|
|
|
(define-structure job job-interface
|
|
|
|
(open scheme-with-scsh
|
|
|
|
srfi-9)
|
|
|
|
(files job))
|
|
|
|
|
|
|
|
(define-structure test-jobd
|
|
|
|
(export do-some-jobs)
|
|
|
|
(open scheme-with-scsh
|
|
|
|
locks
|
|
|
|
threads
|
|
|
|
threads-internal
|
|
|
|
srfi-1
|
|
|
|
(with-prefix rendezvous cml-rv/)
|
|
|
|
(with-prefix rendezvous-channels cml-sync-ch/)
|
|
|
|
(with-prefix rendezvous-async-channels cml-async-ch/)
|
|
|
|
cml-pe
|
|
|
|
job
|
|
|
|
(with-prefix jobd jobd/))
|
|
|
|
(files test-jobd))
|
|
|
|
|
|
|
|
(define-structure test-mcast-channels
|
|
|
|
(export test-it)
|
|
|
|
(open scheme
|
|
|
|
srfi-9
|
|
|
|
threads
|
|
|
|
rendezvous
|
|
|
|
rendezvous-channels
|
|
|
|
mcast-channels)
|
|
|
|
(files test-mcast-channels))
|
|
|
|
|
2005-01-13 06:30:05 -05:00
|
|
|
(define-interface collect-channels-interface
|
|
|
|
(export make-tagged-msg
|
|
|
|
is-tagged-msg?
|
|
|
|
tagged-msg-tag
|
|
|
|
tagged-msg-stripped
|
2005-02-22 02:03:02 -05:00
|
|
|
make-cmd-msg
|
|
|
|
is-cmd-msg?
|
|
|
|
cmd-msg-cmd
|
|
|
|
cmd-msg-data
|
|
|
|
print-info
|
2005-01-13 06:30:05 -05:00
|
|
|
collect&reply/make-channel
|
|
|
|
send&collect/make-channel
|
|
|
|
is-collect&reply-channel?
|
|
|
|
is-send&collect-channel?
|
|
|
|
make-link
|
2005-02-22 02:03:02 -05:00
|
|
|
collect-cmd
|
2005-01-13 06:30:05 -05:00
|
|
|
collect&reply/receive
|
|
|
|
collect&reply/receive-rv
|
|
|
|
collect&reply/send
|
2005-02-22 02:03:02 -05:00
|
|
|
; collect&reply/send-rv
|
2005-01-13 06:30:05 -05:00
|
|
|
send&collect/send
|
2005-02-22 02:03:02 -05:00
|
|
|
; send&collect/send-rv
|
2005-01-13 06:30:05 -05:00
|
|
|
send&collect/receive
|
|
|
|
send&collect/receive-rv))
|
|
|
|
|
|
|
|
(define-structure collect-channels collect-channels-interface
|
|
|
|
(open scheme-with-scsh
|
|
|
|
finite-types
|
|
|
|
srfi-9
|
2005-03-07 12:37:46 -05:00
|
|
|
; big-util ; for breakpoints
|
|
|
|
; let-opt ; for logging
|
2005-01-13 06:30:05 -05:00
|
|
|
threads
|
|
|
|
threads-internal
|
|
|
|
(with-prefix rendezvous cml-rv/)
|
2005-02-22 02:03:02 -05:00
|
|
|
(with-prefix rendezvous-channels cml-sync-ch/)
|
|
|
|
(with-prefix rendezvous-async-channels cml-async-ch/))
|
2005-01-13 06:30:05 -05:00
|
|
|
(files collect-channels))
|
|
|
|
|
|
|
|
(define-interface make-rule-interface
|
|
|
|
(export make-rule
|
2005-03-07 12:37:46 -05:00
|
|
|
; set!-target/rule-alist
|
2005-01-13 06:30:05 -05:00
|
|
|
is-rule?
|
2005-01-18 10:18:22 -05:00
|
|
|
make-empty-rule-set
|
|
|
|
rule-set-add
|
|
|
|
is-rule-set?
|
|
|
|
make-rule-result
|
|
|
|
is-rule-result?
|
2005-02-04 03:05:55 -05:00
|
|
|
rule-result-wants-build?
|
|
|
|
rule-result-build-func
|
2005-01-13 06:30:05 -05:00
|
|
|
rule-make))
|
|
|
|
|
2005-02-15 13:59:37 -05:00
|
|
|
(define-structure make-rule-cml make-rule-interface
|
2005-01-13 06:30:05 -05:00
|
|
|
(open scheme-with-scsh
|
|
|
|
locks
|
|
|
|
with-lock
|
|
|
|
threads
|
2005-02-22 02:03:02 -05:00
|
|
|
threads-internal
|
2005-03-07 12:37:46 -05:00
|
|
|
; big-util ; for breakpoints
|
2005-01-13 06:30:05 -05:00
|
|
|
srfi-1
|
|
|
|
srfi-9
|
|
|
|
finite-types
|
|
|
|
collect-channels
|
2005-02-15 13:59:37 -05:00
|
|
|
dfs
|
2005-01-13 06:30:05 -05:00
|
|
|
(with-prefix rendezvous cml-rv/)
|
|
|
|
(with-prefix rendezvous-channels cml-sync-ch/))
|
|
|
|
(files make-rule))
|
|
|
|
|
2005-02-15 13:59:37 -05:00
|
|
|
(define-structure make-rule-no-cml make-rule-interface
|
2005-01-13 06:30:05 -05:00
|
|
|
(open scheme-with-scsh
|
|
|
|
locks
|
|
|
|
with-lock
|
|
|
|
srfi-1
|
|
|
|
srfi-9)
|
|
|
|
(files make-rule-no-cml))
|
|
|
|
|
2005-02-04 03:05:55 -05:00
|
|
|
(define-interface macros-interface
|
2005-03-07 12:37:46 -05:00
|
|
|
(export (makefile :syntax)))
|
2005-02-04 03:05:55 -05:00
|
|
|
|
|
|
|
(define-structure macros macros-interface
|
2005-01-18 10:18:22 -05:00
|
|
|
(open scheme-with-scsh
|
|
|
|
srfi-1
|
2005-02-04 03:05:55 -05:00
|
|
|
to-rule-set
|
2005-03-08 08:14:36 -05:00
|
|
|
rule-cand
|
2005-02-15 13:59:37 -05:00
|
|
|
autovars
|
2005-03-09 09:49:13 -05:00
|
|
|
make)
|
2005-02-04 03:05:55 -05:00
|
|
|
(files macros))
|
2005-01-18 10:18:22 -05:00
|
|
|
|
2005-02-04 03:05:55 -05:00
|
|
|
(define-interface to-rule-set-interface
|
|
|
|
(export lookup-rc
|
|
|
|
lookup-fname
|
|
|
|
lookup-rule
|
|
|
|
rcs->dag
|
|
|
|
dag->rcs
|
2005-03-07 12:37:46 -05:00
|
|
|
rcs+commons->rules
|
2005-02-04 03:05:55 -05:00
|
|
|
rules->rule-set))
|
|
|
|
|
|
|
|
(define-structure to-rule-set to-rule-set-interface
|
2005-01-18 10:18:22 -05:00
|
|
|
(open scheme-with-scsh
|
|
|
|
srfi-1
|
2005-03-08 08:14:36 -05:00
|
|
|
srfi-9
|
2005-02-04 03:05:55 -05:00
|
|
|
templates
|
2005-01-18 14:28:50 -05:00
|
|
|
make-rule
|
2005-02-24 09:30:07 -05:00
|
|
|
common-rules
|
2005-03-08 08:14:36 -05:00
|
|
|
rule-cand
|
2005-02-04 03:05:55 -05:00
|
|
|
dfs)
|
|
|
|
(files to-rule-set))
|
|
|
|
|
|
|
|
(define-interface dfs-interface
|
|
|
|
(export make-dfs
|
|
|
|
dfs->list
|
2005-02-15 13:59:37 -05:00
|
|
|
dfs
|
2005-02-04 03:05:55 -05:00
|
|
|
dfs-dag-show
|
2005-02-15 13:59:37 -05:00
|
|
|
sort))
|
2005-02-04 03:05:55 -05:00
|
|
|
|
|
|
|
(define-structure dfs dfs-interface
|
|
|
|
(open scheme-with-scsh
|
|
|
|
finite-types
|
|
|
|
threads
|
|
|
|
srfi-1
|
|
|
|
srfi-9
|
|
|
|
let-opt
|
|
|
|
(with-prefix rendezvous-channels cml-sync-ch/))
|
|
|
|
(files dfs))
|
|
|
|
|
|
|
|
(define-interface templates-interface
|
2005-03-07 12:37:46 -05:00
|
|
|
(export all
|
|
|
|
file
|
|
|
|
md5
|
|
|
|
always
|
|
|
|
perms
|
|
|
|
md5-perms
|
|
|
|
paranoid
|
|
|
|
once))
|
2005-02-04 03:05:55 -05:00
|
|
|
|
|
|
|
(define-structure templates templates-interface
|
|
|
|
(open scheme-with-scsh
|
2005-02-24 09:30:07 -05:00
|
|
|
common-rules
|
2005-02-15 13:59:37 -05:00
|
|
|
autovars
|
2005-02-04 03:05:55 -05:00
|
|
|
srfi-1
|
2005-03-07 12:37:46 -05:00
|
|
|
; big-util
|
2005-02-04 03:05:55 -05:00
|
|
|
srfi-13)
|
|
|
|
(files templates))
|
|
|
|
|
2005-02-15 13:59:37 -05:00
|
|
|
(define-interface autovars-interface
|
2005-02-24 09:30:07 -05:00
|
|
|
(export bind-fluids-common
|
|
|
|
bind-fluids-gnu
|
2005-03-07 12:37:46 -05:00
|
|
|
bind-all-fluids
|
2005-02-15 13:59:37 -05:00
|
|
|
fluid-$@
|
|
|
|
fluid-$<
|
|
|
|
fluid-$?
|
|
|
|
fluid-$^
|
|
|
|
fluid-$+
|
|
|
|
fluid-$*
|
2005-02-24 09:30:07 -05:00
|
|
|
fluid-$=*
|
|
|
|
fluid-$*=
|
|
|
|
fluid-$=*=
|
2005-02-15 13:59:37 -05:00
|
|
|
fluid-$@/
|
|
|
|
fluid-/$@
|
2005-02-24 09:30:07 -05:00
|
|
|
fluid-$=*=/
|
|
|
|
fluid-/$=*=
|
2005-02-15 13:59:37 -05:00
|
|
|
fluid-$</
|
|
|
|
fluid-/$<
|
|
|
|
fluid-$^/
|
|
|
|
fluid-/$^
|
|
|
|
fluid-$+/
|
|
|
|
fluid-/$+
|
|
|
|
fluid-$?/
|
|
|
|
fluid-/$?
|
|
|
|
$@
|
|
|
|
$<
|
|
|
|
$?
|
|
|
|
$^
|
|
|
|
$+
|
|
|
|
$*
|
2005-02-24 09:30:07 -05:00
|
|
|
$=*
|
|
|
|
$*=
|
|
|
|
$=*=
|
2005-02-15 13:59:37 -05:00
|
|
|
$@/
|
|
|
|
/$@
|
2005-02-24 09:30:07 -05:00
|
|
|
$=*=/
|
|
|
|
/$=*=
|
2005-02-15 13:59:37 -05:00
|
|
|
$</
|
|
|
|
/$<
|
|
|
|
$^/
|
|
|
|
/$^
|
|
|
|
$+/
|
|
|
|
/$+
|
|
|
|
$?/
|
|
|
|
/$?
|
|
|
|
bind-fluids-human))
|
|
|
|
|
|
|
|
(define-structure autovars autovars-interface
|
|
|
|
(open scheme-with-scsh
|
|
|
|
make-rule
|
|
|
|
thread-fluids
|
|
|
|
srfi-1
|
|
|
|
srfi-13)
|
|
|
|
(files autovars))
|
|
|
|
|
2005-02-24 09:30:07 -05:00
|
|
|
(define-interface common-rules-interface
|
2005-03-08 08:14:36 -05:00
|
|
|
(export common-rcs->common-rules
|
|
|
|
make-empty-common-rules
|
2005-03-07 12:37:46 -05:00
|
|
|
add-common-rules
|
2005-03-08 08:14:36 -05:00
|
|
|
search-match-in-common-rules))
|
2005-02-24 09:30:07 -05:00
|
|
|
|
|
|
|
(define-structure common-rules common-rules-interface
|
|
|
|
(open scheme-with-scsh
|
|
|
|
autovars
|
|
|
|
srfi-1
|
|
|
|
srfi-9
|
2005-03-08 08:14:36 -05:00
|
|
|
rule-cand
|
2005-02-24 09:30:07 -05:00
|
|
|
srfi-13)
|
|
|
|
(files common-rules))
|
|
|
|
|
2005-03-08 08:14:36 -05:00
|
|
|
(define-interface rule-cand-interface
|
|
|
|
(export make-rule-cand
|
|
|
|
is-rule-cand?
|
|
|
|
rule-cand-target
|
|
|
|
rule-cand-prereqs
|
|
|
|
rule-cand-up-to-date?-func
|
|
|
|
rule-cand-build-func))
|
|
|
|
|
|
|
|
(define-structure rule-cand rule-cand-interface
|
|
|
|
(open scheme-with-scsh
|
|
|
|
srfi-9)
|
|
|
|
(files rule-cand))
|
|
|
|
|
2005-03-09 09:49:13 -05:00
|
|
|
(define-interface make-interface
|
|
|
|
(export make
|
|
|
|
make-rc
|
|
|
|
file->rc
|
|
|
|
once->rc
|
|
|
|
all->rc
|
|
|
|
always->rc
|
|
|
|
perms->rc
|
|
|
|
md5->rc
|
|
|
|
md5-perms->rc
|
|
|
|
paranoid->rc
|
|
|
|
%-pattern->match
|
|
|
|
%-pattern->rx
|
2005-03-09 10:24:10 -05:00
|
|
|
file-rx
|
|
|
|
once-rx
|
|
|
|
all-rx
|
|
|
|
always-rx
|
|
|
|
perms-rx
|
|
|
|
md5-rx
|
|
|
|
md5-perms-rx
|
|
|
|
paranoid-rx
|
|
|
|
file-%
|
|
|
|
once-%
|
|
|
|
all-%
|
|
|
|
always-%
|
|
|
|
perms-%
|
|
|
|
md5-%
|
|
|
|
md5-perms-%
|
|
|
|
paranoid-%
|
2005-03-09 09:49:13 -05:00
|
|
|
%->func
|
|
|
|
rx->func
|
|
|
|
common->func))
|
|
|
|
|
|
|
|
(define-structure make make-interface
|
2005-02-04 03:05:55 -05:00
|
|
|
(open scheme-with-scsh
|
|
|
|
srfi-1
|
2005-03-09 09:49:13 -05:00
|
|
|
; macros
|
2005-02-04 03:05:55 -05:00
|
|
|
let-opt
|
|
|
|
to-rule-set
|
2005-03-09 09:49:13 -05:00
|
|
|
templates
|
|
|
|
autovars
|
|
|
|
rule-cand
|
2005-02-04 03:05:55 -05:00
|
|
|
make-rule)
|
|
|
|
(files make))
|
2005-02-15 13:59:37 -05:00
|
|
|
|
2005-02-24 09:30:07 -05:00
|
|
|
(define make-rule make-rule-no-cml)
|