diff options
author | Gary Houston <ghouston@arglist.com> | 1997-03-29 18:42:43 +0000 |
---|---|---|
committer | Gary Houston <ghouston@arglist.com> | 1997-03-29 18:42:43 +0000 |
commit | 67ec36676ea1eb123d62f87d1269f5e37c228af3 (patch) | |
tree | 25398769c7f73d69074fedc015f84e42943df94d /libguile/ioext.c | |
parent | 9337637f9a078de747d54e1448107a9a9d09e92d (diff) | |
download | guile-67ec36676ea1eb123d62f87d1269f5e37c228af3.tar.gz |
* ioext.c (scm_setfileno): throw a runtime error if SET_FILE_FD_FIELD
wan't defined. Don't include fd.h.
* Previously fd.h was regenerated whenever configure was run,
forcing a couple of files to be recompiled.
* fd.h.in: deleted, SET_FILE_FD_FIELD moved to ioext.c.
* configure.in: AC_DEFINE FD_SETTER instead of HAVE_FD_SETTER.
Check for _fileno as well as _file.
Don't output fd.h.
* ioext.c: don't fd.h.
* acconfig.h: remove duplicate HAVE_FD_SETTER and change the
other to FD_SETTER.
* Change the stratigy for getting information about errno
(and now signal number) values, e.g., ENOSYS, SIGKILL. Instead of
generating lists of symbols during the build process, which will
not always work, include comprehensive lists in the distribution.
To help keep the lists up to date, the "check_signals" and
"check_errnos" make targets can be used.
* configure.in: don't check for a command to extract errno codes.
* Makefile.am: update file lists, remove errnos.list and errnos.c
targets, add cpp_err_symbols.c, cpp_sig_symbols.c, check_signals,
check_errnos targets.
(CLEANFILES): remove errnos.c and errnos.list, add
cpp_err_symbols_here cpp_err_symbols_diff cpp_err_symbols_new
cpp_sig_symbols_here cpp_sig_symbols_diff cpp_sig_symbols_new
* errnos.default: deleted.
* cpp_signal.c: new file.
* cpp_errno.c: renamed from errnos_get.c.
* cpp_err_symbols, cpp_sig_symbols: new files.
* cpp_cnvt.awk: renamed from errnos_cnvt_awk.
* error.c (scm_init_error): #include cpp_err_symbols instead of
errnos.c.
* posix.c (scm_init_posix): don't intern signal symbols. #include
cpp_sig_symbols.c.
* strop.c (scm_i_index): allow the lower bound to be equal to the
length of the string, so a null string doesn't always give an error.
* posix.h: new prototypes.
* posix.c (scm_status_exit_val, scm_status_term_sig,
scm_status_stop_sig): new functions, as in scsh. They break down
process status values as returned by waitpid.
Diffstat (limited to 'libguile/ioext.c')
-rw-r--r-- | libguile/ioext.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/libguile/ioext.c b/libguile/ioext.c index 7914b4877..0fd45095e 100644 --- a/libguile/ioext.c +++ b/libguile/ioext.c @@ -42,7 +42,6 @@ #include <stdio.h> -#include "fd.h" #include "_scm.h" #include "genio.h" #include "read.h" @@ -402,6 +401,9 @@ scm_primitive_move_to_fdes (port, fd) return SCM_BOOL_T; } +#ifdef FD_SETTER +#define SET_FILE_FD_FIELD(F,D) ((F)->FD_SETTER = (D)) +#endif void scm_setfileno (fs, fd) @@ -411,15 +413,7 @@ scm_setfileno (fs, fd) #ifdef SET_FILE_FD_FIELD SET_FILE_FD_FIELD(fs, fd); #else - Configure could not guess the name of the correct field in a FILE *. - - This function needs to be ported to your system. - - SET_FILE_FD_FIELD should change the descriptor refered to by a stdio - stream, and nothing else. - - The way to port this file is to add cases to configure.in. Search - that file for "SET_FILE_FD_FIELD" and follow the examples there. + scm_misc_error ("scm_setfileno", "Not fully implemented"); #endif } |