Chris Hanson [Thu, 8 Jan 1998 05:58:22 +0000 (05:58 +0000)]
Fix bug in Windows 95: when a subprocess exits, close its I/O ports.
This is necessary because our code can get into a state where it is
trying to read from a subprocess pipe and needs to be told that the
other end of the pipe was closed. This indication is supplied by
Windows NT, but does not appear to work properly under Windows 95.
Chris Hanson [Thu, 8 Jan 1998 05:56:11 +0000 (05:56 +0000)]
Detect FAT32 file system and treat it the same as VFAT.
Chris Hanson [Mon, 5 Jan 1998 06:22:47 +0000 (06:22 +0000)]
Fix method used to compute the size of an image's data array.
Previous method was little better than a guess -- and was wrong. New
method is correct and uses advertised procedures to determine correct
values.
Chris Hanson [Sat, 3 Jan 1998 18:12:52 +0000 (18:12 +0000)]
Implement command-line option to specify student directory.
Chris Hanson [Sat, 3 Jan 1998 05:53:51 +0000 (05:53 +0000)]
Change how info-directory-list is initialized so that it always
includes the distribution's directory.
Chris Hanson [Sat, 3 Jan 1998 05:03:18 +0000 (05:03 +0000)]
Implement Info directory-merging mechanism like that of Emacs. This
takes "dir" files from all of the directories in the Info directory
list and merges them into a single "dir" buffer.
Chris Hanson [Tue, 30 Dec 1997 21:19:30 +0000 (21:19 +0000)]
Change definition of DOS/DEFAULT-SHELL-FILE-NAME so that it is
computed at run time rather than at build time. This is necessary
because a band created on Windows NT can be used on Windows 95, and
must have different values for each of these systems.
Chris Hanson [Tue, 30 Dec 1997 05:43:34 +0000 (05:43 +0000)]
Install new X11 gray-map code that understands about high-color
displays.
Chris Hanson [Tue, 30 Dec 1997 01:57:13 +0000 (01:57 +0000)]
Install new X11 gray-map code that understands about high-color
displays.
Chris Hanson [Tue, 30 Dec 1997 01:53:33 +0000 (01:53 +0000)]
Install new X11 gray-map code that understands about high-color
displays.
Chris Hanson [Tue, 30 Dec 1997 01:25:40 +0000 (01:25 +0000)]
Fix bug: CURRENT-HOME-DIRECTORY would signal an error when neither the
home directory nor the user name was available. Now, it returns the
root of the system drive instead.
Chris Hanson [Tue, 30 Dec 1997 00:02:14 +0000 (00:02 +0000)]
Fix typo.
Chris Hanson [Mon, 29 Dec 1997 20:46:32 +0000 (20:46 +0000)]
Fix "stat" code to properly handle filenames ending in a backslash.
This was working fine on NT, but apparently fails on '95.
Chris Hanson [Fri, 26 Dec 1997 23:46:41 +0000 (23:46 +0000)]
Add code to provide printing on NT.
Chris Hanson [Fri, 26 Dec 1997 23:45:28 +0000 (23:45 +0000)]
Add code to provide printing on NT.
Chris Hanson [Tue, 23 Dec 1997 05:16:15 +0000 (05:16 +0000)]
Add environment variable to specify the location of the 6.001 files.
Chris Hanson [Tue, 23 Dec 1997 05:16:06 +0000 (05:16 +0000)]
Add environment variable to specify the location of the 6.001 files.
Chris Hanson [Tue, 23 Dec 1997 05:09:01 +0000 (05:09 +0000)]
Add additional environment variable to check in order to find the
Windows 95 system directory.
Chris Hanson [Tue, 23 Dec 1997 04:37:03 +0000 (04:37 +0000)]
Add "-edit" command-line option to simplify starting editor.
Chris Hanson [Tue, 23 Dec 1997 02:27:11 +0000 (02:27 +0000)]
Add additional environment variable to check in order to find the
Windows 95 system directory.
Stephen Adams [Thu, 11 Dec 1997 02:51:50 +0000 (02:51 +0000)]
Make graphics work for OS/2 and WIN32 as well as X.
Update copyright.
Stephen Adams [Tue, 2 Dec 1997 05:53:21 +0000 (05:53 +0000)]
Changed error report for duplicate names to explicitly mention the
duplicated names.
Chris Hanson [Sat, 29 Nov 1997 04:37:25 +0000 (04:37 +0000)]
Change font-name parsing code so that it will properly parse fonts
whose names begin with a digit.
Chris Hanson [Thu, 20 Nov 1997 05:51:58 +0000 (05:51 +0000)]
Add some missing packages to the Win32 implementation.
Chris Hanson [Thu, 20 Nov 1997 05:51:30 +0000 (05:51 +0000)]
Define process filter to strip carriage-returns from the output of a
process. Change COMINT-EXEC to start a buffer's process -before- the
buffer's major mode is set, so that process filters can be defined in
the mode hooks.
Chris Hanson [Thu, 20 Nov 1997 05:27:45 +0000 (05:27 +0000)]
Change interface to process-filter.
Chris Hanson [Wed, 19 Nov 1997 23:40:59 +0000 (23:40 +0000)]
Change interface to process-filter.
Chris Hanson [Wed, 19 Nov 1997 08:39:34 +0000 (08:39 +0000)]
Add compiler flag that specifies to compile the object files for use
in a DLL. Change optimization target from 486 to Pentium Pro.
Chris Hanson [Sun, 16 Nov 1997 23:12:44 +0000 (23:12 +0000)]
Fix instruction that causes an assembler error on newer assemblers.
Chris Hanson [Thu, 13 Nov 1997 08:01:59 +0000 (08:01 +0000)]
Fix bugs relating to handling of messages whose bodies have been
removed from the server.
Chris Hanson [Wed, 12 Nov 1997 22:58:59 +0000 (22:58 +0000)]
Fix think-o.
Chris Hanson [Wed, 12 Nov 1997 22:38:03 +0000 (22:38 +0000)]
Fix code that determines system directory. My memory as to the
relevant environment variable was faulty when I wrote this.
Chris Hanson [Wed, 12 Nov 1997 22:14:09 +0000 (22:14 +0000)]
Final changes to previous change, to eliminate compiler warnings and
other minor problems.
Chris Hanson [Wed, 12 Nov 1997 08:40:05 +0000 (08:40 +0000)]
Rewrite OS/2 and NT versions of CURRENT-USER-NAME,
CURRENT-HOME-DIRECTORY, and USER-HOME-DIRECTORY to use the same
heuristics in both systems. Improve the heuristics so that these
procedures will work with a minimum number of environment bindings.
Chris Hanson [Tue, 11 Nov 1997 13:20:29 +0000 (13:20 +0000)]
Signal error when unable to determine user name or home directory.
Chris Hanson [Tue, 11 Nov 1997 12:52:15 +0000 (12:52 +0000)]
Signal error when unable to determine user name or home directory.
Chris Hanson [Tue, 11 Nov 1997 12:47:40 +0000 (12:47 +0000)]
Reverse earlier decision: ignore errors that occur with "$" and "~"
syntax in pathnames.
Chris Hanson [Thu, 6 Nov 1997 07:43:46 +0000 (07:43 +0000)]
Fix typo.
Chris Hanson [Thu, 6 Nov 1997 07:41:56 +0000 (07:41 +0000)]
Eliminate compiler warnings.
Chris Hanson [Thu, 6 Nov 1997 06:57:42 +0000 (06:57 +0000)]
Place BCC field after any CC fields.
Chris Hanson [Tue, 4 Nov 1997 11:04:52 +0000 (11:04 +0000)]
Implement direct SMTP mail transmission. This is for Windows systems,
which don't have a sendmail daemon, but it can be used on any system
that supports sockets.
Chris Hanson [Tue, 4 Nov 1997 11:02:07 +0000 (11:02 +0000)]
Define SUBSTRING->NONNEGATIVE-INTEGER.
Chris Hanson [Tue, 4 Nov 1997 09:27:31 +0000 (09:27 +0000)]
Eliminate old and incompatible definition of READ-LINE.
Chris Hanson [Sat, 1 Nov 1997 19:33:58 +0000 (19:33 +0000)]
Use newly-extended OPEN-TCP-STREAM-SOCKET.
Chris Hanson [Sat, 1 Nov 1997 19:21:16 +0000 (19:21 +0000)]
Change OPEN-TCP-STREAM-SOCKET and OPEN-UNIX-STREAM-SOCKET to return
one port instead of two, and to allow optional arguments to specify
the buffer size and line translation. Increase the default buffer
size to 4096 bytes.
Chris Hanson [Sat, 1 Nov 1997 19:19:39 +0000 (19:19 +0000)]
Change OPEN-TCP-STREAM-SOCKET and OPEN-UNIX-STREAM-SOCKET to return
one port instead of two, and to allow optional arguments to specify
the buffer size and line translation. Increase the default buffer
size to 4096 bytes.
Chris Hanson [Sat, 1 Nov 1997 19:12:16 +0000 (19:12 +0000)]
Change default line translation for TCP stream sockets. These almost
always use CR/LF, regardless of the operating system.
Chris Hanson [Sat, 1 Nov 1997 19:09:16 +0000 (19:09 +0000)]
Fix to match change in "osio.h".
Chris Hanson [Sat, 1 Nov 1997 07:36:14 +0000 (07:36 +0000)]
Add new procedure OS/HOSTNAME.
Chris Hanson [Sat, 1 Nov 1997 07:33:44 +0000 (07:33 +0000)]
OS/HOSTNAME now defined in runtime system.
Chris Hanson [Sat, 1 Nov 1997 07:27:36 +0000 (07:27 +0000)]
Add new primitives GET-HOST-NAME and CANONICAL-HOST-NAME.
Chris Hanson [Sat, 1 Nov 1997 07:19:26 +0000 (07:19 +0000)]
Add new primitives GET-HOST-NAME and CANONICAL-HOST-NAME.
Chris Hanson [Sat, 1 Nov 1997 07:10:30 +0000 (07:10 +0000)]
Add new primitives GET-HOST-NAME and CANONICAL-HOST-NAME.
Chris Hanson [Fri, 31 Oct 1997 01:24:24 +0000 (01:24 +0000)]
Add generalized mechanism for formation of mail return address. The
new mechanism matches that of Emacs.
Chris Hanson [Sun, 26 Oct 1997 09:32:53 +0000 (09:32 +0000)]
Partially undo last change. Time-stamp problem is more complicated
than I originally thought.
Chris Hanson [Sun, 26 Oct 1997 09:15:18 +0000 (09:15 +0000)]
Change method used to get file information. It turns out that
GetFileInformationByHandle is returning incorrect time stamps for
files on a Samba filesystem, but FindFirstFile returns correct time
stamps in the same circumstance. This discrepancy becomes apparent
when switching between daylight-savings and standard time.
Chris Hanson [Sun, 26 Oct 1997 08:05:37 +0000 (08:05 +0000)]
Add socket and gdbm support for Win32.
Chris Hanson [Sun, 26 Oct 1997 08:05:01 +0000 (08:05 +0000)]
Add socket support for Win32.
Chris Hanson [Sun, 26 Oct 1997 08:03:37 +0000 (08:03 +0000)]
Initial revision
Chris Hanson [Sun, 26 Oct 1997 01:35:59 +0000 (01:35 +0000)]
Add support for compressed and encrypted files.
Chris Hanson [Sat, 25 Oct 1997 22:43:43 +0000 (22:43 +0000)]
Add support for Blowfish and MD5.
Chris Hanson [Sat, 25 Oct 1997 07:40:26 +0000 (07:40 +0000)]
Add ability to handle named pipes. This should be all that is
necessary to manage the client side of a named pipe.
Chris Hanson [Sat, 25 Oct 1997 07:38:45 +0000 (07:38 +0000)]
Fix problem with previous change. Must explicitly close the handle
copies that are passed to the subprocess. Otherwise the pipe won't be
deleted at the appropriate time, and PeekNamedPipe won't be able to
tell when the child closes its write handle.
Chris Hanson [Sat, 25 Oct 1997 00:15:13 +0000 (00:15 +0000)]
Fix method used to pass stdio handles to a subprocess. Method used by
Emacs, and recommended in (some parts of) the M$ documentation,
involves side-effects to Scheme's stdio handles. Better method is to
use the STARTUPINFO datastructure to tell CreateProcess what handles
to use -- no side-effects.
Chris Hanson [Fri, 24 Oct 1997 07:25:05 +0000 (07:25 +0000)]
* Change channel data structure. Now, instead of being tagged with a
"type", it is tagged with a "class". The "class" has associated
operations, so that basic channel operations such as reading and
writing are generic. This change allows the code to be modularized
a bit better, and will facilitate the introduction of sockets.
* Eliminate the procedure NT_pipe_channel_available, replacing it with
the generic procedure NT_channel_n_read.
* Eliminate references to long-obsolete "console" stuff.
* Change file-pointer positioning code to use SetFilePointer rather
than __llseek.
* Don't try to signal an error if MsgWaitForMultipleObjects returns an
unexpected answer -- only if it returns WAIT_FAILED. We are only
using it as a mechanism for blocking.
* Make cosmetic changes, eliminating unnecessary instances of "DEFUN"
and the like. These were introduced for unix, because there were
non-ANSI compilers at that time. On NT, all compilers are ANSI.
Chris Hanson [Fri, 24 Oct 1997 07:24:07 +0000 (07:24 +0000)]
In OS_process_wait, replace use of Sleep and WaitForSingleObject with
MsgWaitForMultipleObjects, so that the procedure responds immediately
whenever anything interesting happens.
Chris Hanson [Fri, 24 Oct 1997 06:55:43 +0000 (06:55 +0000)]
Fix bugs in code that terminates a subprocess. Make sure that
subprocess handles are closed at the appropriate times.
Chris Hanson [Fri, 24 Oct 1997 06:47:56 +0000 (06:47 +0000)]
When killing a subprocess on NT, close our end of the channels talking
to the subprocess. It turns out that some processes don't close
properly until this is done.
Chris Hanson [Wed, 22 Oct 1997 23:01:16 +0000 (23:01 +0000)]
Fix typo in previous change.
Chris Hanson [Wed, 22 Oct 1997 20:00:47 +0000 (20:00 +0000)]
Change OS/MAKE-SUBPROCESS to use new OS-specific primitive.
Chris Hanson [Wed, 22 Oct 1997 20:00:17 +0000 (20:00 +0000)]
Fix bugs from most recent changes.
Chris Hanson [Wed, 22 Oct 1997 07:26:34 +0000 (07:26 +0000)]
Use new unix-specific primitive to start subprocesses.
Stephen Adams [Wed, 22 Oct 1997 06:47:47 +0000 (06:47 +0000)]
Implemented a pattern based peephole optimizer.
Main improvements:
1. every CONS-[MULTI]CLOSURE saves one instruction
2. most funcalls save one stack access
3. fixnum arithmetic (plus and minus constants)
4. fixnum case of generic add/subtract constant
5. fixnum bitwise operations with constants (and/or/not)
1 and 2 give about 5% on closure/funcall heavy code.
3-5 are improvements made possible by the screwy fixnum tag.
`Natural' fixnum tags would make them obsolete (but some of the
rewrites are as good). 5 improves hash table operations up to 10% due
to how `flags' are implemented.
Chris Hanson [Wed, 22 Oct 1997 05:40:53 +0000 (05:40 +0000)]
Eliminate compiler warnings.
Chris Hanson [Wed, 22 Oct 1997 05:40:36 +0000 (05:40 +0000)]
Add missing include.
Chris Hanson [Wed, 22 Oct 1997 05:31:29 +0000 (05:31 +0000)]
Implement subprocess support under NT. Requires runtime 14.174 or
later.
Chris Hanson [Wed, 22 Oct 1997 05:27:26 +0000 (05:27 +0000)]
Extensive reworking of the "select" interface, so that it can work
with pipes. We no longer use the NT API calls, since they don't work
at all with pipes; instead we use simpler tests and depend on the
regular arrival of messages to get us out of the blocking state to
poll the other input channels. Regular message delivery is guaranteed
by the asynchronous timer thread.
Chris Hanson [Wed, 22 Oct 1997 05:26:45 +0000 (05:26 +0000)]
Initial revision
Chris Hanson [Wed, 22 Oct 1997 05:25:31 +0000 (05:25 +0000)]
Deprecate operating-system-independent interface OS_make_subprocess.
New interface is OS-specific, moving pecularities (e.g. converting
unix-style argument vector to OS/2-style command line) into the
runtime system. New OS-independent interface
OS_process_any_status_change.
Chris Hanson [Wed, 22 Oct 1997 05:23:25 +0000 (05:23 +0000)]
Add code to create anonymous pipes, to determine how many characters
are in the pipe given the read end of the pipe, and to implement
non-blocking mode when reading a pipe. Fix OS_channel_write to
generate correct error messages.
Chris Hanson [Wed, 22 Oct 1997 05:22:31 +0000 (05:22 +0000)]
Change PROCESS-ID primitive to assume that the ID is unsigned.
Chris Hanson [Wed, 22 Oct 1997 05:22:06 +0000 (05:22 +0000)]
Define reasonable (unsigned) type for pid_t under NT.
Chris Hanson [Wed, 22 Oct 1997 05:21:25 +0000 (05:21 +0000)]
Eliminate compiler warning.
Chris Hanson [Wed, 22 Oct 1997 05:18:12 +0000 (05:18 +0000)]
Changes to support subprocesses under NT. Requires microcode version
11.159 or later.
Chris Hanson [Wed, 22 Oct 1997 05:16:01 +0000 (05:16 +0000)]
Change MAKE-SUBPROCESS to define new interface to allow OS-specific
code to do the work of starting the subprocess.
Chris Hanson [Wed, 22 Oct 1997 05:11:11 +0000 (05:11 +0000)]
Use real subprocess support for NT.
Chris Hanson [Wed, 22 Oct 1997 05:10:03 +0000 (05:10 +0000)]
Use COMSPEC environment variable to determine shell file name if SHELL
is not defined.
Chris Hanson [Wed, 22 Oct 1997 01:21:11 +0000 (01:21 +0000)]
Change test used to decide whether an unreadable file exists. The
procedure FILE-EXISTS? gives the wrong answer when the file is a
symbolic link that points to a non-existent file.
Chris Hanson [Sat, 18 Oct 1997 03:51:24 +0000 (03:51 +0000)]
Add code to synchronize the shutdown of the asyncronous timer thread
with the deallocation of the associated state. Otherwise, the race
condition causes occasional GPFs when exiting Scheme.
Stephen Adams [Fri, 17 Oct 1997 20:24:18 +0000 (20:24 +0000)]
Changed consing code to compute the tagged pointer after storing the
elements. This reduces register pressure across the consing sequence.
Rearranged consing expression to share a common algorithm, eliminating
80 lines of code.
Stephen Adams [Fri, 17 Oct 1997 01:32:18 +0000 (01:32 +0000)]
Added some comments.
Stephen Adams [Fri, 17 Oct 1997 01:25:41 +0000 (01:25 +0000)]
Changed the instruction sequence for procedure return (and computed
jump). The code for clearing the type code from a continuation now
loads the value into a register instead of modifying it in-place on
the stack.
I have left the code using an indirect jump. An alternative is to
push the value back on the stack and do a RET. The indirect jump
seems faster, especially when returning to the same address as the
previous jump, but the branch prediction mechanisms for RET and JMP
seem quite different.
Speeds up the modified Gabriel Benchmark Suite (/scheme/8.0/src/bench)
by 10% overall! I guess this is because the Pentium Pro really
doesn't like the old read-modify-write instruction.
Test Old New Ratio
ctak 11.59 11.54 0.996
conform 0.62 0.50 0.806
traverse 1.57 0.92 0.586
takl 0.23 0.20 0.870
peval 0.40 0.35 0.875
browse 0.59 0.56 0.949
tak 0.28 0.25 0.893
wttree 1.61 1.49 0.925
deriv 0.34 0.29 0.853
boyer 0.47 0.42 0.894
div 0.42 0.39 0.929
dderiv 0.44 0.38 0.864
cpstak 0.42 0.41 0.976
matmul1 0.27 0.27 1.000
fib 0.68 0.55 0.809
fcomp 0.61 0.54 0.885
triangle 2.89 2.36 0.817
puzzle 0.47 0.47 1.000
matmul2 0.66 0.69 1.045
destruct 0.28 0.28 1.000
~a.mean - - 0.899
~g.mean - - 0.892
Stephen Adams [Wed, 15 Oct 1997 03:25:55 +0000 (03:25 +0000)]
Moved open-coding of VECTOR?, %RECORD? and CHAR? from SF to
open-coders in compiler.
Stephen Adams [Wed, 15 Oct 1997 01:22:00 +0000 (01:22 +0000)]
Fix typo.
Stephen Adams [Wed, 15 Oct 1997 01:17:07 +0000 (01:17 +0000)]
Added primitive CHAR?
Stephen Adams [Wed, 15 Oct 1997 00:52:15 +0000 (00:52 +0000)]
Added primitives VECTOR? and %RECORD?
Stephen Adams [Tue, 14 Oct 1997 14:20:05 +0000 (14:20 +0000)]
Added open-coding for MAKE-CELL.
Stephen Adams [Fri, 10 Oct 1997 21:06:19 +0000 (21:06 +0000)]
Improved disassembly output:
- New comments to the right of LAP code, mostly the address of @pco
branches so you can see where it is jumping.
- correctly decodes the word field after a
(call (entry short-primitive-apply))
rather than trying to disassemble the offset as instructions and
getting out of sync with the subsequent instructions.
Stephen Adams [Tue, 7 Oct 1997 19:35:48 +0000 (19:35 +0000)]
Use `cp -p' to preserve file times.
Stephen Adams [Tue, 7 Oct 1997 19:34:24 +0000 (19:34 +0000)]
use `cp -p' to preserve file times.