mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Merge remote-tracking branch 'origin/stable-2.0'
This commit is contained in:
commit
86cf4773ff
12 changed files with 217 additions and 201 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -152,3 +152,7 @@ INSTALL
|
||||||
/lib/wctype.h
|
/lib/wctype.h
|
||||||
/build-aux/ar-lib
|
/build-aux/ar-lib
|
||||||
/build-aux/test-driver
|
/build-aux/test-driver
|
||||||
|
*.trs
|
||||||
|
/test-suite/standalone/test-smob-mark
|
||||||
|
/test-suite/standalone/test-scm-values
|
||||||
|
/test-suite/standalone/test-scm-to-latin1-string
|
||||||
|
|
21
configure.ac
21
configure.ac
|
@ -761,7 +761,8 @@ AC_CHECK_FUNCS([DINFINITY DQNAN cexp chsize clog clog10 ctermid \
|
||||||
strcoll strcoll_l newlocale utimensat sched_getaffinity \
|
strcoll strcoll_l newlocale utimensat sched_getaffinity \
|
||||||
sched_setaffinity sendfile])
|
sched_setaffinity sendfile])
|
||||||
|
|
||||||
AM_CONDITIONAL([HAVE_FORK], [test "x$ac_cv_func_fork" = "xyes"])
|
AM_CONDITIONAL([BUILD_ICE_9_POPEN],
|
||||||
|
[test "x$enable_posix" = "xyes" && test "x$ac_cv_func_fork" = "xyes"])
|
||||||
|
|
||||||
# Reasons for testing:
|
# Reasons for testing:
|
||||||
# netdb.h - not in mingw
|
# netdb.h - not in mingw
|
||||||
|
@ -1302,24 +1303,6 @@ if test $scm_cv_struct_linger = yes; then
|
||||||
getsockopt and setsockopt system calls.])
|
getsockopt and setsockopt system calls.])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# On mingw, struct timespec is in <pthread.h>.
|
|
||||||
#
|
|
||||||
AC_MSG_CHECKING(for struct timespec)
|
|
||||||
AC_CACHE_VAL(scm_cv_struct_timespec,
|
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
|
||||||
#include <time.h>
|
|
||||||
#if HAVE_PTHREAD_H
|
|
||||||
#include <pthread.h>
|
|
||||||
#endif]], [[struct timespec t; t.tv_nsec = 100]])],
|
|
||||||
[scm_cv_struct_timespec="yes"],
|
|
||||||
[scm_cv_struct_timespec="no"]))
|
|
||||||
AC_MSG_RESULT($scm_cv_struct_timespec)
|
|
||||||
if test $scm_cv_struct_timespec = yes; then
|
|
||||||
AC_DEFINE([HAVE_STRUCT_TIMESPEC], 1,
|
|
||||||
[Define this if your system defines struct timespec via either <time.h> or <pthread.h>.])
|
|
||||||
fi
|
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Flags for thread support
|
# Flags for thread support
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
@c -*-texinfo-*-
|
@c -*-texinfo-*-
|
||||||
@c This is part of the GNU Guile Reference Manual.
|
@c This is part of the GNU Guile Reference Manual.
|
||||||
@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2011, 2012
|
@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
|
||||||
|
@c 2008, 2009, 2010, 2011, 2012, 2013
|
||||||
@c Free Software Foundation, Inc.
|
@c Free Software Foundation, Inc.
|
||||||
@c See the file guile.texi for copying conditions.
|
@c See the file guile.texi for copying conditions.
|
||||||
|
|
||||||
|
@ -281,6 +282,11 @@ Databases}).
|
||||||
Indicates support for POSIX functions: @code{pipe}, @code{getgroups},
|
Indicates support for POSIX functions: @code{pipe}, @code{getgroups},
|
||||||
@code{kill}, @code{execl} and so on (@pxref{POSIX}).
|
@code{kill}, @code{execl} and so on (@pxref{POSIX}).
|
||||||
|
|
||||||
|
@item fork
|
||||||
|
Indicates support for the POSIX @code{fork} function (@pxref{Processes,
|
||||||
|
@code{primitive-fork}}). This is a prerequisite for the @code{(ice-9
|
||||||
|
popen)} module (@pxref{Pipes}).
|
||||||
|
|
||||||
@item random
|
@item random
|
||||||
Indicates availability of random number generation functions:
|
Indicates availability of random number generation functions:
|
||||||
@code{random}, @code{copy-random-state}, @code{random-uniform} and so on
|
@code{random}, @code{copy-random-state}, @code{random-uniform} and so on
|
||||||
|
|
|
@ -71,6 +71,9 @@ before any directories in the @env{GUILE_LOAD_PATH} environment
|
||||||
variable. Paths added here are @emph{not} in effect during execution of
|
variable. Paths added here are @emph{not} in effect during execution of
|
||||||
the user's @file{.guile} file.
|
the user's @file{.guile} file.
|
||||||
|
|
||||||
|
@item -C @var{directory}
|
||||||
|
Like @option{-L}, but adjusts the load path for @emph{compiled} files.
|
||||||
|
|
||||||
@item -x @var{extension}
|
@item -x @var{extension}
|
||||||
Add @var{extension} to the front of Guile's load extension list
|
Add @var{extension} to the front of Guile's load extension list
|
||||||
(@pxref{Load Paths, @code{%load-extensions}}). The specified extensions
|
(@pxref{Load Paths, @code{%load-extensions}}). The specified extensions
|
||||||
|
|
|
@ -2189,7 +2189,8 @@ controlling terminal. The return value is unspecified.
|
||||||
|
|
||||||
The following procedures are similar to the @code{popen} and
|
The following procedures are similar to the @code{popen} and
|
||||||
@code{pclose} system routines. The code is in a separate ``popen''
|
@code{pclose} system routines. The code is in a separate ``popen''
|
||||||
module:
|
module@footnote{This module is only available on systems where the
|
||||||
|
@code{fork} feature is provided (@pxref{Common Feature Symbols}).}:
|
||||||
|
|
||||||
@lisp
|
@lisp
|
||||||
(use-modules (ice-9 popen))
|
(use-modules (ice-9 popen))
|
||||||
|
|
|
@ -3844,7 +3844,7 @@ again. SRFI-41 can be made available with:
|
||||||
|
|
||||||
SRFI-41 Streams are based on two mutually-recursive abstract data types:
|
SRFI-41 Streams are based on two mutually-recursive abstract data types:
|
||||||
An object of the @code{stream} abstract data type is a promise that,
|
An object of the @code{stream} abstract data type is a promise that,
|
||||||
when forced, is either @var{stream-null} or is an object of type
|
when forced, is either @code{stream-null} or is an object of type
|
||||||
@code{stream-pair}. An object of the @code{stream-pair} abstract data
|
@code{stream-pair}. An object of the @code{stream-pair} abstract data
|
||||||
type contains a @code{stream-car} and a @code{stream-cdr}, which must be
|
type contains a @code{stream-car} and a @code{stream-cdr}, which must be
|
||||||
a @code{stream}. The essential feature of streams is the systematic
|
a @code{stream}. The essential feature of streams is the systematic
|
||||||
|
@ -3862,14 +3862,14 @@ stream, and is only forced on demand.
|
||||||
@subsubsection SRFI-41 Stream Primitives
|
@subsubsection SRFI-41 Stream Primitives
|
||||||
|
|
||||||
This library provides eight operators: constructors for
|
This library provides eight operators: constructors for
|
||||||
@var{stream-null} and @code{stream-pair}s, type predicates for streams
|
@code{stream-null} and @code{stream-pair}s, type predicates for streams
|
||||||
and the two kinds of streams, accessors for both fields of a
|
and the two kinds of streams, accessors for both fields of a
|
||||||
@code{stream-pair}, and a lambda that creates procedures that return
|
@code{stream-pair}, and a lambda that creates procedures that return
|
||||||
streams.
|
streams.
|
||||||
|
|
||||||
@defvr {Scheme Variable} stream-null
|
@defvr {Scheme Variable} stream-null
|
||||||
A promise that, when forced, is a single object, distinguishable from
|
A promise that, when forced, is a single object, distinguishable from
|
||||||
all other objects, that represents the null stream. @var{stream-null}
|
all other objects, that represents the null stream. @code{stream-null}
|
||||||
is immutable and unique.
|
is immutable and unique.
|
||||||
@end defvr
|
@end defvr
|
||||||
|
|
||||||
|
@ -4003,7 +4003,7 @@ Returns a newly-allocated stream containing the elements from
|
||||||
Returns a newly-allocated stream containing in its elements the
|
Returns a newly-allocated stream containing in its elements the
|
||||||
characters on the port. If @var{port} is not given it defaults to the
|
characters on the port. If @var{port} is not given it defaults to the
|
||||||
current input port. The returned stream has finite length and is
|
current input port. The returned stream has finite length and is
|
||||||
terminated by @var{stream-null}.
|
terminated by @code{stream-null}.
|
||||||
|
|
||||||
It looks like one use of @code{port->stream} would be this:
|
It looks like one use of @code{port->stream} would be this:
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
# the same distribution terms as the rest of that program.
|
# the same distribution terms as the rest of that program.
|
||||||
#
|
#
|
||||||
# Generated by gnulib-tool.
|
# Generated by gnulib-tool.
|
||||||
# Reproduce by: gnulib-tool --import --dir=. --local-dir=gnulib-local --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --lgpl=3 --no-conditional-dependencies --libtool --macro-prefix=gl --no-vc-files accept alignof alloca-opt announce-gen autobuild bind byteswap canonicalize-lgpl ceil clock-time close connect dirfd duplocale environ extensions flock floor fpieee frexp fstat full-read full-write func gendocs getaddrinfo getlogin getpeername getsockname getsockopt git-version-gen gitlog-to-changelog gnu-web-doc-update gnupload havelib iconv_open-utf inet_ntop inet_pton isinf isnan ldexp lib-symbol-versions lib-symbol-visibility libunistring listen localcharset locale log1p maintainer-makefile malloc-gnu malloca nl_langinfo nproc open pipe-posix pipe2 poll putenv recv recvfrom regex rename select send sendto setenv setsockopt shutdown socket stat-time stdlib strftime striconveh string sys_stat times trunc verify vsnprintf warnings wchar
|
# Reproduce by: gnulib-tool --import --dir=. --local-dir=gnulib-local --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --lgpl=3 --no-conditional-dependencies --libtool --macro-prefix=gl --no-vc-files accept alignof alloca-opt announce-gen autobuild bind byteswap canonicalize-lgpl ceil clock-time close connect dirfd duplocale environ extensions flock floor fpieee frexp fstat full-read full-write func gendocs getaddrinfo getlogin getpeername getsockname getsockopt git-version-gen gitlog-to-changelog gnu-web-doc-update gnupload havelib iconv_open-utf inet_ntop inet_pton isinf isnan ldexp lib-symbol-versions lib-symbol-visibility libunistring listen localcharset locale log1p maintainer-makefile malloc-gnu malloca nl_langinfo nproc open pipe-posix pipe2 poll putenv recv recvfrom regex rename select send sendto setenv setsockopt shutdown socket stat-time stdlib strftime striconveh string sys_stat time times trunc verify vsnprintf warnings wchar
|
||||||
|
|
||||||
AUTOMAKE_OPTIONS = 1.5 gnits subdir-objects
|
AUTOMAKE_OPTIONS = 1.5 gnits subdir-objects
|
||||||
|
|
||||||
|
|
|
@ -2337,6 +2337,7 @@ scm_init_posix ()
|
||||||
#include "libguile/posix.x"
|
#include "libguile/posix.x"
|
||||||
|
|
||||||
#ifdef HAVE_FORK
|
#ifdef HAVE_FORK
|
||||||
|
scm_add_feature ("fork");
|
||||||
scm_c_register_extension ("libguile-" SCM_EFFECTIVE_VERSION,
|
scm_c_register_extension ("libguile-" SCM_EFFECTIVE_VERSION,
|
||||||
"scm_init_popen",
|
"scm_init_popen",
|
||||||
(scm_t_extension_init_func) scm_init_popen,
|
(scm_t_extension_init_func) scm_init_popen,
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
|
|
||||||
# Specification in the form of a command-line invocation:
|
# Specification in the form of a command-line invocation:
|
||||||
# gnulib-tool --import --dir=. --local-dir=gnulib-local --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --lgpl=3 --no-conditional-dependencies --libtool --macro-prefix=gl --no-vc-files accept alignof alloca-opt announce-gen autobuild bind byteswap canonicalize-lgpl ceil clock-time close connect dirfd duplocale environ extensions flock floor fpieee frexp fstat full-read full-write func gendocs getaddrinfo getlogin getpeername getsockname getsockopt git-version-gen gitlog-to-changelog gnu-web-doc-update gnupload havelib iconv_open-utf inet_ntop inet_pton isinf isnan ldexp lib-symbol-versions lib-symbol-visibility libunistring listen localcharset locale log1p maintainer-makefile malloc-gnu malloca nl_langinfo nproc open pipe-posix pipe2 poll putenv recv recvfrom regex rename select send sendto setenv setsockopt shutdown socket stat-time stdlib strftime striconveh string sys_stat times trunc verify vsnprintf warnings wchar
|
# gnulib-tool --import --dir=. --local-dir=gnulib-local --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --lgpl=3 --no-conditional-dependencies --libtool --macro-prefix=gl --no-vc-files accept alignof alloca-opt announce-gen autobuild bind byteswap canonicalize-lgpl ceil clock-time close connect dirfd duplocale environ extensions flock floor fpieee frexp fstat full-read full-write func gendocs getaddrinfo getlogin getpeername getsockname getsockopt git-version-gen gitlog-to-changelog gnu-web-doc-update gnupload havelib iconv_open-utf inet_ntop inet_pton isinf isnan ldexp lib-symbol-versions lib-symbol-visibility libunistring listen localcharset locale log1p maintainer-makefile malloc-gnu malloca nl_langinfo nproc open pipe-posix pipe2 poll putenv recv recvfrom regex rename select send sendto setenv setsockopt shutdown socket stat-time stdlib strftime striconveh string sys_stat time times trunc verify vsnprintf warnings wchar
|
||||||
|
|
||||||
# Specification in the form of a few gnulib-tool.m4 macro invocations:
|
# Specification in the form of a few gnulib-tool.m4 macro invocations:
|
||||||
gl_LOCAL_DIR([gnulib-local])
|
gl_LOCAL_DIR([gnulib-local])
|
||||||
|
@ -108,6 +108,7 @@ gl_MODULES([
|
||||||
striconveh
|
striconveh
|
||||||
string
|
string
|
||||||
sys_stat
|
sys_stat
|
||||||
|
time
|
||||||
times
|
times
|
||||||
trunc
|
trunc
|
||||||
verify
|
verify
|
||||||
|
|
|
@ -158,7 +158,6 @@ BRAINFUCK_LANG_SOURCES = \
|
||||||
language/brainfuck/spec.scm
|
language/brainfuck/spec.scm
|
||||||
|
|
||||||
SCRIPTS_SOURCES = \
|
SCRIPTS_SOURCES = \
|
||||||
scripts/autofrisk.scm \
|
|
||||||
scripts/compile.scm \
|
scripts/compile.scm \
|
||||||
scripts/disassemble.scm \
|
scripts/disassemble.scm \
|
||||||
scripts/display-commentary.scm \
|
scripts/display-commentary.scm \
|
||||||
|
@ -174,7 +173,6 @@ SCRIPTS_SOURCES = \
|
||||||
scripts/use2dot.scm \
|
scripts/use2dot.scm \
|
||||||
scripts/snarf-check-and-output-texi.scm \
|
scripts/snarf-check-and-output-texi.scm \
|
||||||
scripts/summarize-guile-TODO.scm \
|
scripts/summarize-guile-TODO.scm \
|
||||||
scripts/scan-api.scm \
|
|
||||||
scripts/api-diff.scm \
|
scripts/api-diff.scm \
|
||||||
scripts/read-rfc822.scm \
|
scripts/read-rfc822.scm \
|
||||||
scripts/snarf-guile-m4-docs.scm
|
scripts/snarf-guile-m4-docs.scm
|
||||||
|
@ -256,12 +254,17 @@ ICE_9_SOURCES = \
|
||||||
ice-9/serialize.scm \
|
ice-9/serialize.scm \
|
||||||
ice-9/local-eval.scm
|
ice-9/local-eval.scm
|
||||||
|
|
||||||
if HAVE_FORK
|
if BUILD_ICE_9_POPEN
|
||||||
|
|
||||||
# This functionality is missing on systems without `fork'---i.e., Windows.
|
# This functionality is missing on systems without `fork'---i.e., Windows.
|
||||||
ICE_9_SOURCES += ice-9/popen.scm
|
ICE_9_SOURCES += ice-9/popen.scm
|
||||||
|
|
||||||
endif HAVE_FORK
|
# These modules rely on (ice-9 popen).
|
||||||
|
SCRIPTS_SOURCES += \
|
||||||
|
scripts/autofrisk.scm \
|
||||||
|
scripts/scan-api.scm
|
||||||
|
|
||||||
|
endif BUILD_ICE_9_POPEN
|
||||||
|
|
||||||
SRFI_SOURCES = \
|
SRFI_SOURCES = \
|
||||||
srfi/srfi-2.scm \
|
srfi/srfi-2.scm \
|
||||||
|
|
|
@ -117,6 +117,7 @@ remaining arguments as the value of (command-line).
|
||||||
If FILE begins with `-' the -s switch is mandatory.
|
If FILE begins with `-' the -s switch is mandatory.
|
||||||
|
|
||||||
-L DIRECTORY add DIRECTORY to the front of the module load path
|
-L DIRECTORY add DIRECTORY to the front of the module load path
|
||||||
|
-C DIRECTORY like -L, but for compiled files
|
||||||
-x EXTENSION add EXTENSION to the front of the load extensions
|
-x EXTENSION add EXTENSION to the front of the load extensions
|
||||||
-l FILE load source code from FILE
|
-l FILE load source code from FILE
|
||||||
-e FUNCTION after reading script, apply FUNCTION to
|
-e FUNCTION after reading script, apply FUNCTION to
|
||||||
|
@ -194,6 +195,7 @@ If FILE begins with `-' the -s switch is mandatory.
|
||||||
(script-cell #f)
|
(script-cell #f)
|
||||||
(entry-point #f)
|
(entry-point #f)
|
||||||
(user-load-path '())
|
(user-load-path '())
|
||||||
|
(user-load-compiled-path '())
|
||||||
(user-extensions '())
|
(user-extensions '())
|
||||||
(interactive? #t)
|
(interactive? #t)
|
||||||
(inhibit-user-init? #f)
|
(inhibit-user-init? #f)
|
||||||
|
@ -264,6 +266,14 @@ If FILE begins with `-' the -s switch is mandatory.
|
||||||
(parse (cdr args)
|
(parse (cdr args)
|
||||||
out))
|
out))
|
||||||
|
|
||||||
|
((string=? arg "-C") ; add to %load-compiled-path
|
||||||
|
(if (null? args)
|
||||||
|
(error "missing argument to `-C' switch"))
|
||||||
|
(set! user-load-compiled-path
|
||||||
|
(cons (car args) user-load-compiled-path))
|
||||||
|
(parse (cdr args)
|
||||||
|
out))
|
||||||
|
|
||||||
((string=? arg "-x") ; add to %load-extensions
|
((string=? arg "-x") ; add to %load-extensions
|
||||||
(if (null? args)
|
(if (null? args)
|
||||||
(error "missing argument to `-x' switch"))
|
(error "missing argument to `-x' switch"))
|
||||||
|
@ -430,11 +440,15 @@ If FILE begins with `-' the -s switch is mandatory.
|
||||||
`(set! %load-extensions (cons ,ext %load-extensions)))
|
`(set! %load-extensions (cons ,ext %load-extensions)))
|
||||||
user-extensions)
|
user-extensions)
|
||||||
|
|
||||||
;; Add the user-specified load path here, so it won't be in
|
;; Add the user-specified load paths here, so they won't be in
|
||||||
;; effect during the loading of the user's customization file.
|
;; effect during the loading of the user's customization file.
|
||||||
,@(map (lambda (path)
|
,@(map (lambda (path)
|
||||||
`(set! %load-path (cons ,path %load-path)))
|
`(set! %load-path (cons ,path %load-path)))
|
||||||
user-load-path)
|
user-load-path)
|
||||||
|
,@(map (lambda (path)
|
||||||
|
`(set! %load-compiled-path
|
||||||
|
(cons ,path %load-compiled-path)))
|
||||||
|
user-load-compiled-path)
|
||||||
|
|
||||||
;; Put accumulated actions in their correct order.
|
;; Put accumulated actions in their correct order.
|
||||||
,@(reverse! out)
|
,@(reverse! out)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
;;;; popen.test --- exercise ice-9/popen.scm -*- scheme -*-
|
;;;; popen.test --- exercise ice-9/popen.scm -*- scheme -*-
|
||||||
;;;;
|
;;;;
|
||||||
;;;; Copyright 2003, 2006, 2010, 2011 Free Software Foundation, Inc.
|
;;;; Copyright 2003, 2006, 2010, 2011, 2013 Free Software Foundation, Inc.
|
||||||
;;;;
|
;;;;
|
||||||
;;;; This library is free software; you can redistribute it and/or
|
;;;; This library is free software; you can redistribute it and/or
|
||||||
;;;; modify it under the terms of the GNU Lesser General Public
|
;;;; modify it under the terms of the GNU Lesser General Public
|
||||||
|
@ -17,9 +17,7 @@
|
||||||
;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
(define-module (test-suite test-ice-9-popen)
|
(define-module (test-suite test-ice-9-popen)
|
||||||
#:use-module (test-suite lib)
|
#:use-module (test-suite lib))
|
||||||
#:use-module (ice-9 popen))
|
|
||||||
|
|
||||||
|
|
||||||
;; read from PORT until eof is reached, return what's read as a string
|
;; read from PORT until eof is reached, return what's read as a string
|
||||||
(define (read-string-to-eof port)
|
(define (read-string-to-eof port)
|
||||||
|
@ -37,12 +35,19 @@
|
||||||
thunk
|
thunk
|
||||||
restore-signals))
|
restore-signals))
|
||||||
|
|
||||||
|
(define-syntax-rule (if-supported body ...)
|
||||||
|
(if (provided? 'fork)
|
||||||
|
(begin body ...)))
|
||||||
|
|
||||||
;;
|
(if-supported
|
||||||
;; open-input-pipe
|
(use-modules (ice-9 popen))
|
||||||
;;
|
|
||||||
|
|
||||||
(with-test-prefix "open-input-pipe"
|
|
||||||
|
;;
|
||||||
|
;; open-input-pipe
|
||||||
|
;;
|
||||||
|
|
||||||
|
(with-test-prefix "open-input-pipe"
|
||||||
|
|
||||||
(pass-if-exception "no args" exception:wrong-num-args
|
(pass-if-exception "no args" exception:wrong-num-args
|
||||||
(open-input-pipe))
|
(open-input-pipe))
|
||||||
|
@ -110,15 +115,13 @@
|
||||||
(display "hello!\n" (cdr p2c))
|
(display "hello!\n" (cdr p2c))
|
||||||
(force-output (cdr p2c))
|
(force-output (cdr p2c))
|
||||||
(close-pipe port)
|
(close-pipe port)
|
||||||
result)))
|
result))))
|
||||||
|
|
||||||
)
|
;;
|
||||||
|
;; open-output-pipe
|
||||||
|
;;
|
||||||
|
|
||||||
;;
|
(with-test-prefix "open-output-pipe"
|
||||||
;; open-output-pipe
|
|
||||||
;;
|
|
||||||
|
|
||||||
(with-test-prefix "open-output-pipe"
|
|
||||||
|
|
||||||
(pass-if-exception "no args" exception:wrong-num-args
|
(pass-if-exception "no args" exception:wrong-num-args
|
||||||
(open-output-pipe))
|
(open-output-pipe))
|
||||||
|
@ -187,15 +190,13 @@
|
||||||
;; the child a broken pipe and so allow it to exit.
|
;; the child a broken pipe and so allow it to exit.
|
||||||
(close-port (car c2p))
|
(close-port (car c2p))
|
||||||
(close-pipe port)
|
(close-pipe port)
|
||||||
result)))))
|
result))))))
|
||||||
|
|
||||||
)
|
;;
|
||||||
|
;; close-pipe
|
||||||
|
;;
|
||||||
|
|
||||||
;;
|
(with-test-prefix "close-pipe"
|
||||||
;; close-pipe
|
|
||||||
;;
|
|
||||||
|
|
||||||
(with-test-prefix "close-pipe"
|
|
||||||
|
|
||||||
(pass-if-exception "no args" exception:wrong-num-args
|
(pass-if-exception "no args" exception:wrong-num-args
|
||||||
(close-pipe))
|
(close-pipe))
|
||||||
|
@ -208,5 +209,4 @@
|
||||||
(pass-if "exit 1"
|
(pass-if "exit 1"
|
||||||
(let ((st (close-pipe (open-output-pipe "exit 1"))))
|
(let ((st (close-pipe (open-output-pipe "exit 1"))))
|
||||||
(and (status:exit-val st)
|
(and (status:exit-val st)
|
||||||
(= 1 (status:exit-val st))))))
|
(= 1 (status:exit-val st)))))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue