Commit Graph

330 Commits

Author SHA1 Message Date
mainzelm 925ca7b349 Use continuation-graft in import-os-error-syscall. 2001-09-17 15:30:12 +00:00
mainzelm b30eed8d54 + Replaced define-stubless-foreign by import-lambda-definition or
import-os-error-syscall
+ Removed loading of cig-aux and define-foreign
2001-09-13 07:59:40 +00:00
mainzelm c47a141356 Let current-noise-port default to current-error port.
You won't get warnings from the type-checker or the modul system otherwise...
2001-09-12 15:11:42 +00:00
mainzelm f4bd5dfa85 Fixed bug in thread-change-resource (and thereby in chdir). 2001-09-12 14:43:19 +00:00
mainzelm f3e567e997 Initialize CWD on startup. 2001-09-12 14:29:03 +00:00
mainzelm ebd33706cc Use import-os-error-syscall to convert from os-error to syscall-error. 2001-09-12 14:08:24 +00:00
mainzelm 41b90aab2f Don't build with select for now. 2001-09-12 14:02:09 +00:00
mainzelm b4bfd0f96c No need to load define-foreign any more. 2001-09-12 13:57:37 +00:00
interp 6cecc55b4a Removing #include-line for machine/stdio_dep.h that does not exist anymore. 2001-09-12 12:50:04 +00:00
mainzelm 006c551429 + Decigged syscalls, sleep
+ Modified operations that work on file descriptors to allocate appropriate
  buffered ports.
2001-09-07 16:05:31 +00:00
mainzelm 572c01be18 Removed include of stdio_dep.h. 2001-09-07 15:58:05 +00:00
mainzelm 2a121e1f5a Added own init function. 2001-09-07 15:56:02 +00:00
mainzelm a36dbe8904 Decigged tty. 2001-09-07 15:17:54 +00:00
mainzelm e6ccf4cf1f Removed foreign statements. 2001-09-07 15:14:50 +00:00
mainzelm 9f119a5ef7 Decigged time. 2001-09-07 12:36:30 +00:00
mainzelm 4fbf89f9bb Removed .cvsignore. 2001-09-06 19:24:13 +00:00
mainzelm e4e0ba1e31 char_ready can be defined in terms of select, stream_char_ready is no longer needed, so there is nothing machine-specific left.
Therefore removed arch/stdio_dep.c/h and defined char_ready in syscalls.
2001-09-06 16:34:49 +00:00
sperber 00dbd6868f Obsolete. 2001-08-09 13:56:57 +00:00
sperber 6213213e14 Use Scheme 48 regexp code instead of ours. 2001-08-09 13:53:18 +00:00
sperber 34c5cd67bd From Scheme 48 0.57, extended by an optional START parameter for
REGEXP-MATCH.
2001-08-09 13:50:32 +00:00
mainzelm db5116e44a Removed forgotten cig stuff. 2001-08-08 12:53:24 +00:00
mainzelm 1a60632db8 Removed remaining define-foreign. Flock code is cig-less now. 2001-08-08 12:52:37 +00:00
mainzelm fa78232f3d Removed remaining define-foreign. Network code is cig-less now. 2001-08-08 11:54:04 +00:00
mainzelm c9d6b41e58 Removed bogus code. 2001-08-08 11:53:10 +00:00
mainzelm 327daeed32 Replaced most of define-foreign by
define-stubless-foreign/define-retrying-syscall in syscalls.scm.
2001-08-08 09:21:20 +00:00
mainzelm 10b97c9e82 Using /tmp in a test for chdir is a bad idea as it may be a link. 2001-08-08 08:44:43 +00:00
mainzelm c8464b5b39 Its now no-directory not not-directory in the source. 2001-08-08 08:39:52 +00:00
mainzelm 9c46dba238 + Removed record-discloser for env
+ Added record-resumer for env
2001-08-06 09:24:24 +00:00
mainzelm 4aa561b569 Implement environment per thread via process-resource/thread-fluids. 2001-08-06 08:33:24 +00:00
sperber 8726142251 Use a -1 value for tm_isdst to guess time zone if it's unspecified. 2001-07-11 13:08:52 +00:00
sperber a4a437484d Bug fix for WITH-SYSLOG-DESTINATION:
Properly take old syslog channel into account.
2001-07-11 11:21:18 +00:00
mainzelm 75fa4c1852 With-umask-align for the rest of the syscalls. 2001-07-10 14:52:57 +00:00
sperber 0a1e5ab9bb sch_ident may be copied to a different location by GC,
and openlog doesn't copy the input string, at least not
on every system.  That's just great.

So copy the ident to a local static string before calling openlog.
2001-07-10 12:56:25 +00:00
mainzelm a7227450ca Removed call/cc from handler of bind-listen-accept-loop: We want to
close the socket, but not prevent the exception to come through
(Otherwise you get 'interrupted on undefined globals...).
2001-07-10 11:26:54 +00:00
sperber e6a7699ef4 Bug fix for [...-] regexps. 2001-07-10 11:23:00 +00:00
mainzelm decf6184d9 + Derive general make-process-resource from cwd stuff
+ Implement cwd with make-process-resource
+ Implement umask with make-process-resource
+ Add with-umask-aligned* to exec
2001-07-09 21:23:04 +00:00
mainzelm 04362fd7e3 + Switched cwd to thread-fluids
+ Added with-cwd-aligned* for exec
+ Moved reinitializer from syslog to scsh-utilities
2001-07-09 18:29:26 +00:00
mainzelm 3699917f70 + Added missing "unsigned" to make_addr.
+ Removed 0.5's cast to long for port number.
2001-07-07 19:32:51 +00:00
mainzelm 4351c22d9f + Added a simple version of weak-tables. Only tail weak for now.
+ Replaced forgotten vector-ref in newports.scm
2001-07-07 19:29:29 +00:00
sperber bae809c6ab Correct types for MATCH:START, MATCH:END, and MATCH:SUBSTRING. 2001-07-07 18:50:19 +00:00
uid35759 7228fc0e82 BIND-LISTEN-ACCEPT-LOOP: Close the socket when interrupted. 2001-07-04 11:54:41 +00:00
uid35759 9db99b091c Ignore ERRNO/CONNABORTED in BIND-LISTEN-ACCEPT-LOOP. 2001-07-04 11:26:15 +00:00
interp e381d4737e Correcting my mistake - last commit was bad. 2001-06-27 15:29:37 +00:00
interp 83ac8d21fd small error in CHANGE-SYSLOG-CHANNEL corrected. 2001-06-26 13:19:08 +00:00
sperber 2883063f65 Make the syslog subsystem resume correctly. 2001-06-22 15:50:10 +00:00
mainzelm 921ecb9320 Use a weak integer-table to store the fdports dropping the limit on
the number of ports (fixes #433867).
2001-06-21 08:30:51 +00:00
mainzelm 4659f69310 Zero all sockaddr_XX. 2001-06-21 08:22:18 +00:00
mainzelm dcc88cce36 Renamed fd->socket to port->socket and added better checking for being a socket. 2001-06-20 16:12:40 +00:00
mainzelm 8c724fb65f Fixed #408425 by zeroing sockaddr_in before usage.
Minor clean-up for new FFI.
Maybe useless cast to unsigned in host_ent2host_info .
2001-06-20 16:01:20 +00:00
sperber 211ddec9d5 Removed LOG_PERROR; it doesn't exist on AIX. 2001-06-20 07:48:03 +00:00
mainzelm a4b45eda9f Added schedule-timer-interrupt! to scsh-events' exports. 2001-06-19 11:35:54 +00:00
mainzelm d97da4df60 Fix in crypt for FreeBSD. 2001-06-19 11:33:08 +00:00
mainzelm 2da7ff5f72 Structure name change. 2001-06-19 11:31:27 +00:00
sperber 98de22054e Syslog interface cleanup. 2001-06-11 13:06:25 +00:00
mainzelm f91b93f16a Sync with scsh tree 2001-06-06 11:06:05 +00:00
sperber 3cf10885fa Removed old syslog cruft. 2001-06-03 17:33:04 +00:00
olin-shivers fa5258b957 I just went through what seemed to be a no-op round of conflict merging. ???
-Olin
2001-06-02 17:53:18 +00:00
olin-shivers 00544d449c Fixed bug in CREATE-TEMP-FILE wherein format-string tilde's weren't
being quoted. Oops.
2001-06-02 17:45:25 +00:00
sperber e2a6e37c70 First stab at proper syslog interface. 2001-06-01 16:22:26 +00:00
olin-shivers b0d2b0e318 Fixed a bug in the construction of the regexp for [...] backet globs.
Reported by Harvey Stein.
    -Olin
2001-05-23 22:32:35 +00:00
interp a3a67e69a2 Added test code for environment procedures. 2001-04-17 13:52:11 +00:00
mainzelm 3b53f2718d Added thread to the access list of scsh-level-0. 2001-04-09 19:34:48 +00:00
mainzelm 5f93e8bda0 Fixed the type of char-set-contains?. 2001-04-09 08:13:23 +00:00
mainzelm 883b53e160 Adjusted the numbering with low-interrupt.scm. 2001-04-09 08:11:49 +00:00
mainzelm a95c531327 Added with-autoreaping and with-scsh-sighandlers.
Added auto-init for process-objects to flush the process table on startup.
2001-04-09 08:05:58 +00:00
mainzelm 5500490a1d Sleazy fix for the inliner: procedures can't "return" error, so wrap a
(if #t ...) around it.
2001-04-09 07:59:17 +00:00
mainzelm e3e3f2adab Removed conversion procedures for internet-host-address. 2001-04-09 07:56:58 +00:00
mainzelm 384c28fab4 Hand out the port and not just port-data to the handler. 2001-04-09 07:55:50 +00:00
mainzelm 7516a430f8 Switched back to integers as internet-host-addresses. 2001-04-02 14:57:25 +00:00
olin-shivers 0198ddb337 [A change ported over from the 0.5 tree.]
glob->regexp wasn't "terminating" regexps with an EOS anchor. Reported
by Friedrich Dominicus <Friedrich.Dominicus@inka.de>
    -Olin
2001-03-28 13:53:42 +00:00
mainzelm 5b8818ffef Fixed 2 typos 2001-03-25 17:14:32 +00:00
mainzelm 25f395c1d0 * New package definitions now that we have SRFI-13 and 14
* Introduced the nomenclature "sigevent"
2001-03-23 12:45:31 +00:00
mainzelm 9b4bb8a19d Adapted some of Richard's changes for char-ready? and output-port-ready?. 2001-03-23 10:59:07 +00:00
mainzelm 0ffb123bee Rest of Olins merge for SRFI-13 and 14. 2001-03-23 10:52:09 +00:00
olin-shivers e18289f61c Added a small fix to string-lib.scm. Removed the obsolete strings.txt. 2001-03-21 22:28:31 +00:00
frese 1b31a9f8f1 Added tests for some process-state functions. 2001-03-20 14:36:54 +00:00
olin-shivers 94553d1c36 Manual says FILE-NOT-READABLE? and brothers return 'NO-DIRECTORY
if some dir in the path isn't there; code returned 'NOT-DIRECTORY.
Manual was right; code was wrong.
    -Olin
2001-03-15 03:54:48 +00:00
mainzelm effab78a3d Added implementation of a test suite.
Added tests for the file system operations (sec. 3.3 of the manual).

Author: David Frese
2001-03-13 17:18:25 +00:00
olin-shivers d708ef06e2 EXEC-PATH-LIST is now a fluid. 2001-03-11 18:58:54 +00:00
olin-shivers 9da196627f Added missing "See file COPYING" to copyright notice. 2001-03-11 18:03:50 +00:00
olin-shivers 120a664a86 New, improved let-opt. More features.
But I have a whole different design for handling optional args, so
this will all go away at some point.
2001-03-11 04:11:11 +00:00
olin-shivers 5e769973cd Fixed a bug in re-dsm. It pushed a pre-dsm value inside a submatch record --
but the submatch pre-dsm field describes deleted submatches occuring *after*
the indicated submatch and *before* the submatch's body. So this
"simplification" was swapping the order of these deleted submatches with
the live submatch, throwing off the ordering.
    -Olin
2001-03-07 16:46:09 +00:00
mainzelm d5bbf33756 Always install default handler for SIGINT. Overwrite it if interactive. 2001-01-15 13:43:35 +00:00
mainzelm 4643aa5362 Wrapped an exit around restart-command-processor to kill all threads. 2001-01-11 15:03:30 +00:00
mainzelm c5cfe8c420 Fixed bug in type of MAP & FOR-EACH. 2001-01-11 09:18:52 +00:00
mainzelm 67805dde9f Snapshot of cig generated files. 2001-01-09 15:57:06 +00:00
mainzelm 31894f1894 itimer moved to syscalls but is implemented via rts/events.scm 2001-01-09 15:55:03 +00:00
mainzelm c1d6d368e5 Built the event system directly into the RTS. Built sighandlers above
it. Removed machinery in low-interrupt.
2001-01-09 15:52:52 +00:00
mainzelm ec5d343b75 Removed assignments to errno. 2001-01-09 10:26:52 +00:00
mainzelm 51552b6842 Optional arguments for syslog and openlog. 2001-01-03 16:15:28 +00:00
mainzelm fb6abe74fa Added syslog. 2001-01-02 14:43:27 +00:00
mainzelm 73b9c41bbb define-enum-constants-from-zero for enumerations wirhout explicit numbers. 2001-01-02 14:42:14 +00:00
mainzelm 820a2cfd5d No longer needed in new FFI 2001-01-01 17:59:26 +00:00
mainzelm 843b443132 Snapshot of the cig generated files. 2001-01-01 17:55:36 +00:00
mainzelm 68947a09f9 Exported set-effective-gid. 2001-01-01 17:50:08 +00:00
mainzelm a2ec10935a removed unused code, port to new FFI 2001-01-01 17:49:08 +00:00
mainzelm 07f9cbc6c9 Port to new FFI. 2001-01-01 17:34:08 +00:00
mainzelm c7be5ed2b1 Ported some functions to new FFI. 2001-01-01 17:22:54 +00:00
mainzelm 66cb77856d Typo. 2001-01-01 17:21:58 +00:00
mainzelm be6aa6e152 Changed return type of init function to void. 2001-01-01 17:21:35 +00:00
mainzelm 1ea7c8604e Ported to new FFI. 2001-01-01 17:19:55 +00:00
mainzelm d69728b899 fixed typo 2001-01-01 16:49:34 +00:00
mainzelm d75baf1985 port to new FFI 2001-01-01 16:45:32 +00:00
mainzelm f0ffc6acaf port to new FFI 2001-01-01 16:45:32 +00:00
mainzelm df2db4631d Changed default directory for create-temp-file fro /usr/tmp to /tmp. 2000-12-22 14:13:17 +00:00
mainzelm ac9810b803 Fixed an argument-order bug in STRING->LIST.
-Olin
2000-12-22 08:49:23 +00:00
mainzelm 55d806358f put process objects on top of event system 2000-12-21 21:57:37 +00:00
mainzelm 3a8546df55 Fixed name clash on solaris. 2000-12-21 17:01:05 +00:00
mainzelm 701d506b3e code clarification 2000-12-21 16:09:52 +00:00
mainzelm f8af34a318 Check wether some SVR4 defines SIGPOLL equal to SIGIO 2000-12-21 15:46:34 +00:00
mainzelm b8c0e87293 Remove extern declaration of h_errno since AIX defines it as (*(int *)h_errno_which()). 2000-12-21 15:44:57 +00:00
mainzelm dacfeca1ad removed accidentally added directory machine 2000-12-21 14:06:39 +00:00
mainzelm 0c55bd5ec3 added various .cvsignore files to suppress warnings about the removed files 2000-12-21 14:00:59 +00:00
mainzelm 2d1dd3b4c1 removed accidentally added files 2000-12-21 13:49:05 +00:00
mainzelm dee3f345f5 Fixed typo. 2000-12-21 13:27:28 +00:00
mainzelm cfb1e34b08 Rewrote signal checks and added handler for all scsh interrupts. 2000-12-21 13:25:21 +00:00
mainzelm 56234c5ae2 removed bogus files 2000-12-21 12:11:23 +00:00
mainzelm aa8647061d added next, cygwin32, sunos and ultrix (all untested) 2000-12-20 15:26:12 +00:00
mainzelm b0d994b43c Build fixes for irix and hpux. 2000-12-20 08:31:06 +00:00
mainzelm d7d0c6f3b8 Added hpux (untested) 2000-12-19 16:33:51 +00:00
mainzelm 902df6dc62 added irix(untested) 2000-12-19 16:10:03 +00:00
mainzelm 6c136b907d removed obsolete files/code for jcontrol and signal sets 2000-12-18 15:45:46 +00:00
mainzelm 747dfe20df non-posix signal numbers are defined if not existed 2000-12-14 18:51:10 +00:00
mainzelm c51640a971 made configure determine the mapping from os signals to scsh interrupts 2000-12-14 18:41:11 +00:00
mainzelm 812bc338c3 made configure determine the mapping from os signals to scsh interrupts 2000-12-14 18:32:53 +00:00
mainzelm 5fab63dc0d Removed warning that occurred when procobj was already gc'ed. 2000-10-19 08:40:17 +00:00
mainzelm 21cb7839bd Cig generated files... 2000-10-19 08:37:34 +00:00
mainzelm 28ba525f4b Removed oldtop.scm since top is now nearly perfect. 2000-10-19 08:36:03 +00:00
mainzelm 830f323166 Replaced error with warn. The problem itself remains. 2000-10-19 08:22:37 +00:00
mainzelm 4088792f41 Changed interaction-environment for processing of command line
switches to user-environment. This made -s work.
2000-10-09 09:44:20 +00:00
mainzelm 6d9e7de153 forever-sleeping-thread is only started in interactive sessions since
it prevents the system from exiting.
Fixed -i switch.
2000-10-04 14:12:49 +00:00
mainzelm 3bcabf36b5 Added dot-locking. 2000-09-27 11:53:21 +00:00
mainzelm 2cb62dfcb5 Fixed two small bugs in pipe and fork 2000-09-24 20:52:07 +00:00
mainzelm e3f2877ab9 added internet-address->dotted-string 2000-09-24 20:51:04 +00:00
mainzelm d58a39d813 Small bug fixes. 2000-09-20 10:14:11 +00:00
mainzelm 5fc995e50f Removed call to C code since it doesn't cooperate with non-blocking
fd's.
2000-09-20 10:12:31 +00:00
mainzelm 45f0550f79 replaced <regex.h> by "regex.h" to fetch the local file. 2000-09-19 13:34:38 +00:00
mainzelm 2a6d087f0d Replaced many define-foreign by define-stubless-foreign 2000-09-19 08:08:39 +00:00
mainzelm b3447ad964 Default sighandler for SIG/INT depends on whether we run interactive or not. 2000-09-17 15:10:42 +00:00
mainzelm 145ddac9cb removed debugging output 2000-09-12 17:43:48 +00:00
mainzelm 3ecb144f95 removed bogus file 2000-09-01 08:31:58 +00:00
mainzelm 0c7809d0bc fixed typo 2000-09-01 07:07:57 +00:00
mainzelm edf2979dc8 removed debug message 2000-09-01 07:06:38 +00:00
marting fa64d485bc Added a start event during initialisation. 2000-08-28 13:30:56 +00:00
marting 2dbf1a07e8 Initialize event system etc. in scripts too. 2000-08-28 13:28:49 +00:00
marting 5cca147350 Fixed bug due to the fact that byte_vector_ref returns a signed char. 2000-08-28 13:02:09 +00:00
marting 82f8195911 Initialize event system etc. in scripts too. 2000-08-28 12:51:22 +00:00
marting 99ab68d3d9 From the scsh rep:
date: 2000/02/15 15:49:13;  author: shivers;  state: Exp;  lines: +38 -13
A couple of release problems, no real code bugs.
- The LET-MATCH, IF-MATCH, MATCH-COND macros weren't exported,
  and the source wasn't even loaded.
- Similarly, the entire SRE-SYNTAX-TOOLS package wasn't exported.
- The SIMPLIFY-REGEXP proc wasn't exported.

I hacked packages.scm to do the right package defining & exporting.
I also renamed let-match.scm to re-match-syntax.scm and moved the enclosing
module code from the file over to packages.scm.
    -Olin
2000-08-28 12:43:27 +00:00
marting 04fc3b8b37 Fork sets batch-mode in child only if there is a session. 2000-07-28 09:11:09 +00:00
marting 50664556eb Procedures to convert numbers and bytes to
internet-host-addresses. Added fd->port. Small bug-fixes.
2000-07-27 13:38:35 +00:00