Commit graph

2746 commits

Author SHA1 Message Date
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
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
Fabrizio Fabbri
4ed1ba10cc Fix non msvc build broken by 5758af77 2017-01-11 08:16:07 +01:00
Daniel Kochmański
d7ca24c3fd Merge branch 'develop' into 'develop'
msvc: Compare thread id instead of handlers to check if it is already registered.

See merge request !42
2017-01-10 09:56:12 +00:00
Fabrizio Fabbri
5758af7756 msvc: Compare thread id instead of handlers to check if it is already registered. 2017-01-10 10:42:27 +01:00
Daniel Kochmański
9c80353aba dlerror may return NULL, use safe variant 2017-01-09 18:13:05 +01:00
Daniel Kochmański
f3198d2fbc Merge branch 'develop' into 'develop'
Check whether dlerror(3) returns NULL.

See merge request !41
2017-01-09 17:05:14 +00:00
Vadim Penzin
f8a609e7d5 Check whether dlerror(3) returns NULL. 2017-01-08 07:26:00 +02:00
Daniel Kochmański
9eaf33656e simplify readlink code
Fixes #341.
2017-01-06 18:53:03 +01:00
Daniel Kochmański
9a47e3b6c5 another fix for install target 2017-01-06 18:52:24 +01:00
Daniel Kochmański
cb3294fc7b fix parallel builds 2017-01-06 18:52:24 +01:00
Daniel Kochmański
adbedd31de add back two makefiles 2017-01-06 18:52:24 +01:00
Vadim Penzin
fa0b55ba5b Prevent CLOS' stream-read-line from signalling end-of-file while reading unterminated lines. 2017-01-05 13:44:38 +02:00
Daniel Kochmański
904333a5a3 atan: fix builds without long double 2016-12-22 09:29:21 +01:00
Daniel Kochmański
50cd94ccf3 atan: use libc functions
We get rid of some code which didn't handle correctly ieee-fp in favor
of c99 functions. Fixes #332.
2016-12-22 09:05:15 +01:00
Daniel Kochmański
7747313d74 Revert "atan: fix if-clause order to work on signed zero"
This reverts commit 5199c6acd1.
2016-12-21 16:54:38 +01:00
Daniel Kochmański
17fc9b51b2 Revert "atan: fix if-clause order to work on signed zero (2)"
This reverts commit 4ba367531e.
2016-12-21 16:54:23 +01:00
Daniel Kochmański
4ba367531e atan: fix if-clause order to work on signed zero (2)
Fixes #329. This time for real :-)
2016-12-20 17:56:20 +01:00
Daniel Kochmański
25b25fc1bd cosmetic: add informative comment about abs 2016-12-20 17:37:44 +01:00
Daniel Kochmański
5199c6acd1 atan: fix if-clause order to work on signed zero
Fixes #329.
2016-12-20 17:15:59 +01:00
Daniel Kochmański
c80b7762d6 buildsystem: fix sse build 2016-12-19 12:31:51 +01:00
Daniel Kochmański
f2f49389fa cosmetic: use comment instead of #if 0 2016-12-13 17:22:38 +01:00
Daniel Kochmański
d8694124ee don't trap underflows 2016-12-13 17:22:02 +01:00
Daniel Kochmański
fb0359eda1 external process: we are using handle, not a pointer 2016-12-08 15:56:55 +01:00
Daniel Kochmański
62cf64aa86 terminate-process: windows HANDLE isn't fixnum 2016-12-08 14:58:17 +01:00
Daniel Kochmański
42901b3c31 FreeBSD 11.0 doesn't define RLIM_SAVED_MAX/CUR 2016-12-07 10:10:01 +01:00
Daniel Kochmański
e6fcb5b7a8 floating point exceptions: be more ansi-compliant
signal exceptions on underflows, overflows, division by zero etc.
2016-12-06 12:45:38 +01:00
Daniel Kochmański
626f4829bb number comparison: fix check for infinity (typo) 2016-12-06 09:47:16 +01:00
Daniel Kochmański
b07cac33b1 fix bogus change during reindent 2016-12-05 22:06:23 +01:00
Daniel Kochmański
2287b02b53 gc-stats: always return correct number of bytes consed 2016-12-04 15:53:50 +01:00
Daniel Kochmański
b51576c90d cosmetic: comment wrap 2016-12-04 15:19:53 +01:00
Daniel Kochmański
426ab1f172 gc-stats: handle unsinged int overflow correctly 2016-12-04 14:48:26 +01:00
Daniel Kochmański
e4e3bc64bc cosmetic: comment wrap 2016-12-04 14:47:59 +01:00
Daniel Kochmański
cbb4e47d00 Prevent crash from #267. 2016-12-03 23:19:16 +01:00
Daniel Kochmański
6880e45761 cmuutil: improve file and export macros
Add docstrings and export ONCE-ONLY and COLLECT. Also export alias for
WITH-UNIQUE-NAMES named WITH-GENSYMS.

COLLECT and ONCE-ONLY accept now bare symbols (as a syntactic sugar).
2016-11-19 16:02:31 +01:00
Daniel Kochmański
177e661ff0 Get rid of a warning (cast pointer to integer) 2016-11-19 11:19:05 +01:00
Daniel Kochmański
0b1106d8fa explain shift-count-overflow warning during the compilation
Do it in comment. This may be probably fixed with a preprocessor, but
it's not that obvious – we need off_t number of bits available at the
compilation time and compare it to FIXNUM bits.
2016-11-19 11:03:49 +01:00
Daniel Kochmański
7d8f7cdc76 add _ecl_unexpected_return(); to noreturn funs 2016-11-18 14:58:31 +01:00
Daniel Kochmański
dd5a189a9d si_nan: return correct value (typo) 2016-11-18 14:58:15 +01:00
Daniel Kochmański
f70f46a1b7 si_nan: return value (bugfix) 2016-11-18 14:50:56 +01:00
Daniel Kochmański
6b07439dfe ieee-fp: remove si_infinity
Our "new" way of defining infinity constants breaks on ARM. Remove
unnecessary functions.

IEEE-FP are a nightmare (honestly).
2016-11-18 13:48:22 +01:00
Daniel Kochmański
c1f485cc31 Simplify mp lambda lists
Remove redundant keyword-name specification from make-locks recursive
and remove dummy &key from barrier-wait (potentially not backward
compatible with C code).
2016-11-17 23:00:17 +01:00
Daniel Kochmański
c1067620a7 Improve rwlock built-in class recognition
Fixes #303.
2016-11-10 19:42:52 +01:00
Daniel Kochmański
36b1b1d3cc add package-locks abstraction
We follow the protocol proposed by SBCL.
2016-11-09 16:44:51 +01:00
Daniel Kochmański
861b286f40 don't declare signal-simple-error as noreturn (2)
This function is used to implement continuable-error for packages (and
probably more).
2016-11-09 16:12:43 +01:00
Daniel Kochmański
8df64c7dc7 CDR: implement cdr-14
Added CDR-1, CDR-5 and CDR-14 to *features*.

https://common-lisp.net/project/cdr/document/14/index.html
2016-11-05 19:08:15 +01:00
Daniel Kochmański
44178bd06c unixfsys.d: fix symlink buffer grow
We were verifying `written == size' to check if there is something more
to be read, but previously we did `size+=256', so this test was always a
failure.

Additionally we fix a bug (not reported anywhere) for symlinks which
have 128+256n characters – '/' for directories and '\0' in the end
wouldn't fit in this corner cases.

Related to #295.
2016-11-05 15:09:50 +01:00
Daniel Kochmański
1cfb5016d8 ieee: fix comparison of infinities with ratios and bignums
Fixes #299.
2016-11-04 21:07:58 +01:00
Daniel Kochmański
84924ca29d Be more `--with-cxx' friendly
Do explicit cast to `cl_env_ptr' from `(void *)' and don't use reserved
keyword `this'.
2016-11-04 18:48:25 +01:00
Daniel Kochmański
09cdf272a2 build: remove c/-subdir recursive make 2016-10-08 23:04:10 +02:00