posix: Add file-type to list of exported identifiers

This has been reported by Jules Altfas.

Signed-off-by: Christian Kellermann <ckeen@pestilenz.org>
Correct description of ERROR parameter for file-type. Thanks zbigniew!

Signed-off-by: Christian Kellermann <ckeen@pestilenz.org>
typo
when trying all available sources for egg-download, do not invalidate list-entries on failure for "local" transport. This allows using local egg-trees as "overlay" repositories. Hetwork-based transports are still invalidated once a download failed, as it is assumed that the network access is down (or timing out). This patch also fixes a bug in the handling of "local" transport, which didn't test whether the egg directory acutally existed.

Signed-off-by: Peter Bex <peter.bex@xs4all.nl>
Add CVE identifier for qs issue to NEWS (CVE-2013-2024)
Merge branch 'master' of ssh://call-cc.org/~/chicken-core
Change test argument to find-files conversion to check for procedure and otherwise pass it to irregex, so that anything accepted by the irregex constructor is also allowed as a test (previously, SRE expressions were not accepted)

Signed-off-by: felix <felix@call-with-current-continuation.org>
Delete stale binaries in cross build of egg.

When cross-building extensions from a local directory (instead of
downloading) and the setup script uses make(1) or the "make" egg, or
may otherwise be influenced by files produced during the build, then
the 2nd (target) build may fail due to binaries left by the 1st build,
or the 1st may have leftover binaries from a previously built target
... you get the idea.

This change modifies "chicken-install.scm" to delete binary files
(with the extensions "so", "dll", "o", and a few others) before
building the host- or target-variant of an egg.

Signed-off-by: Peter Bex <peter.bex@xs4all.nl>
Signed-off-by: felix <felix@call-with-current-continuation.org>
documented release-number-vector
Fix types database entry for file-select to allow for #f and bare fixnums, too
Implement file-select in terms of POSIX poll() for UNIX

Signed-off-by: felix <felix@call-with-current-continuation.org>
Replace select() by poll() when available, in char-ready? and tcp-accept-ready?

Also, timeout values in tcp-accept and tcp-connect, and in the TCP port read and write procedures are now honored more strictly by calculating the wait time at the start instead of after each interrupted system call.

It was pointed out by Florian Zumbiehl that select() was still being used in a few places, and Joerg Wittenberger provided an initial patch to remove select() from the TCP unit.

Signed-off-by: felix <felix@call-with-current-continuation.org>
Restore call to (yield) which got dropped on the floor in previous commit.  This ensures tcp-connect will succeed properly even if connect()-operation in progress
Allow &rest and &optional in type-declarations.

This is intended to keep code more portable by not having to use
non-standard reader extensions.

Signed-off-by: Peter Bex <peter.bex@xs4all.nl>
Reimplement topological-sort with cycle detection.

Signed-off-by: felix <felix@call-with-current-continuation.org>
fix (terminal-size) on solaris

Signed-off-by: Peter Bex <peter.bex@xs4all.nl>
Signed-off-by: Mario Domenech Goulart <mario.goulart@gmail.com>
Add CVE-2013-2075 to the NEWS file
Remove C_set_timeval function which is no longer in use (was used by file-select when it was implemented with select())
more general macros for solaris platform recognition

Signed-off-by: Peter Bex <peter.bex@xs4all.nl>
Signed-off-by: felix <felix@call-with-current-continuation.org>
Fix file descriptor leaks in tcp that happen in case of exceptions before a port or a listener gets returned to the caller. These close the file descriptor and report the original errno corresponding to the error that occurred even if close() modified errno.

Originally suggested by Florian Zumbiehl.  This patch is based on his
work, but it also simplifies tcp-listen by removing the unused
multi-value return in ##net#bind-socket, and replacing let-optionals
with the much simpler DSSSL optionals.

Signed-off-by: Moritz Heidkamp <moritz@twoticketsplease.de>