summaryrefslogtreecommitdiff
path: root/libguile/ioext.h
diff options
context:
space:
mode:
authorGary Houston <ghouston@arglist.com>2000-11-07 21:34:45 +0000
committerGary Houston <ghouston@arglist.com>2000-11-07 21:34:45 +0000
commitc2ca44933f8b2b43ec3efa541a6824537c45a560 (patch)
treeb93f926b2a7b6410cf36252c58f82e37979f5fdc /libguile/ioext.h
parentb100f5eed22720eed9a8c2caa5dd46b0f712bae8 (diff)
downloadguile-c2ca44933f8b2b43ec3efa541a6824537c45a560.tar.gz
2000-11-07 Gary Houston <ghouston@arglist.com>
* ports.c (scm_port_for_each): new proc. implements port-for-each, which applies a procedure to each port in the port table. ports.h: declare scm_port_for_each. * ioext.c (scm_dup2): new proc. implements "dup2" which is a simple wrapper for the dup2 system call (unlike dup->fdes or primitive-move->fdes). * ioext.h: declare scm_dup2. * filesys.c (scm_close_fdes): new proc. implements "close-fdes" which is a simple wrapper for close system call (unlike scm_close). * filesys.h: declare for scm_close_fdes.
Diffstat (limited to 'libguile/ioext.h')
-rw-r--r--libguile/ioext.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libguile/ioext.h b/libguile/ioext.h
index 37aa09559..a79b1a5b5 100644
--- a/libguile/ioext.h
+++ b/libguile/ioext.h
@@ -54,6 +54,7 @@ extern SCM scm_write_line (SCM obj, SCM port);
extern SCM scm_ftell (SCM object);
extern SCM scm_redirect_port (SCM into_pt, SCM from_pt);
extern SCM scm_dup_to_fdes (SCM fd_or_port, SCM newfd);
+extern SCM scm_dup2 (SCM oldfd, SCM newfd);
extern SCM scm_fileno (SCM port);
extern SCM scm_isatty_p (SCM port);
extern SCM scm_fdopen (SCM fdes, SCM modes);