F_DUPFD, F_GETFD, F_SETFD, F_GETFL, F_SETFL, F_GETOWN, F_SETOWN, these
are all ints (per command arg to fcntl). Likewise FD_CLOEXEC which is
an int arg to fcntl.
scm_from_long for O_RDONLY, O_WRONLY, O_RDWR, O_CREAT, O_EXCL,
O_NOCTTY, O_TRUNC, O_APPEND, O_NONBLOCK, O_NDELAY, O_SYNC and
O_LARGEFILE. These are all int not long.
and SCM_CRITICAL_SECTION_END, believe not needed. Their placement
meant #\nul in the input (detected by scm_to_locale_string) and a bad
flags arg (detected by scm_to_int) would throw from a critical
section, causing an abort().
scm_minor_version, scm_micro_version, scm_effective_version,
scm_version, scm_init_version): Use SCM_API instead of just extern,
for the benefit of mingw. Reported by Cesar Strauss.
on EPIPE. This was previously disabled but introduction of HAVE_PIPE
check in configure.in unintentionally enabled it. Believe that
testing errno after scm_prin1 or scm_putc is bogus, a long ago error
can leave errno in that state. popen.test "no duplicates" output test
provoked that.
scm_i_make_ratio(), so fractions are only read.
scm_i_fraction_reduce() modifies a fraction when reading it. A
race condition might lead to fractions being corrupted by reading
them concurrently.
* numbers.h: remove SCM_FRACTION_SET_NUMERATOR,
SCM_FRACTION_SET_DENOMINATOR, SCM_FRACTION_REDUCED_BIT,
SCM_FRACTION_REDUCED_SET, SCM_FRACTION_REDUCED_CLEAR,
SCM_FRACTION_REDUCED.
needed because it's empty, but including it does no harm.
(-lm): Look for "cos" instead of "main", since cos and friends are the
purpose of looking for libm.
(winsock etc): Test $host = *-*-mingw* rather than $MINGW32, autoconf
regards the latter as obsolete.
(AC_MINGW32): Remove test, $MINGW32 now unused.
(uint32_t): Look at HAVE_NETDB_H rather than hard-coding __MINGW32__
in the test program.
* threads.c (thread_print): Cope with the case where pthread_t is a
struct, as found on mingw. Can't just cast to size_t for printing.
Reported by Nils Durner.
Should be scm_i_pthread_t of course, to cope with null-threads.h.