Commit Graph

14 Commits

Author SHA1 Message Date
bdc 8764714a07 fix for sunos 1997-04-23 20:34:54 +00:00
shivers db69cd677b Some functions that were passed string "out" paramters (char**)'s were
neglecting to assign them in error cases. We'd return from the C function
into the cig C stub with random garbage still in these pointers. The
string rep converters would then treat this garbage as a real pointer to
be copied into malloc'd storage, and havoc would result.

I fixed the code to assign 0 to the pointers in error cases. I should fix
cig to pre-initialise out parameters. The only real problem code was in
userinfo1.c, but I scanned all the sources, and fixed a few suspicious cases
here and there as well.
1997-04-04 20:49:55 +00:00
shivers a8e25a6827 Corrected spelling error in comment. 1997-02-19 23:15:27 +00:00
shivers e945b99adf Replaced _POSIX_PATH_MAX with its value, 255, because HP-UX didn't
have this POSIX-required symbol. ???
1996-11-12 11:44:20 +00:00
shivers faa08159d0 The cwd code nows starts out with the filename buffer initialised
to length _POSIX_PATH_MAX.
1996-11-11 20:56:52 +00:00
bdc 4e05a0aaf1 Solaris users with BIND installed lose MAXHOSTNAMELEN 1996-09-26 20:18:35 +00:00
bdc a06f2a9e34 minor tweak from Lewis Girod 1996-09-26 19:30:22 +00:00
shivers 8fc03c01c8 - Improved CLOEXEC support for unrevealed ports.
- sleazy-call/fdes useage introduced for speed.
- fcntl support added.
1996-09-12 04:53:36 +00:00
shivers 996ee5db33 Hacked so that errno/intr error returns cause retries. 1996-08-24 07:36:50 +00:00
bdc 507631b689 sperber's strerror fix 1995-11-01 23:00:57 +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
shivers 3e52c5100b - Fixed errno-error calls to include the syscall's args. This should greatly
improve the quality of the error messages.

- Fixed file-match so that if a filter procedure raises an error condition,
  it is caught and treated as a match failure (as if the procedure returned
  #f). This means you no longer get blown out of the water by
    (file-match "." #f file-directory?)
  if the cwd contains a dangling symlink, for example.

- Added set-file-times (utime).

- Caught a bug in an unused arm of the define-errno-syscall macros (rest arg
  case).

- Perhaps one or two other minor tweaks.
1995-10-21 12:07:25 +00:00
bdc 2302efe24e *** empty log message *** 1995-10-14 03:34:21 +00:00