Commit Graph

13 Commits

Author SHA1 Message Date
shivers 33e3bc8c62 Was not properly testing for error in fdport_write_substring's call to
fwrite().
1997-04-08 20:07:30 +00:00
shivers 6a7ecc38a1 Added #ifdef linux conditionalisation to the linux-specific fixup code. 1997-02-27 04:49:28 +00:00
shivers 66735d9c9e fdports1.c: hacked in a gross fix for linux bug. The problem is that
linux stdio functions retry when interrupted, instead of returning
    errno=EINTR.

regexp: New regexp-substitute function.

scsh-interfaces: Fixed a typo in a type decl.
1997-02-26 20:37:53 +00:00
shivers bad528299e Ripped out now-useless cloexec_unrevealed. 1997-02-19 23:28:38 +00:00
shivers 14f8b65a74 read_fdport_substring() didn't reset the port's peek-char to #F when
consuming it. Reported by JSC 10/16/96, with fix.
1996-10-16 16:37:51 +00:00
shivers 70a1342cef Hacked I/O system so that ports set/clear their
fd's CLOEXEC bit when they become unrevealed/revealed.
1996-09-12 01:43:53 +00:00
shivers 996ee5db33 Hacked so that errno/intr error returns cause retries. 1996-08-24 07:36:50 +00:00
shivers 2c9e06d6ae Changed char to int so non-ASCII chars wouldn't be sign-extended -- was
blowing char-set test in skip_chars.
	-Olin
1995-11-20 06:32:02 +00:00
shivers 755913967b Added native-code support for SKIP-CHAR-SET. 1995-11-20 04:15:04 +00:00
shivers 00af71f77d There was a weird bug in the GC system. The image-writing code causes a
GC to assemble a compacted heap image in newspace which it then writes out
to disk. Then the VM calls ABORT-GC to cancel the GC operation, which scans
the current space, fixing up the "broken hearts" -- restoring word 1 of
each structure that got clobbered with a forwarding pointer.

Unfortunately, someone (possibly myself) had inserted a post_gc_fdports() call
into the VM between the gc and the abort. This procedure updates a C vector of
Scheme values (fdports[]) by following forwarding pointers -- BUT -- in this
instance we didn't really want to break hearts, and the abort-gc code didn't
know about the fdports[] vector, so it couldn't undo the effects. This caused
the fdports[] vec to point into hyperspace after the image dump, and *that*
meant on the next GC, all the live ports were considered dead. Oops.

The fix was to remove this bogus call. The post_gc_fdports() proc is now
called only after a *real* GC.
    -Olin
1995-10-29 15:45:22 +00:00
shivers 4ae0a89c53 Now imports machine/stdio_dep.h interface spec. 1995-10-26 13:34:33 +00:00
shivers 7c90829350 Added a whole bunch of .h files describing the module structure of the C
files. These files mostly mediate between the C source (export) and
the corresponding C stub files (import) generated by the Scheme files
calling the C routines.

This provided much better argument type checking that before; lots of
small bugs were caught.

Also added const keywords wherever I could find a reasonable place
to improve error detection and efficiency.

Tuned up the makefile to reflect all of this structure. Its dependencies
were pretty out-of-date as it was. It could probably use further work.
1995-10-22 12:34:53 +00:00
bdc 2302efe24e *** empty log message *** 1995-10-14 03:34:21 +00:00