Commit Graph

296 Commits

Author SHA1 Message Date
shivers 402082fc77 New directory for generic libs. 1999-09-13 17:38:59 +00:00
shivers 82bacc1e75 Shifting this kind of library over to a new lib/ directory, where I'll stash
things like SRFI libs.
1999-09-13 17:37:48 +00:00
szilagyi a0a785bdea updated Olin's copyright message as a test 1999-09-09 21:27:57 +00:00
shivers 7e82845fb8 Folding SRE system into scsh. 1999-09-08 15:21:40 +00:00
shivers 90d43117bf Disgusting hackitude to work around mysterious S48 bug in C-calling system. 1999-09-08 15:20:26 +00:00
shivers 64613d96db Hacks to fit in with the new SRE regexp system. 1999-09-08 15:19:16 +00:00
bdc 42bd0f8c8b Resurrected NeXT build 1999-08-13 17:54:59 +00:00
shivers 7e1ad158c7 Added "See file COPYING." to all the copyright notices, so we can
do the open-source thing w/o larding up the source code.
1999-08-06 13:28:52 +00:00
bdc 442db87f66 Linux fixes 1999-07-15 01:27:15 +00:00
bdc 4c333f278b Removed hard coded PATH from mkh with did not work on NT 1999-07-13 18:02:50 +00:00
shivers 2413f9c763 More fitting the SRE system into the scsh upgrade; should have been
committed with previous commit of the rest of the sources in the
rx directory.
    -Olin
1999-07-11 20:41:27 +00:00
shivers 96d9b0e068 Checking in a slew of systemic changes:
- Switching scsh over to the SRE regexp system.
    - Upgraded string & character handling
    - Switching code over to list-lib SRFI names. Some switchover to
      probably new string-lib SRFI names, though that SRFI hasn't happened,
      so it's probably a waste of time at the moment to stress out about it.
    - General switching from "reduce-" lexeme to "fold-" lexeme.
	-Olin

A per-file breakdown of changes:
    ccp.scm		New
    char-set.scm	New features
    stringlib.scm	New
    stringpack.scm	New

    awk.scm		SRE
    filemtch.scm	SRE string-lib
    fname.scm		string-lib
    fr.scm		SRE string-lib
    glob.scm		SRE
    procobj.scm		list-lib
    rdelim.scm		SRE
    re.c		SRE killed
    re.scm		SRE killed
    re1.c		SRE moved to rx/ dir
    re1.h		SRE moved to rx/ dir
    rx/...		SRE General fitting-it-in to the upgraded scsh.
    scsh-interfaces.scm
    scsh-package.scm
    scsh.scm		type-check loophole added; string-lib; list-lib
		    	reduce-port -> foldl-port

    syscalls.scm	string-lib; diked out unused MATCH-FILES code
    syscalls.c

    utilities.scm	string-lib; {any?,every?} -> {any,every}
    procobj		list-lib
1999-07-11 20:38:42 +00:00
shivers 1bb7a2e494 Bugfix. How did this go so long undetected? -Olin 1999-07-11 20:18:44 +00:00
shivers 48a5f0516c Tiny bugfix: signed -> unsigned char decl. -Olin 1999-07-11 20:17:14 +00:00
shivers 3039de6af6 Added some extra derived files created during build: *.ih regex.h re. 1999-07-10 20:03:26 +00:00
shivers 14fe107a7e 1. Removed cruft (timer.c, try.c, regexp.{3,c,h}, regmagic.h regsub.c)
that shouldn't even be in this dir -- it was from a different Spencer
   package, and wasn't used; got copied in by accident at some point.
2. Removed *.ih Makefile regex.h
   These are derived files produced during the build.
3. Removed patch-msg, which is old & dead.
4. Updated rest of the source to a newer version of Spencer's Posix package
   (alpha3.7). Not all of these files changed, actually, but I guess
   the last-mod dates did, so CVS thinks they're being updated or something?
1999-07-10 20:01:52 +00:00
shivers c23ba5b0cb Fixed a minor bug; made a small change using FOLDR. 1999-07-10 05:47:48 +00:00
shivers a195317fc8 Making a dir for the C regexp engine (Spencer's) 1999-07-06 03:50:57 +00:00
shivers eb65bdec23 Added directory of SRE code. 1999-07-06 03:45:37 +00:00
bdc 17695ee207 Updated version to 0.5.2
Incorporated Windows NT support via cygwin32
1999-06-21 04:35:42 +00:00
shivers ec63c53ee6 Fixed bug whereby interrupt 0 = interrupt/alarm, i.e., SIGALRM, wasn't
being switched over from default handling (which is process termination)
to S48/scsh handling.
1998-06-16 21:17:58 +00:00
shivers c266ffbf46 Extended char-set package. 1998-06-16 21:04:38 +00:00
shivers 269b603081 Trivial reindent.
-Olin
1998-06-16 18:05:44 +00:00
shivers 3239ff9076 Rehacked regexp-substitute/global; I can't remember why.
Fixed string-match to handle a regexp passed as a string.
1998-05-02 17:33:50 +00:00
shivers 21ac090065 Fixed argv so that (argv 0) works. 1998-05-02 17:25:56 +00:00
shivers b24c0182c8 Proper values for wait/poll and wait/stopped-chidren. 1998-05-02 17:23:08 +00:00
shivers 29c3ebf99a Simplified optional arg handling a bit. 1998-05-02 17:13:09 +00:00
shivers 65f6bdd35a timezone code bullet-proofed a bit. 1997-11-10 02:55:17 +00:00
shivers a5f1300753 - fixed timezone-formatting bug
- added date field-mod procs
- commented a bit
1997-11-10 02:53:24 +00:00
shivers c7344577f3 Added ply-three version number to scsh-version-string. 1997-11-10 02:52:11 +00:00
shivers 7463169adf Added new features. 1997-11-10 02:51:23 +00:00
shivers acb29ac3bc Fixed bug -- LET -> LET* 1997-11-10 02:50:48 +00:00
shivers 75dbb6c4bb Added field-modifying and record-copy proc. 1997-11-10 02:49:36 +00:00
shivers 6011c98e03 Awk now precompiles regexps, so bogus comment deleted. 1997-11-10 02:48:20 +00:00
shivers 3d91476f54 Tty-hacking procs when possible take stdio as a default upon which to operate.
These procs now may be applied to tty file names as well as ports and fdes.
1997-11-10 02:47:36 +00:00
shivers 61cdf20586 Improved FILE-NOT-ACCESSIBLE, which still has problems, and added discussion
of its problems to the manual.
1997-11-10 02:41:28 +00:00
shivers cdfa775de7 Added ABSOLUTE-FILE-NAME and ->REGEXP. 1997-11-10 02:34:45 +00:00
shivers 1eecb9c9c5 Fixed a bug in the type declaration of with-errno-handler*. 1997-10-06 21:15:18 +00:00
shivers 38c76cdf84 Cleaned up the CONSTANT-GLOB? function a bit. 1997-10-06 21:14:20 +00:00
bdc 402c617ec5 updated version 1997-06-09 01:58:13 +00:00
bdc 13dbef06b1 factored out arg parsing 1997-06-09 01:47:19 +00:00
bdc 88aaa91880 you can now specifiy an arg vm parser 1997-06-09 01:46:57 +00:00
shivers 4703ce142a There was an atomicity problem/race condition -- if a child process died
after it was forked, but before the scsh fork procedure could register
the child's procobj in the pid/procobj table, then when the SIGCHLD
signal-handler reaped the process, there would be no procobj for it.
We now lock out interrupts across the fork and register operations.
1997-04-30 20:33:26 +00:00
bdc 0f1f30eaa1 update release number 1997-04-26 17:46:16 +00:00
bdc 178cfa8e2e i do not know how this happened 1997-04-23 22:51:33 +00:00
bdc 8764714a07 fix for sunos 1997-04-23 20:34:54 +00:00
bdc 7f05d6d427 From: Franklin Chen <chen@adi.com> 1997-04-23 20:24:56 +00:00
bdc 0e3db5eab6 from Kevin Esler <esler@pureatria.com> 1997-04-23 02:26:56 +00:00
bdc 7c80405943 fix for irix lame compiler 1997-04-23 02:24:41 +00:00
bdc 5b5f58bd70 fixed version numbers 1997-04-21 20:55:48 +00:00
shivers 41bf8dad3f Jim Blandy reported some small problems with the meta-arg Scheme parser. 1997-04-19 19:12:37 +00:00
shivers 5c5ae4dc99 Fixed some design and implementation bugs in regexp-substitute/global. 1997-04-19 04:01:19 +00:00
shivers a304e9b7f9 - The daylight-savings time flag was blowing up date->time conversion
when it wasn't relevant.

- Error returns from mktime() were not being caught.
1997-04-18 03:25:32 +00:00
shivers 1a2d8690ce Added regexp-substitute and regexp-substitute/global. 1997-04-18 03:23:26 +00:00
shivers b684a0e621 Cleaning up a bit. 1997-04-10 01:24:50 +00:00
shivers 906fceb86f Removed the redundant -i and -o switches. 1997-04-10 01:17:22 +00:00
shivers 33e3bc8c62 Was not properly testing for error in fdport_write_substring's call to
fwrite().
1997-04-08 20:07:30 +00:00
bdc c89fb29390 more elegant signal ifdef 1997-04-05 22:16:05 +00:00
bdc 0225bb0bf3 user contributed file 1997-04-05 22:15:38 +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 1a1950d2f5 Fixed typo bug in set-file-group. 1997-04-02 20:12:33 +00:00
shivers 0e28399b12 Changed regexp-substring so that unmatched submatches return #f instead of
raising an error.
1997-03-28 20:55:23 +00:00
shivers 230263ee0d Fixed an arity bug in %set-unix-signal-handler's call to
%%set-unix-signal-handler.
1997-03-10 23:46:42 +00:00
shivers 8d7dee0bfa *** empty log message *** 1997-03-10 04:57:18 +00:00
shivers 417b6046f8 Early autoreaping now done via SIGCHLD signal handler.
Ignored signals were done by putting a noop handler on the signal.
This could screw up passing ignores across execs.
Now, when you set an S48 interrupt handler to #f, we pass this through
to Unix.
1997-03-09 07:28:20 +00:00
shivers 2773441f05 Rewrote SLEEP (and added SLEEP-UNTIL) so that it doesn't hang up signal
delivery in C code.
1997-03-09 07:22:41 +00:00
bdc 101a61082f solaris 2.5 tested 1997-03-09 02:37:06 +00:00
shivers e989a744e4 Had to shuffle packages due to broken package dependencies.
The whole thing is a disaster and should be completely re-factorised.
1997-02-27 04:50:57 +00:00
shivers 6a7ecc38a1 Added #ifdef linux conditionalisation to the linux-specific fixup code. 1997-02-27 04:49:28 +00:00
shivers b980922f0d Fixed bug in stdio->stdports -- it was using fdes->inport to make the
output ports.
1997-02-26 22:21:48 +00:00
shivers 0229b80a6c Linux-specific support. 1997-02-26 22:18:29 +00:00
shivers b02ac4dc83 hacked in a gross fix for linux bug. The problem is that
linux stdio functions retry when interrupted, instead of returning
    errno=EINTR. linux/libansi.c now has a #include "fix_stdio.c"
    in it to get the fixup code included. This is very bogus.
1997-02-26 20:38:39 +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
bdc 9ccd709a52 spelling error 1997-02-21 08:51:06 +00:00
shivers 630f678236 Added a few bits. 1997-02-19 23:29:41 +00:00
shivers bad528299e Ripped out now-useless cloexec_unrevealed. 1997-02-19 23:28:38 +00:00
shivers bf449b53b7 Added types to decls, possibly other stuff. 1997-02-19 23:24:53 +00:00
shivers 06eb60980d Upgraded regexp system. 1997-02-19 23:23:48 +00:00
shivers 25aa2b845a SIGIO and SIGPOLL have value 29, not 23. 1997-02-19 23:19:37 +00:00
shivers a8e25a6827 Corrected spelling error in comment. 1997-02-19 23:15:27 +00:00
bdc ae81b06f85 host-info bug 1996-12-02 22:18:25 +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
shivers 2f7c39be3f -s<num> is now -sfd <num> -- more consistent with general switch design. 1996-11-11 19:21:25 +00:00
shivers 47c2eea2dd Changed OPEN/NONBLOCKING to OPEN/NON-BLOCKING and
SET-RECORD-LOCK-NOBLOCK to SET-RECORD-LOCK-NO-BLOCK.
The former was always documented to be
    OPEN/NON-BLOCKING
and the latter isn't exported in any event.
1996-11-11 18:52:19 +00:00
shivers 4dd24741a8 Minor bugfix -- Arranged to export set-enabled-interrupts! as
set-enabled-interrupts.
1996-11-11 17:05:54 +00:00
shivers c0ab08bd2c Removed ! suffix from SET-INTERRUPT-HANDLER and SET-ENABLED-INTERRUPTS.
I'm trying to be consistent on this issue, but not very successfully.
1996-11-11 16:21:53 +00:00
bdc d9bf36e0bd added scsh/scsh.vm to the ignore list 1996-11-11 01:10:38 +00:00
bdc 8e3073352a updated for next minor release 1996-11-10 20:51:15 +00:00
shivers 454808a9cd Changed lock-region to use proc objects instead of pids, and fixed a
bug in UNLOCK-REGION.
1996-11-10 13:59:58 +00:00
shivers ea9745ee2f Interrupt system fixed up and installed. 1996-11-10 13:58:46 +00:00
shivers 7e66a68afa - Interrupt handlers really installed and documented.
- File locking fixed to use proc objects instead of pids, and bugs in code
  and documentation fixed.
1996-11-10 13:56:13 +00:00
shivers 52cd685e9a Truth-in-advertising documentation: confession is good for the soul. 1996-11-09 23:13:35 +00:00
bdc 02dd0ebf8d fixed signals-ignored-by-default for ultrix irix 1996-11-08 20:42:30 +00:00
shivers 5761b6ce03 Fixed up the sighandler code some. 1996-11-07 15:59:31 +00:00
bdc 1fb6c3634b cig stuff to be updated 1996-11-04 18:14:02 +00:00
bdc 85d516da9b updated files for 0.4.4 release 1996-11-04 01:58:53 +00:00
bdc d0fef5a49c fix for sunos 4.x build error because of non-standard declarations of setgid and setguid 1996-11-04 01:31:01 +00:00
bdc 2fe3ec94a7 fix for signals-ignored-by-default for aix 1996-11-04 01:30:20 +00:00
bdc 99b82763bb fix for fileno on solaris 2.5 1996-11-04 01:29:46 +00:00