Commit Graph

475 Commits

Author SHA1 Message Date
mainzelm b9eb4c055c Add switches to evaluate exec scripts. 2003-01-27 20:08:43 +00:00
mainzelm a5e76d4484 Bug fix for let-match: variables may be #f. 2003-01-23 17:18:08 +00:00
sperber 4a1c23a9bb Fix a bug in SEND-MESSAGE:
There is such a thing as an empty datagram; SEND-MESSAGE used to
ignore those.  Now force those to be sent as well.
2003-01-21 09:47:10 +00:00
mainzelm c0cccd7c7a My first post 0.6.3 fix: md5 is not opened by default and you cannot
load it later since the path is not translated.
2003-01-16 16:52:51 +00:00
sperber 00e8147657 I did it again:
only multiply timeout by 1000 if it's a number.
2003-01-14 13:21:31 +00:00
sperber 32953f94c0 It had to happen: the first post-0.6.3 bug fix.
The SELECT* operations take a timeout argument, specified to be in
seconds.  Instead, they took milliseconds.  Fix this.
2003-01-13 16:52:26 +00:00
mainzelm 52c50f9410 Check whether the file is opened non-blocking and call read-block with
'immediate in this case.
2003-01-08 17:59:48 +00:00
mainzelm 658e5bca96 Consistently use size_t for optlen in getsockopt. 2003-01-08 10:17:06 +00:00
mainzelm 10cebaf941 Use tm.tm_zone only when defined. 2003-01-08 10:14:11 +00:00
mainzelm 804362834b Extend with-errno to capture all I/O exceptions of the VM:
+ add errno as first argument to raise-exception os-error in prim-io.scm

+ capture os-error in with-errno-handler* and adjust exception
  arguments to fit errno-handlers
2003-01-08 09:16:47 +00:00
mainzelm edddbd2925 Partially rewrite of read-string(!)/partial:
- immediately return on vacuous request

- try to avoid copying in read-string!/partial

- don't use read-string!/partial in read-string/partial to avoid
  duplicate copying

- if argument is fd, set port-buffer to bufpol/none as usual
2003-01-07 17:32:57 +00:00
mainzelm 7fb1d585b2 Set bufpol/none for current-input-port. 2003-01-07 16:01:14 +00:00
mainzelm f35bd77442 Check string indices and simplify calls to set-port-buffering. 2003-01-07 14:58:13 +00:00
mainzelm 2a352215df Clarifications and fixes for set-port-buffering. 2003-01-07 13:35:54 +00:00
mainzelm 5cd0763723 In socket-option operator and operand were swapped two times. 2003-01-07 10:51:28 +00:00
mainzelm 02e2c02e38 Ugly kludge to fix (glob "/*"): The code treats "" as "/" but
directory-files doesn't.
2003-01-07 10:45:01 +00:00
mainzelm 76536c0f37 comment on kludge for ->char-set. 2002-12-17 15:43:23 +00:00
sperber aa1481450d Make LET-MATCH/IF-MATCH conform to documentation & comments.
In the process, rewrite LET-MATCH as a SYNTAX-RULES macro.
2002-12-17 13:33:33 +00:00
mainzelm d57d0d9fbb Ignore result of -e: It's not needed anyway and it may be a multiple value result. 2002-12-16 15:44:16 +00:00
mainzelm 1efc0c03ba Export the new file-info-blabla? procedures 2002-12-15 18:03:41 +00:00
mainzelm 4acf723ba9 Don't ignore static.scm, its presence is an error. 2002-12-12 09:12:19 +00:00
mainzelm a3332290c6 port->socket now dups both ports. This is also documented. 2002-12-11 10:01:01 +00:00
eknauel e17a183ffe Initial version of scshql: The original scsh ODBC API for 0.5.x
written with the new ODBC bindings. Missing: All FETCH functions
2002-12-09 16:14:48 +00:00
mainzelm e47611a0ae + Check arguments of select-ports/port-channels
+ Fix typo in really-select-port-channels
2002-12-06 12:53:55 +00:00
sperber 923ada9986 Added SELECT-PORT-CHANNELS. 2002-11-28 14:31:57 +00:00
sperber b01518b4d9 Rename WAIT-PORTS to SELECT-PORTS. 2002-11-28 14:15:34 +00:00
sperber a6ec3b5bb5 Add WAIT-PORTS. 2002-11-28 10:42:09 +00:00
mainzelm a45bcf41e9 Export connect-socket-no-wait and connect-socket-successful?. 2002-11-27 07:37:58 +00:00
mainzelm c3d776a279 Removed superfluous saving of s48 ports. They are no longer imported anyway. 2002-11-27 07:37:23 +00:00
mainzelm 2cc6f3f087 Removed export declaration of removed repl procedure. 2002-11-27 07:29:54 +00:00
mainzelm 2dda7c9888 Removed repl procedure: it wasn't working anyway. 2002-11-26 12:04:44 +00:00
mainzelm 21364665ee Introduced connect-socket-no-wait and connect-socket-successful?. 2002-11-22 12:26:08 +00:00
mainzelm b2f0570a86 + when importing scheme, hide the procedures which are about to be
overwritten

+ introduce structure scheme-with-scsh which exports the compound
  interface of scheme and scsh. Instead of the fragile (open scsh
  scheme) you can now use (open scheme-with-scsh).

+ removed superfluous partial-s48-ports
2002-11-19 12:16:08 +00:00
sperber 883117ae06 Change SELECT! in the same way as SELECT: only ask the buffers of
ports that were passed in, not those of raw file descriptors.
2002-11-12 14:26:02 +00:00
sperber a73f146a23 Change CONNECT-SOCKET to pass underlying file descriptor to SELECT to
prevent SELECT non-blocking because there's space in the buffer.
2002-11-12 13:14:44 +00:00
sperber a206e4f70a Change the semantics of select so that it doesn't check the underlying
port buffer for fdes arguments.
2002-11-12 13:13:27 +00:00
mainzelm 8900f05fd2 call select in connect only on EINPROGRESS, loop on other errors
(which should not happend anyway according to POSIX).
2002-10-31 09:51:48 +00:00
mainzelm bcd64a2b3a + Use select on socket:outport if connect returned EINPROGRESS.
+ Clearer return values for %connect: return a pair that indicates
  whether an recoverable error occured and if this error was EINPROGRESS
  or something else.
2002-10-30 13:12:00 +00:00
sperber 4290ccae21 Remove the Olinist CONDITITIONALS package, also fixing some atrocious
uses of whitespace, newline, and indentation.
This saves another 60k or so in scsh.image, actually getting us below
the level of 0.6.2.
2002-10-30 12:33:51 +00:00
sperber 20b65e6bfa Make dynamic sub-regexps of regexps involving repetition work. 2002-10-30 12:13:20 +00:00
sperber c7e49f9274 Rework CONNECT-SOCKET to use SELECT.
Note: this is presently broken because of a wrong input-port/output
port classification of the port passed into SELECT.
2002-10-30 12:01:19 +00:00
sperber d0977ea4d4 Revamped the SELECT implementation to properly distinguish between
input and output port.  Also, SELECT and SELECT! are no longer
squashed into one silly procedure.
2002-10-30 12:00:15 +00:00
sperber a8ad3e0c71 Cater to dynamic subforms of SUBMATCH. 2002-10-29 15:57:00 +00:00
mainzelm c5c913b129 Fixes for some bugs introduced by the last commit. 2002-10-23 11:51:21 +00:00
mainzelm 96060828fa Use "compare" und "rename" to compare symbols. 2002-10-21 17:30:49 +00:00
eknauel d1142b703c - Support for odbc 1.0 alloc functions 2002-10-11 08:06:45 +00:00
eknauel 41d219a5c1 + define SQLLEN if not defined (libiodbc on OS X doesn't have it)
+ new (less, but still) broken version of SQLGetData()
2002-10-05 18:00:59 +00:00
eknauel ce96216d41 + This version introduces the all new SQLBindCol(), which might (in
contrast to former versions) someday be capable of returning things
  like SQL_TIME_STRUCT, SQL_DATE_STRUCT, SQL_TIMESTAMP_STRUCT and
  SQL_NUMERIC_STRUCT.
+ However, SQLGetData() is now even more broken than before (if used
  on integer columns). It seems, that I failed to understand the API
  reference on SQLGetData() completly!
2002-09-30 18:20:47 +00:00
eknauel dc07184b5d + support for SQLBrowseConnect()
+ finalizers for connection-handles, environment-handles
  and statement-handles
+ finalizers need more testing!
2002-09-25 15:58:30 +00:00
mainzelm 8b451fe673 + Factor out exit hooks into a separate package.
+ Let exit call the exit hooks.
2002-09-25 11:40:07 +00:00