Make trace buffer resizable at runtime, via ##sys#resize-trace-buffer

 - Add C_resize_trace_buffer
 - Add ##sys#resize-trace-buffer interface, returning old size
 - Move check for min trace buffer size to C_clear_trace_buffer,
   where the buffer is actually allocated
 - In the current implementation, resizing the buffer clears its contents.

Signed-off-by: Peter Bex <peter.bex@xs4all.nl>
manual/Unit lolevel: markup fixes

In documentation for record-instance-slot and record-instance-slot-set!.
Clean up 64-bit detection logic (fixes #979)

Affects C_SIXTY_FOUR and C_LLP. Also add some notes about C_NONUNIX
being misleading and the check around unistd.h, inttypes.h and sys/types
being very unsemantical (it's completely unclear what's being checked
there).

Signed-off-by: Moritz Heidkamp <moritz@twoticketsplease.de>
Fix TMPDIR handling in chicken-install (#1048)

- Clean up make-install-command so it doesn't depend too much on the
   e+d+v list structure used elsewhere.
- Don't "override" current-directory as if it were a parameter:
   just change directory back and forth using dynamic-wind.

Signed-off-by: Jim Ursetto <zbigniewsz@gmail.com>
debugging output for finalizer-management blindly wrote to stdout, which could interfere with code that uses with-output-to-string, for example.

Signed-off-by: Peter Bex <peter.bex@xs4all.nl>
Fix handling of -no-symbol-escape and -no-parentheses-synonyms

Add some basic tests for the effect of the underlying parameters on
READ, and fix the manual which mentioned a STYLE argument for
-no-parentheses-synonyms Thanks to Matt Gushee for reporting this bug.

Signed-off-by: Moritz Heidkamp <moritz@twoticketsplease.de>
Update acknowledgements chapter
Read no more than the buffer length when a length of #f is passed in

Signed-off-by: Mario Domenech Goulart <mario.goulart@gmail.com>
Signed-off-by: Peter Bex <peter.bex@xs4all.nl>
Fix #999

Now, unit ports depends on extras.
The dependency on ports is removed from extras as it doesn't use anything from ports.

Signed-off-by: Mario Domenech Goulart <mario.goulart@gmail.com>
Add CVE-2013-4385 identifier to NEWS
Add HAVE_POSIX_POLL to cygwin Makefile.

Pedro Melendez tested and verified this works on Windows.
After this, select() is only used on Mingw anymore
Document make-input-port's other optional arguments (except for read-buffered which is currently undocumented itself)
Forgot final sentence about read-line
A few fixes for file-creation-mode.

- Don't pass #f to C_umask as if it were a fixnum
- Ensure it always returns the old value even if no new value is set
- Document the fact that MODE is optional

Signed-off-by: Christian Kellermann <ckeen@pestilenz.org>
In DEBUGBUILDs, add sanity assertions to most important Scheme object accessors.

A few unused macros are removed and the accessors are cleaned up
somewhat to ensure all access goes through the accessors which have
sanity assertions.

Signed-off-by: Christian Kellermann <ckeen@pestilenz.org>
Fix CHICKEN_initialize's call to C_randomize (which expects a boxed fixnum)

Signed-off-by: Christian Kellermann <ckeen@pestilenz.org>
Fix several subtle problems in the reader caused by calling char=? on EOF

Signed-off-by: Christian Kellermann <ckeen@pestilenz.org>
Fix read-string! behaviour after peeking at EOF & add regression test.

Slot 6 does not store the peeked character (anymore?), but whether the
port is in an EOF state.  Peeking goes via ungetc on FILE * ports, and
via custom logic in other port types.

Signed-off-by: Christian Kellermann <ckeen@pestilenz.org>
Fix #1051: use C99 isnormal() and return canned values.

Instead of relying on unusable code from numbers egg, we return
+1.0/+inf.0 or -1.0/+inf.0 when given a subnormal floating-point number.

Signed-off-by: Christian Kellermann <ckeen@pestilenz.org>
Fix data corruption problem in list->queue and add a set of tests for queues.

Signed-off-by: Mario Domenech Goulart <mario.goulart@gmail.com>