Commit graph

7081 commits

Author SHA1 Message Date
Daniel Kochmański
1e62ca0a1a prepare-args: last argument is NIL for POSIX
On POSIX arguments starts with command name and end with NULL. Ensure,
that last argument is NULL to avoid "Bad address".
2017-02-18 20:23:15 +01:00
Daniel Kochmański
0144154b9d prepare-args: coerce arguments for windows 2017-02-18 19:14:34 +01:00
Daniel Kochmański
f7e224b84e external-process: remove interface ties from the core
We are stopping to handle sigchld for time being because it was too
tightly coupled with core.

Internal interface wait-for-all-processes is removed as well as eager
update of process state.
2017-02-18 15:04:10 +01:00
Daniel Kochmański
a810a4f73d ext:system: don't escape arguments 2017-02-18 07:53:55 +01:00
Daniel Kochmański
204062999f Merge branch 'refactor-run-program' into develop
Refactor run-program to have HL interface in lisp sources. Add proper
argument escaping on Windows (fixes #304).

TODO:
- write tests for run-program
- documentation
- move external-process logic to process.lsp
- implement external-process-pipe-thread
2017-02-17 19:26:22 +01:00
Daniel Kochmański
039f49a02e run-program: windows: sanitize args 2017-02-17 19:04:45 +01:00
Daniel Kochmański
d07fbcb9fd run-program: windows: args 2017-02-17 19:03:08 +01:00
Daniel Kochmański
a26791e9fb run-program: on windows argv is a string (no car) 2017-02-17 18:59:39 +01:00
Daniel Kochmański
ca08f94430 cosmetic 2017-02-17 18:45:04 +01:00
Daniel Kochmański
9e69603e4f run-program: fix misconception 2017-02-17 18:43:19 +01:00
Daniel Kochmański
2b2ef967ef run-program: don't modify command 2017-02-17 18:31:36 +01:00
Daniel Kochmański
10242910f9 Merge branch 'develop' into refactor-run-program 2017-02-17 18:30:32 +01:00
Daniel Kochmański
ee10aa7313 run-program: error stream direction is output 2017-02-17 17:58:13 +01:00
Daniel Kochmański
1360bc1306 cosmetic: add comment 2017-02-17 17:25:12 +01:00
Daniel Kochmański
212a60e9bc run-program: if gray-stream passed, propose continuation
If execution is continued, new stream is created.
2017-02-17 17:24:19 +01:00
Daniel Kochmański
76e503ed7a run-program: if gray-stream passed, propose continuation
If execution is continued, new stream is created.
2017-02-17 17:22:26 +01:00
Daniel Kochmański
2fb64f6d82 run-program: process passed arguments properly 2017-02-17 16:49:32 +01:00
Daniel Kochmański
d8c4da22fc run-program: use previously prepared arguments 2017-02-17 16:24:48 +01:00
Daniel Kochmański
9a166af99c run-program: typos / ommisions 2017-02-17 16:05:16 +01:00
Daniel Kochmański
86faf44d2a run-program: initial separation (logic / low-level interface) 2017-02-17 15:21:31 +01:00
Daniel Kochmański
6fe66843de cosmetic: be explicit about comments 2017-02-17 14:19:51 +01:00
Daniel Kochmański
d9a715d7da cleanup: remove dead code (2) 2017-02-17 14:18:45 +01:00
Daniel Kochmański
dfa4d36384 cleanup: remove dead code 2017-02-17 14:18:27 +01:00
Daniel Kochmański
e3b8c3a668 msvc: improve clean targets
Contributed on GitLab by @Exaybachay.
2017-02-17 09:01:06 +01:00
Daniel Kochmański
9e4370bd88 encodings: ommited file 2017-02-17 08:57:58 +01:00
Daniel Kochmański
37083b5836 encodings: typo and more exact proclamation
by mistake make-encoding was bound to load-encoding. Also we have
proclaimed, that make-encoding always returns hash-table.
2017-02-17 08:57:05 +01:00
Daniel Kochmański
091d53626b encoding: typo 2017-02-16 21:31:51 +01:00
Daniel Kochmański
1b90599696 encodings: get rid of spurious function
We don't need explicit si_make_encoding.
2017-02-16 21:29:42 +01:00
Daniel Kochmański
0b66672d7f changelog: update 2017-02-16 20:48:05 +01:00
Daniel Kochmański
bdc75e42da encodings: don't fake ext:make-encoding in dispatch table
si_make_encoding was bound to ext:make-encoding before version in
iolib.lsp was overwriting it. That caused maybe_fix_console to fail on
Windows due to infinite concurrency (si_make_encoding called itself,
because iolib.lsp wasn't called yet).

Fixes #160.
2017-02-16 20:44:07 +01:00
Daniel Kochmański
1c8284c17c Merge branch 'develop' into 'develop'
Add ABORT keyword argument to SB-BSD-SOCKETS:SOCKET-CLOSE

See merge request !52
2017-02-12 09:48:04 +00:00
Kris Katterjohn
de661f580a Add ABORT keyword argument to SB-BSD-SOCKETS:SOCKET-CLOSE
This keyword argument was added in SBCL in 2010 and is used to pass
ABORT to CL:CLOSE.

The absence of this would obviously cause errors when code expects
this to be available.  For example, this happens in usocket's
SOCKET-CONNECT and would cause several errors in their test suite
with obscure error messages like

  Wrong number of arguments passed to function #<compiled-function 0000000003562e80>.

This is untested on Windows.
2017-02-11 19:18:50 -06:00
Daniel Kochmański
acfde74880 Merge branch 'patch-1' into 'develop'
In `flisten` check that the stream is not in an error state, as well as not eof

See merge request !51
2017-02-09 22:07:05 +00:00
Erik Bray
47b1e98272 In flisten check that the stream is not in an error state, as well as not eof
(The latter doesn't necessarily imply the former)
2017-02-09 18:41:40 +01:00
Daniel Kochmański
1f00d11a40 Merge branch 'develop' into 'develop'
Fix/improve some error messages

See merge request !50
2017-02-08 21:51:01 +00:00
Kris Katterjohn
2c651a9ecd Improve some error messages for functions of exactly one variable
This changes
  "the value of the first argument"
to
  "the value of the only argument"
in some type-error error messages for functions accepting exactly
one argument.
2017-02-07 16:19:17 -06:00
Kris Katterjohn
98969d14ff Fix some more error messages mentioning the wrong function names
array-rank  - mentioned array-dimension instead
denominator - mentioned numerator instead
set         - mentioned setq instead
2017-02-07 16:17:26 -06:00
Daniel Kochmański
310b51b677 Merge branch 'develop' into 'develop'
fix off-by-one range checks for tcp ports; check for additional ctags names; fix error message

See merge request !49
2017-02-05 19:48:31 +00:00
Kris Katterjohn
10e3b8c39d Fix error message in OPEN-SERVER-STREAM
It mentioned OPEN-CLIENT-STREAM instead.
2017-02-05 13:02:55 -06:00
Kris Katterjohn
6b103ae6d3 Fix off-by-one range checks for TCP port numbers
Port numbers should be in the range [0,65535] not [0,65536].  It
looks like the check was changed from 65535 to 65536 in commit
89b9a561ea.
2017-02-05 13:01:07 -06:00
Kris Katterjohn
2779b16b95 configure: check for additional ctags names
It looks like it's been assumed that "ctags" is exuberant ctags
(or similar), but some systems like OpenBSD have a ctags in the
base system that does not support some desired options like -R.
Try some other names first.
2017-02-04 15:40:10 -06:00
Daniel Kochmański
93a218e0f2 unixfsys: remove coerce_to_posix_filename
This was a workaround around bugs in cygwin and mingw (which are already
fixed), when the directory name ended with '/'. This fix introduced
extra bug with probe-file called on the root directory (it returned nil
on all platforms).

Original comment:

This converts a pathname designator into a namestring, with the
particularity that directories do not end with a slash '/', because this
is not supported on all POSIX platforms (most notably Windows).

Bug reference:

https://sourceforge.net/p/mingw-w64/patches/34/

Fixes #351.
2017-02-04 12:50:28 +01:00
Daniel Kochmański
d992b886c7 tests: add regression test for #351 2017-02-04 12:49:52 +01:00
Daniel Kochmański
35328d09d7 asdf: preserve program-system default
no-uiop is t for all but program-system.
2017-02-03 00:17:09 +01:00
Daniel Kochmański
99e70ede04 asdf: update to 3.1.8.4
Fixes problem with creating executables.
2017-02-02 22:31:44 +01:00
Daniel Kochmański
9f940c125a Merge branch 'develop' of gitlab.com:embeddable-common-lisp/ecl into develop 2017-02-02 22:30:44 +01:00
Daniel Kochmański
470ad979be Merge branch 'develop' into 'develop'
fix #330 Order of evaluation of VALUES forms was incorrect in compiled code

Closes #330

See merge request !48
2017-02-02 07:28:34 +00:00
Daniel Kochmański
f4d0df651b buildsystem: fix for old msvc
Old MSVC apparently things, that char = unsigned char. Add explicit
prefixes to typedefs.

This is backward-compatibility fix, because this version of msvc doesn't
support some c99 types.

Reported and fixed by Jón Hallur Haraldsson.
2017-02-01 12:56:41 +01:00
Fabrizio Fabbri
df2f15b9b1 Merge remote-tracking branch 'origin/develop' into develop 2017-01-31 21:53:37 +01:00
Fabrizio Fabbri
96e5780d91 fix #330 - Order of evaluation of VALUES forms was incorrect in compiled code 2017-01-31 21:51:25 +01:00