scsh: Uncomment some procedures that are in SRFI-170
This commit is contained in:
parent
a0ae8e6549
commit
fae4aef8c0
|
|
@ -12,8 +12,10 @@
|
||||||
(output (parameterize ((current-output-port (open-output-string)))
|
(output (parameterize ((current-output-port (open-output-string)))
|
||||||
(apply thunk '())
|
(apply thunk '())
|
||||||
(get-output-string (current-output-port))))
|
(get-output-string (current-output-port))))
|
||||||
(output-cbv (string->c-bytevector output))
|
|
||||||
(output-length (string-length output)))
|
(output-length (string-length output)))
|
||||||
(c-fwrite output-cbv 1 output-length file-cbv)
|
(with-string->c-bytevector
|
||||||
|
output
|
||||||
|
(lambda (output-cbv)
|
||||||
|
(c-fwrite output-cbv 1 output-length file-cbv)))
|
||||||
(c-fclose file-cbv)
|
(c-fclose file-cbv)
|
||||||
(c-bytevector-free path-cbv output-cbv)))
|
(c-bytevector-free path-cbv)))
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
0.3.0
|
0.3.1
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
(define-c-library libc '("stdlib.h" "string.h" "stdio.h") #f ())
|
||||||
|
|
||||||
|
;(define-c-procedure c-setenv libc 'setenv 'int '(pointer pointer int))
|
||||||
|
|
||||||
|
(define (setenv var val)
|
||||||
|
(when (not (string? var)) (error "setenv error: var must be string"))
|
||||||
|
(when (not (string? val)) (error "setenv error: val must be string"))
|
||||||
|
(set-environment-variable! var val))
|
||||||
|
|
@ -83,13 +83,13 @@
|
||||||
;copy-tty-info
|
;copy-tty-info
|
||||||
;cppflags
|
;cppflags
|
||||||
;cpu-ticks/sec
|
;cpu-ticks/sec
|
||||||
;create-directory
|
create-directory
|
||||||
;create-fifo
|
create-fifo
|
||||||
;create-hard-link
|
create-hard-link
|
||||||
;create-socket
|
;create-socket
|
||||||
;create-socket-pair
|
;create-socket-pair
|
||||||
;create-symlink
|
create-symlink
|
||||||
;create-temp-file
|
create-temp-file
|
||||||
;crypt
|
;crypt
|
||||||
;current-thread
|
;current-thread
|
||||||
;cwd
|
;cwd
|
||||||
|
|
@ -99,11 +99,11 @@
|
||||||
;default-lib-dirs
|
;default-lib-dirs
|
||||||
;define-record
|
;define-record
|
||||||
;defs
|
;defs
|
||||||
;delete-directory
|
delete-directory
|
||||||
;delete-file
|
delete-file
|
||||||
;delete-filesys-object
|
;delete-filesys-object
|
||||||
;directory-as-file-name
|
;directory-as-file-name
|
||||||
;directory-files
|
directory-files
|
||||||
;disable-tty-char
|
;disable-tty-char
|
||||||
;drain-tty
|
;drain-tty
|
||||||
;dump-scsh
|
;dump-scsh
|
||||||
|
|
@ -138,8 +138,8 @@
|
||||||
;file-exists?
|
;file-exists?
|
||||||
;file-fifo?
|
;file-fifo?
|
||||||
;file-group
|
;file-group
|
||||||
;file-info
|
file-info
|
||||||
;file-info-directory?
|
file-info-directory?
|
||||||
;file-info-executable?
|
;file-info-executable?
|
||||||
;file-info-fifo?
|
;file-info-fifo?
|
||||||
;file-info-not-executable?
|
;file-info-not-executable?
|
||||||
|
|
@ -151,17 +151,17 @@
|
||||||
;file-info-special?
|
;file-info-special?
|
||||||
;file-info-symlink?
|
;file-info-symlink?
|
||||||
;file-info-writable?
|
;file-info-writable?
|
||||||
;file-info:atime
|
file-info:atime
|
||||||
;file-info:ctime
|
file-info:ctime
|
||||||
;file-info:device
|
file-info:device
|
||||||
;file-info:gid
|
file-info:gid
|
||||||
;file-info:inode
|
file-info:inode
|
||||||
;file-info:mode
|
file-info:mode
|
||||||
;file-info:mtime
|
file-info:mtime
|
||||||
;file-info:nlinks
|
ile-info:nlinks
|
||||||
;file-info:size
|
file-info:size
|
||||||
;file-info:type
|
;file-info:type
|
||||||
;file-info:uid
|
file-info:uid
|
||||||
;file-inode
|
;file-inode
|
||||||
;file-last-access
|
;file-last-access
|
||||||
;file-last-mod
|
;file-last-mod
|
||||||
|
|
@ -208,10 +208,10 @@
|
||||||
;getenv
|
;getenv
|
||||||
;glob
|
;glob
|
||||||
;glob-quote
|
;glob-quote
|
||||||
;group-info, [2]
|
group-info
|
||||||
;group-info:gid
|
group-info:gid
|
||||||
;group-info:members
|
;group-info:members
|
||||||
;group-info:name
|
group-info:name
|
||||||
;handle-signal-default
|
;handle-signal-default
|
||||||
;home-dir
|
;home-dir
|
||||||
;home-directory
|
;home-directory
|
||||||
|
|
@ -311,7 +311,7 @@
|
||||||
;next-sigevent-set
|
;next-sigevent-set
|
||||||
;next-sigevent-set/no-wait
|
;next-sigevent-set/no-wait
|
||||||
;next-sigevent/no-wait
|
;next-sigevent/no-wait
|
||||||
;nice
|
nice
|
||||||
;number->md5-digest
|
;number->md5-digest
|
||||||
;obtain-dot-lock
|
;obtain-dot-lock
|
||||||
;obtain-lock
|
;obtain-lock
|
||||||
|
|
@ -329,7 +329,7 @@
|
||||||
;parse-sre
|
;parse-sre
|
||||||
;parse-sres
|
;parse-sres
|
||||||
;path-list->file-name
|
;path-list->file-name
|
||||||
;pid
|
pid
|
||||||
;pid->proc
|
;pid->proc
|
||||||
;pipe
|
;pipe
|
||||||
;placeholder-value
|
;placeholder-value
|
||||||
|
|
@ -407,7 +407,7 @@
|
||||||
;read-string!
|
;read-string!
|
||||||
;read-string!/partial
|
;read-string!/partial
|
||||||
;read-string/partial
|
;read-string/partial
|
||||||
;read-symlink
|
read-symlink
|
||||||
;reap-zombies
|
;reap-zombies
|
||||||
;receive-message
|
;receive-message
|
||||||
;receive-message!
|
;receive-message!
|
||||||
|
|
@ -429,7 +429,7 @@
|
||||||
;release-lock
|
;release-lock
|
||||||
;release-port-handle
|
;release-port-handle
|
||||||
;relinquish-timeslice
|
;relinquish-timeslice
|
||||||
;rename-file
|
rename-file
|
||||||
;replace-extension
|
;replace-extension
|
||||||
;resolve-file-name
|
;resolve-file-name
|
||||||
;run
|
;run
|
||||||
|
|
@ -463,9 +463,9 @@
|
||||||
;set-fdes-flags
|
;set-fdes-flags
|
||||||
;set-fdes-status
|
;set-fdes-status
|
||||||
;set-file-group
|
;set-file-group
|
||||||
;set-file-mode
|
set-file-mode
|
||||||
;set-file-owner
|
set-file-owner
|
||||||
;set-file-times
|
set-file-times
|
||||||
;set-gid
|
;set-gid
|
||||||
;set-interrupt-handler
|
;set-interrupt-handler
|
||||||
;set-port-buffering
|
;set-port-buffering
|
||||||
|
|
@ -477,10 +477,10 @@
|
||||||
;set-tty-info/now
|
;set-tty-info/now
|
||||||
;set-tty-process-group
|
;set-tty-process-group
|
||||||
;set-uid
|
;set-uid
|
||||||
;set-umask
|
set-umask
|
||||||
;set-user-effective-gid
|
;set-user-effective-gid
|
||||||
;set-user-effective-uid
|
;set-user-effective-uid
|
||||||
;setenv
|
setenv
|
||||||
;shutdown-socket
|
;shutdown-socket
|
||||||
;sigevent?
|
;sigevent?
|
||||||
;signal->interrupt
|
;signal->interrupt
|
||||||
|
|
@ -578,7 +578,7 @@
|
||||||
;time
|
;time
|
||||||
;time, [2]
|
;time, [2]
|
||||||
;time+ticks
|
;time+ticks
|
||||||
;truncate-file
|
truncate-file
|
||||||
;tty-file-name
|
;tty-file-name
|
||||||
;tty-info
|
;tty-info
|
||||||
;tty-info record type
|
;tty-info record type
|
||||||
|
|
@ -690,25 +690,25 @@
|
||||||
;ttyout/vtab-delay
|
;ttyout/vtab-delay
|
||||||
;ttyout/vtab-delay0
|
;ttyout/vtab-delay0
|
||||||
;ttyout/vtab-delay1
|
;ttyout/vtab-delay1
|
||||||
;umask
|
umask
|
||||||
;uname
|
;uname
|
||||||
;uncase
|
;uncase
|
||||||
;uncase-char-set
|
;uncase-char-set
|
||||||
;uncase-string
|
;uncase-string
|
||||||
;unix-address->socket-address
|
;unix-address->socket-address
|
||||||
;unlock-region
|
;unlock-region
|
||||||
;user-effective-gid
|
user-effective-gid
|
||||||
;user-effective-uid
|
user-effective-uid
|
||||||
;user-gid
|
user-gid
|
||||||
;user-info, [2]
|
user-info
|
||||||
;user-info:gid
|
user-info:gid
|
||||||
;user-info:home-dir
|
user-info:home-dir
|
||||||
;user-info:name
|
user-info:name
|
||||||
;user-info:shell
|
user-info:shell
|
||||||
;user-info:uid
|
user-info:uid
|
||||||
;user-login-name
|
;user-login-name
|
||||||
;user-supplementary-gids
|
;user-supplementary-gids
|
||||||
;user-uid
|
user-uid
|
||||||
;vendor
|
;vendor
|
||||||
;wait
|
;wait
|
||||||
;wait-any
|
;wait-any
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue