mit-scheme.git
15 years agoFix CREF's spurious "Bindings with Multiple Definitions" warnings.
Matt Birkholz [Thu, 27 Aug 2009 23:34:34 +0000 (16:34 -0700)]
Fix CREF's spurious "Bindings with Multiple Definitions" warnings.

* redpkg.scm (process-globals-info): Ensured that each definition,
internal and exported, is created once, with a unique expression.
(for-each-exported-name): New.
(bind!): There should now be no need to avoid adding an expression to
a value-cell more than once.

15 years agoIgnore doc/ configuration files.
Chris Hanson [Tue, 25 Aug 2009 06:22:56 +0000 (23:22 -0700)]
Ignore doc/ configuration files.

15 years agoUpdate copyright years.
Chris Hanson [Tue, 25 Aug 2009 05:41:34 +0000 (22:41 -0700)]
Update copyright years.

15 years agoInitial check-in.
Chris Hanson [Tue, 25 Aug 2009 04:51:27 +0000 (21:51 -0700)]
Initial check-in.

15 years agoUpdate copyright years.
Chris Hanson [Tue, 25 Aug 2009 04:49:37 +0000 (21:49 -0700)]
Update copyright years.

15 years agoFix various problems with flonum infinities.
Chris Hanson [Tue, 25 Aug 2009 03:17:23 +0000 (20:17 -0700)]
Fix various problems with flonum infinities.

15 years agoFixed `make tags', src/TAGS.
Matt Birkholz [Fri, 21 Aug 2009 20:20:08 +0000 (13:20 -0700)]
Fixed `make tags', src/TAGS.

15 years agoDeleted .gitattributes again, and ALL $Id...$ tags.
Matt Birkholz [Fri, 21 Aug 2009 18:00:27 +0000 (11:00 -0700)]
Deleted .gitattributes again, and ALL $Id...$ tags.

15 years agoFix where Edwin leaves the cursor in console-screens.
Matt Birkholz [Thu, 20 Aug 2009 01:32:07 +0000 (18:32 -0700)]
Fix where Edwin leaves the cursor in console-screens.

toggle-read-only and the set-mark-command leave the terminal's cursor
in the modeline or minibuffer (respectively).

* src/edwin/buffrm.scm (window-direct-output-cursor!): New procedure.

* src/edwin/bufwiu.scm (buffer-window/direct-output-cursor!): New procedure.

* src/edwin/edwin.pkg: Export window-direct-output-cursor! to (edwin)
for screen code like console-wrap-update!.  Export
editor-frame-cursor-window to (edwin screen) for screen-cursor-window.

* src/edwin/screen.scm (screen-cursor-window): New procedure.

* src/edwin/tterm.scm (console-wrap-update!): Leave the terminal's
cursor in the screen-cursor-window.
(output): Do not die when screen-cursor-y is still #f -- found when
interpreting Edwin.

15 years agoRe-created .gitattributes; replaced ALL $Id:...$ with $Id$.
Matt Birkholz [Thu, 20 Aug 2009 01:01:30 +0000 (18:01 -0700)]
Re-created .gitattributes; replaced ALL $Id:...$ with $Id$.

15 years agoFix up all the messed-up $ entries.
Chris Hanson [Mon, 17 Aug 2009 07:40:08 +0000 (00:40 -0700)]
Fix up all the messed-up $ entries.

15 years agoMerge branch 'master' of cph@git.sv.gnu.org:/srv/git/mit-scheme
Chris Hanson [Sat, 8 Aug 2009 22:25:39 +0000 (15:25 -0700)]
Merge branch 'master' of cph@git.sv.gnu.org:/srv/git/mit-scheme

15 years agoEliminate .gitattributes as it causes more trouble than it's worth.
Chris Hanson [Sat, 8 Aug 2009 22:22:30 +0000 (15:22 -0700)]
Eliminate .gitattributes as it causes more trouble than it's worth.

15 years agoFixed some random typos.
Matt Birkholz [Thu, 23 Jul 2009 20:30:05 +0000 (13:30 -0700)]
Fixed some random typos.

15 years agoMerge branch 'master' of cph@git.sv.gnu.org:/srv/git/mit-scheme
Chris Hanson [Wed, 15 Jul 2009 03:51:30 +0000 (20:51 -0700)]
Merge branch 'master' of cph@git.sv.gnu.org:/srv/git/mit-scheme

15 years agoDon't call SAVE-RESOURCE in DISCARD-FOLDER-CACHE on file folders.
Taylor R Campbell [Tue, 14 Jul 2009 20:50:35 +0000 (16:50 -0400)]
Don't call SAVE-RESOURCE in DISCARD-FOLDER-CACHE on file folders.
DISCARD-FOLDER-CACHE is called only when we want to discard changes.

15 years agoMake IMAIL synchronize output after writing mail to file folders.
Taylor R Campbell [Tue, 14 Jul 2009 20:23:00 +0000 (16:23 -0400)]
Make IMAIL synchronize output after writing mail to file folders.

15 years agoBack out a previous change to make SAVE-RESOURCE `gracefully' handle
Taylor R Campbell [Tue, 14 Jul 2009 20:13:33 +0000 (16:13 -0400)]
Back out a previous change to make SAVE-RESOURCE `gracefully' handle
failures.  Irrevocably losing users' mail is not graceful.  Use `M-x
revert-buffer RET' first if you really need to kill the buffer.

15 years agoFix appending to open file folders so that it signals an
Taylor R Campbell [Tue, 14 Jul 2009 20:06:31 +0000 (16:06 -0400)]
Fix appending to open file folders so that it signals an
INCREASE-LENGTH modification event.

15 years agoMust zero out sockaddr_in before use.
Chris Hanson [Tue, 14 Jul 2009 18:13:51 +0000 (11:13 -0700)]
Must zero out sockaddr_in before use.

15 years agoFix typo in POST encoder.
Chris Hanson [Thu, 9 Jul 2009 05:55:47 +0000 (23:55 -0600)]
Fix typo in POST encoder.

15 years agoAllow pathnames to be used in STRING and UTF8-STRING.
Chris Hanson [Mon, 29 Jun 2009 20:58:10 +0000 (13:58 -0700)]
Allow pathnames to be used in STRING and UTF8-STRING.

15 years agoIgnore emacs backup and temporary files.
Chris Hanson [Mon, 22 Jun 2009 07:30:06 +0000 (00:30 -0700)]
Ignore emacs backup and temporary files.

15 years agoInitial implementation of vc-git.
Chris Hanson [Mon, 22 Jun 2009 07:28:39 +0000 (00:28 -0700)]
Initial implementation of vc-git.

15 years agoSplit vc type definitions into separate files.
Chris Hanson [Sun, 21 Jun 2009 08:33:42 +0000 (01:33 -0700)]
Split vc type definitions into separate files.

15 years agoEliminate duplicate module rules.
Chris Hanson [Sat, 20 Jun 2009 19:20:37 +0000 (12:20 -0700)]
Eliminate duplicate module rules.

15 years agoMissed changing one place that knew about closure structure.
Chris Hanson [Sat, 20 Jun 2009 19:11:23 +0000 (12:11 -0700)]
Missed changing one place that knew about closure structure.

15 years agoFix closure structure so that first entry is word-aligned.
Chris Hanson [Sat, 20 Jun 2009 08:02:11 +0000 (01:02 -0700)]
Fix closure structure so that first entry is word-aligned.

15 years agoFix typo.
Chris Hanson [Sat, 20 Jun 2009 07:50:19 +0000 (00:50 -0700)]
Fix typo.

15 years agoAdd new SVM instruction to support closures.
Chris Hanson [Thu, 18 Jun 2009 10:26:58 +0000 (03:26 -0700)]
Add new SVM instruction to support closures.

15 years agoFix thinko.
Chris Hanson [Tue, 16 Jun 2009 18:37:21 +0000 (11:37 -0700)]
Fix thinko.

15 years agoMerge svm branch, will work on head.
Chris Hanson [Mon, 15 Jun 2009 04:33:42 +0000 (21:33 -0700)]
Merge svm branch, will work on head.

15 years agoFix $ tags in v8 files.
Chris Hanson [Mon, 15 Jun 2009 04:27:00 +0000 (21:27 -0700)]
Fix $ tags in v8 files.

15 years agoSet attribute to expand $ in source files.
Chris Hanson [Mon, 15 Jun 2009 04:26:30 +0000 (21:26 -0700)]
Set attribute to expand $ in source files.

15 years agoFine-tune .gitignore patterns.
Chris Hanson [Mon, 15 Jun 2009 03:53:39 +0000 (20:53 -0700)]
Fine-tune .gitignore patterns.

15 years agoCall ABORT-KEYBOARD-MACRO in EDITOR-FAILURE.
Taylor R Campbell [Wed, 10 Jun 2009 22:46:56 +0000 (18:46 -0400)]
Call ABORT-KEYBOARD-MACRO in EDITOR-FAILURE.

15 years agoInitial git check-in.
Chris Hanson [Mon, 18 May 2009 10:27:31 +0000 (03:27 -0700)]
Initial git check-in.

15 years agoProvide abstractions for writing copyright and license statements.
Chris Hanson [Mon, 18 May 2009 09:36:24 +0000 (02:36 -0700)]
Provide abstractions for writing copyright and license statements.
These are useful for generating code files.

15 years agoIgnore .edwin-ffi files.
Chris Hanson [Mon, 18 May 2009 09:34:48 +0000 (02:34 -0700)]
Ignore .edwin-ffi files.

15 years agoFix thinko.
Chris Hanson [Sat, 9 May 2009 23:21:16 +0000 (16:21 -0700)]
Fix thinko.

15 years agoIgnore LOG file.
Chris Hanson [Sat, 9 May 2009 23:20:23 +0000 (16:20 -0700)]
Ignore LOG file.

15 years agoAdd script to generate git log.
Chris Hanson [Sat, 9 May 2009 23:20:00 +0000 (16:20 -0700)]
Add script to generate git log.

15 years agoAdd .gitignore
Chris Hanson [Sat, 9 May 2009 23:05:42 +0000 (16:05 -0700)]
Add .gitignore

15 years agoEliminate v7 directory, moving subdirs up one level.
Chris Hanson [Sat, 9 May 2009 21:16:21 +0000 (14:16 -0700)]
Eliminate v7 directory, moving subdirs up one level.

15 years agoFix typo in MIME:PARSE-MULTIPART-PARTS-1.
Chris Hanson [Sat, 9 May 2009 21:07:05 +0000 (14:07 -0700)]
Fix typo in MIME:PARSE-MULTIPART-PARTS-1.

15 years agoFix bug: read-substring wasn't updating the buffer position.
Chris Hanson [Sat, 9 May 2009 21:06:41 +0000 (14:06 -0700)]
Fix bug: read-substring wasn't updating the buffer position.

15 years agoDon't enable blowfish and MD5 support if the OpenSSL header files
Taylor R. Campbell [Fri, 1 May 2009 20:04:45 +0000 (20:04 +0000)]
Don't enable blowfish and MD5 support if the OpenSSL header files
are unavailable.

15 years agoARCH is not spelled with a G.
Taylor R. Campbell [Fri, 1 May 2009 17:50:05 +0000 (17:50 +0000)]
ARCH is not spelled with a G.

15 years agoWrite only permanent flags, not all flags, in RMAIL attribute lines.
Taylor R. Campbell [Fri, 1 May 2009 12:47:08 +0000 (12:47 +0000)]
Write only permanent flags, not all flags, in RMAIL attribute lines.

15 years agoDon't clear AS_FLAGS, so that it can be passed to configure.
Taylor R. Campbell [Thu, 30 Apr 2009 18:00:51 +0000 (18:00 +0000)]
Don't clear AS_FLAGS, so that it can be passed to configure.

15 years agoAdd comment about disagreement between compiler and microcode over
Taylor R. Campbell [Thu, 30 Apr 2009 17:52:36 +0000 (17:52 +0000)]
Add comment about disagreement between compiler and microcode over
architecture names.

15 years agoAllow --enable-native-code=ARCH to specify a particular native-code
Taylor R. Campbell [Thu, 30 Apr 2009 17:48:45 +0000 (17:48 +0000)]
Allow --enable-native-code=ARCH to specify a particular native-code
architecture when multiple can coexist on a single machine (e.g.,
x86_64, i386, and C).

15 years agoReflect changes made on AFS: Use `touch -r', not `chtime'.
Taylor R. Campbell [Wed, 29 Apr 2009 23:00:02 +0000 (23:00 +0000)]
Reflect changes made on AFS:  Use `touch -r', not `chtime'.

15 years agoCall %MAYBE-TOGGLE-THREAD-TIMER after registering a timer event.
Taylor R. Campbell [Wed, 29 Apr 2009 18:34:55 +0000 (18:34 +0000)]
Call %MAYBE-TOGGLE-THREAD-TIMER after registering a timer event.

15 years agoAdded mhb (Matt Birkholz).
mhb [Tue, 28 Apr 2009 23:10:02 +0000 (23:10 +0000)]
Added mhb (Matt Birkholz).

15 years agoNew, optional argument to simple-command-line-parser and
mhb [Tue, 28 Apr 2009 22:10:26 +0000 (22:10 +0000)]
New, optional argument to simple-command-line-parser and
argument-command-line-parser.

15 years agoUse UX_prim_check_fd_errno to check errors after accept(2) so that
Taylor R. Campbell [Mon, 27 Apr 2009 23:40:57 +0000 (23:40 +0000)]
Use UX_prim_check_fd_errno to check errors after accept(2) so that
file descriptor exhaustion can trigger garbage collection.

15 years agoGracefully handle recursive locking of folders' caches.
Taylor R. Campbell [Sun, 26 Apr 2009 00:28:49 +0000 (00:28 +0000)]
Gracefully handle recursive locking of folders' caches.

15 years agoSimplify use of DECORATED-STRING-APPEND.
Taylor R. Campbell [Sat, 25 Apr 2009 23:47:08 +0000 (23:47 +0000)]
Simplify use of DECORATED-STRING-APPEND.

15 years agoBreak last page into two.
Taylor R. Campbell [Sat, 25 Apr 2009 23:43:31 +0000 (23:43 +0000)]
Break last page into two.

15 years agoAdd support for multiline descriptions in SIMPLE-COMMAND-LINE-PARSER
Taylor R. Campbell [Sat, 25 Apr 2009 23:40:00 +0000 (23:40 +0000)]
Add support for multiline descriptions in SIMPLE-COMMAND-LINE-PARSER
and ARGUMENT-COMMAND-LINE-PARSER.  Change verbs to present tense, to
match microcode option descriptions, and elaborate on some options.

15 years agoFix typos in option summary. For `--version', use PACKAGE_STRING,
Taylor R. Campbell [Sat, 25 Apr 2009 23:17:04 +0000 (23:17 +0000)]
Fix typos in option summary.  For `--version', use PACKAGE_STRING,
rather than copying it in a format string with PACKAGE_VERSION.

15 years agoAdded a doc. string for the --edit command line option.
mhb [Sat, 25 Apr 2009 03:38:12 +0000 (03:38 +0000)]
Added a doc. string for the --edit command line option.

15 years agoPunt the usual start_scheme announcements when --version or --help is
mhb [Sat, 25 Apr 2009 03:37:52 +0000 (03:37 +0000)]
Punt the usual start_scheme announcements when --version or --help is
among the machine options.

15 years agoRemoved mention of bchscheme, --compiler and --edwin. Mention --help
mhb [Sat, 25 Apr 2009 03:37:27 +0000 (03:37 +0000)]
Removed mention of bchscheme, --compiler and --edwin.  Mention --help
and --version.  Removed ancient default values and emphasized
--option-summary.

15 years agoAdded GNUish options --help, --quiet, --silent and --version.
mhb [Sat, 25 Apr 2009 03:35:45 +0000 (03:35 +0000)]
Added GNUish options --help, --quiet, --silent and --version.
Converted old comment about machine options into new function
print_help().  Hack argv at the end of parse_options() to get --help
and --version through to the band.  (Ick.)

15 years agoAdded optional argument for set-command-line-parser!,
mhb [Sat, 25 Apr 2009 03:35:02 +0000 (03:35 +0000)]
Added optional argument for set-command-line-parser!,
simple-command-line-parser, and argument-command-line-parser -- a
short string describing the command line option.  These are displayed
by a new --help command line parser.  A new --version parser just
exits, assuming identify-world has already done the right thing.

15 years agoFix whitespace.
Taylor R. Campbell [Thu, 23 Apr 2009 23:49:41 +0000 (23:49 +0000)]
Fix whitespace.

15 years agoFix whitespace.
Taylor R. Campbell [Thu, 16 Apr 2009 13:06:31 +0000 (13:06 +0000)]
Fix whitespace.

15 years agoNew primitive NEW-MAKE-PIPE does what MAKE-PIPE does but stores its
Taylor R. Campbell [Wed, 15 Apr 2009 19:30:53 +0000 (19:30 +0000)]
New primitive NEW-MAKE-PIPE does what MAKE-PIPE does but stores its
results in weak pairs so that it can be used with GC finalizers.  Use
this in the runtime's MAKE-PIPE procedure so that interrupts need not
be disabled, and file descriptor exhaustion can trigger garbage
collection which can trigger GC daemons that close files.

15 years agoUse the argument count, not the operand count (which includes the
Taylor R. Campbell [Wed, 15 Apr 2009 19:19:40 +0000 (19:19 +0000)]
Use the argument count, not the operand count (which includes the
continuation), when reporting arity mismatch warnings.

15 years agoNew macro STD_FD_VOID_SYSTEM_CALL to be used after system calls that
Taylor R. Campbell [Wed, 15 Apr 2009 13:33:41 +0000 (13:33 +0000)]
New macro STD_FD_VOID_SYSTEM_CALL to be used after system calls that
create file descriptors but yield them in some way other than as
their return values, such as pipe(2).  Use this in OS_make_pipe so
that the file exhaustion state is maintained correctly.

15 years agoFix mistake in previous commit: STD_FD_SYSTEM_CALL needs to record
Taylor R. Campbell [Wed, 15 Apr 2009 13:09:20 +0000 (13:09 +0000)]
Fix mistake in previous commit: STD_FD_SYSTEM_CALL needs to record
that we are not out of files if the system call succeeds so that the
loop detection in UX_prim_check_fd_errno actually works.

15 years agoNew function UX_prim_check_fd_errno to to be used after a system call
Taylor R. Campbell [Wed, 15 Apr 2009 13:00:32 +0000 (13:00 +0000)]
New function UX_prim_check_fd_errno to to be used after a system call
that creates file descriptors fails.  If errno is EMFILE or ENFILE,
this requests a garbage collection in case any unreferenced file
descriptors can be closed.  Change OS_make_pipe to call this if
pipe(2) fails.

New macro STD_FD_SYSTEM_CALL is like STD_UINT_SYSTEM_CALL but uses
UX_prim_check_fd_errno rather than UX_prim_check_errno.  Change
OS_open_*_file and OS_open_*_socket to use STD_FD_SYSTEM_CALL to call
open(2) and socket(2).

Change STD_*_SYSTEM_CALL to use do/while rather than braces for
compound statements and to call UX_prim_check_errno rather than
copying it in-line.

15 years agoIf open(2) fails with EMFILE or ENFILE, trigger a garbage collection
Taylor R. Campbell [Wed, 15 Apr 2009 03:02:48 +0000 (03:02 +0000)]
If open(2) fails with EMFILE or ENFILE, trigger a garbage collection
to attempt to free up file descriptors, but avoid looping in this
state if there really are too many open file descriptors still
referenced.

15 years agoUse COMPILER:NOISY? to toggle whether to echo liarc-cc and liarc-ld
Taylor R. Campbell [Sat, 4 Apr 2009 18:41:23 +0000 (18:41 +0000)]
Use COMPILER:NOISY? to toggle whether to echo liarc-cc and liarc-ld
output.  Eliminate non-exported COMPILER:INVOKE-VERBOSE? variable
whose purpose has been hereby subsumed.

15 years agoAdd (GLOBAL-DEFINITIONS "../sf/sf") to compiler.pkg.
Taylor R. Campbell [Sun, 22 Mar 2009 16:12:41 +0000 (16:12 +0000)]
Add (GLOBAL-DEFINITIONS "../sf/sf") to compiler.pkg.

15 years agoSimplify invocations of the stat-like system calls and deliver
Taylor R. Campbell [Sat, 21 Mar 2009 22:10:28 +0000 (22:10 +0000)]
Simplify invocations of the stat-like system calls and deliver
pending interrupts on EINTR.

15 years agoCall fsync_range more carefully. It differs between NetBSD and AIX,
Taylor R. Campbell [Sat, 21 Mar 2009 21:23:22 +0000 (21:23 +0000)]
Call fsync_range more carefully.  It differs between NetBSD and AIX,
and FDISKSYNC was added after fsync_range to NetBSD.  Someone else
will need to test the AIX code (ha).

15 years agoChange CHANNEL-SYNCHRONIZE so that it is a no-op on files not backed
Taylor R. Campbell [Sat, 21 Mar 2009 19:34:27 +0000 (19:34 +0000)]
Change CHANNEL-SYNCHRONIZE so that it is a no-op on files not backed
by permanent storage.

15 years agoNew output port operation SYNCHRONIZE-OUTPUT requests all data output
Taylor R. Campbell [Sat, 21 Mar 2009 16:50:26 +0000 (16:50 +0000)]
New output port operation SYNCHRONIZE-OUTPUT requests all data output
to be forced to permanent storage.  Implement this for generic I/O
ports using the CHANNEL-SYNCHRONIZE primitive.  Call this in Edwin
after writing regions to files on disk.

15 years agoSignal a better error in PORT-POSITION and SET-PORT-POSITION! if the
Taylor R. Campbell [Sat, 21 Mar 2009 16:28:35 +0000 (16:28 +0000)]
Signal a better error in PORT-POSITION and SET-PORT-POSITION! if the
port does not support these operations.

15 years agoPeriodically synchronize only the tty's x and y sizes. Initialize
Taylor R. Campbell [Sat, 21 Mar 2009 08:06:00 +0000 (08:06 +0000)]
Periodically synchronize only the tty's x and y sizes.  Initialize
the command strings only once; they are unlikely to change, and used
in signal handlers.

15 years agoChange UX_reinitialize_tty so that it only sets a flag which code
Taylor R. Campbell [Sat, 21 Mar 2009 07:34:36 +0000 (07:34 +0000)]
Change UX_reinitialize_tty so that it only sets a flag which code
will later check.  UX_reinitialize_tty is called in a signal handler,
so it shouldn't do anything interesting, such as invoking termcap
library routines.

15 years agoFix same typo in OPEN-EXCLUSIVE-BINARY-OUTPUT-FILE.
Taylor R. Campbell [Sat, 21 Mar 2009 07:14:23 +0000 (07:14 +0000)]
Fix same typo in OPEN-EXCLUSIVE-BINARY-OUTPUT-FILE.

15 years agoFix typo in definition of OPEN-EXCLUSIVE-OUTPUT-FILE.
Taylor R. Campbell [Sat, 21 Mar 2009 07:13:43 +0000 (07:13 +0000)]
Fix typo in definition of OPEN-EXCLUSIVE-OUTPUT-FILE.

15 years agoNew primitives for fsync and exclusive output files.
Taylor R. Campbell [Sat, 21 Mar 2009 07:09:09 +0000 (07:09 +0000)]
New primitives for fsync and exclusive output files.

The primitive procedure CHANNEL-SYNCHRONIZE attempts to guarantee
that any data associated with the channel are written to permanent
storage.  Passing channels not backed by files in permanent storage
is currently an error, but perhaps should be a no-op instead.  This
procedure does what the fsync system call ought to do, which on most
operating systems it does not necessarily do; this procedure attempts
various different methods from different operating systems to ensure
that data are written to disk and that any disk caches for them are
forced to physical media.

New procedures OPEN-EXCLUSIVE-OUTPUT-FILE and CALL-WITH-*, WITH-*
variants, and binary output file variants, create files at pathnames
that currently have no links, or signal errors if they do.  Errors on
opening files now establish restarts to replace pathnames.

These new primitives are implemented only on Unix; Windows and OS/2
implementations are missing.

15 years ago(GARBAGE-COLLECT) Fix quotes in the documentation string. Set
Taylor R. Campbell [Sat, 21 Mar 2009 06:27:27 +0000 (06:27 +0000)]
(GARBAGE-COLLECT) Fix quotes in the documentation string.  Set
heap_reserved only if the argument is valid, and if so also set
heap_alloc_limit.

15 years agoUpcase the switch `on' in `#pragma STDC FENV_ACCESS ON'. Fixes
Taylor R. Campbell [Sat, 14 Mar 2009 19:52:18 +0000 (19:52 +0000)]
Upcase the switch `on' in `#pragma STDC FENV_ACCESS ON'.  Fixes
Savannah bug #25867.

15 years agoCheck, or ignore by casting to void, the values returned by system
Taylor R. Campbell [Tue, 10 Mar 2009 05:13:24 +0000 (05:13 +0000)]
Check, or ignore by casting to void, the values returned by system
calls in OS_make_subprocess, and kill the child if they fail.  To
change the working directory, the parent really ought to open the
directory to check for errors before calling fchdir(2) in the child,
but this will do for now.

15 years agoIn OS_process_clock and OS_real_time_clock, don't signal errors, and
Taylor R. Campbell [Mon, 9 Mar 2009 21:35:52 +0000 (21:35 +0000)]
In OS_process_clock and OS_real_time_clock, don't signal errors, and
handle interrupted system calls more robustly.  This prevents the
symptom exhibited by Savannah bug #17452 (which is probably really a
bug in the Linux kernel).

15 years agoIn batch mode, suppress loading notifications for `--load' arguments.
Taylor R. Campbell [Mon, 9 Mar 2009 03:46:22 +0000 (03:46 +0000)]
In batch mode, suppress loading notifications for `--load' arguments.

15 years agoUse $< and $@ rather than $* because GNU make and BSD make have
Taylor R. Campbell [Sun, 8 Mar 2009 21:47:00 +0000 (21:47 +0000)]
Use $< and $@ rather than $* because GNU make and BSD make have
different interpretations of $* but seem to agree on $< and $@ for
the ways we use them.  POSIX agrees too.

15 years agoAvoid consing in the secondary GC daemon DISCARD-DEBUGGING-INFO!.
Taylor R. Campbell [Sun, 8 Mar 2009 02:25:06 +0000 (02:25 +0000)]
Avoid consing in the secondary GC daemon DISCARD-DEBUGGING-INFO!.
Fix whitespace mistakes in previous changes.

15 years agoIn the STD_*_SYSTEM_CALL macros, if the system call returns EINTR,
Taylor R. Campbell [Sun, 8 Mar 2009 00:02:09 +0000 (00:02 +0000)]
In the STD_*_SYSTEM_CALL macros, if the system call returns EINTR,
deliver pending Scheme interrupts.  This prevents most system calls
from indefinitely blocking all Scheme threads and keyboard
interruptions.

15 years agoInfo files are now stored in the `info/' subdirectory of the Edwin
Taylor R. Campbell [Sat, 7 Mar 2009 22:03:38 +0000 (22:03 +0000)]
Info files are now stored in the `info/' subdirectory of the Edwin
system library directory.  Reflect this in EDWIN-INFO-DIRECTORY.

15 years agoSuffix a colon to the value of the TERMCAP environment variable.
Taylor R. Campbell [Thu, 5 Mar 2009 20:09:21 +0000 (20:09 +0000)]
Suffix a colon to the value of the TERMCAP environment variable.

15 years agoRe-enable open-coding of FLONUM-ASIN and FLONUM-ACOS on i386, and
Taylor R. Campbell [Tue, 24 Feb 2009 23:09:56 +0000 (23:09 +0000)]
Re-enable open-coding of FLONUM-ASIN and FLONUM-ACOS on i386, and
implement FLONUM-EXP using F2XM1 for the fractional part and FSCALE for
the integral part of the argument.  This about trebles the speed of
these primitives in compiled code, without giving answers substantially
different from what the microcode computes.

When open-coding of FLONUM-EXP was disabled in 1992, a comment was
added to the effect that some i387 implementations had bugs in their
F2XM1 instructions.  I imagine that these bugs have been fixed in more
recent hardware, and that few users care about seventeen-year-old i387
units.  If this is a problem we can always disable it again.

15 years agoIn FIXNUM-LSH, if the count exceeds the Scheme datum width in absolute
Taylor R. Campbell [Mon, 23 Feb 2009 22:40:12 +0000 (22:40 +0000)]
In FIXNUM-LSH, if the count exceeds the Scheme datum width in absolute
value, return zero.  Intel's brain-damaged shift instructions on the
i386 and later (but not the 8086 -- go figure) ignore all but the
low-order five bits of the count.

15 years agoAnnotate compiled-code binary files with sets of bound and free names.
Chris Hanson [Mon, 23 Feb 2009 02:02:44 +0000 (02:02 +0000)]
Annotate compiled-code binary files with sets of bound and free names.
This allows the loader to incorporate a "module system".