Commit graph

313 commits

Author SHA1 Message Date
Daniel Kochmański
ef450d9070 contrib: sockets: fix get-host-by-name
Remove flag AI_V4MAPPED which takes effect only for AF_INET6
family. Currently we do not work at all with ipv6, hence this flag is
a no-op. Moreover Android has no definition for this flag. See !172.

Fix contributed by Polos Ruetz. Closes !172.
2019-12-30 10:39:13 +01:00
Marius Gerbershagen
234a1084d5 contrib: sockets: fix mingw build 2019-12-08 00:22:52 +01:00
Marius Gerbershagen
b94c2f5fe6 contrib: sockets: add missing include
Needed by gai_strerror. Fixes #533.
2019-12-07 21:47:10 +01:00
Daniel Kochmański
de073ef274 sockets: recvfrom: cast sockaddr_in* to sockaddr* explicitly
Apparently CXX compiler needs this. Steps to reproduce the issue:

    ./configure --with-cxx && make

With this fix the problem is gone.
2019-11-25 15:40:28 +01:00
thijs
5747fddee9 contrib: get-host-by-name: use getaddrinfo instead of gethostbyname
- this improvement was suggested before in the comment
- fix print-object for descriptors which are not bound
2019-11-22 08:28:25 +01:00
Marius Gerbershagen
b067063c94 cmp: prevent inline information from getting lost while compiling ECL itself
C inline information is saved in +default-machine+, which was
previously a constant. However, the value assigned to
+default-machine+ is recomputed during load and compile
time. Technically, assigning a constant a new value which is not eql
to the old one is undefined behaviour in the ANSI standard. What ECL
did was simply to reassign the constant when compiling
cmpc-machine.lsp. However, this meant that the inline information
which was added to +default-machine+ when loading sysfun.lsp was
lost. Thus, all ECL source files compiled after cmpc-machine.lsp were
compiled without inline information. We prevent this by using an
ordinary variable *default-machine* instead of a constant.
2019-11-17 19:58:53 +01:00
Marius Gerbershagen
51b68e8b2a contrib: cl-simd: fix def-inline macro
Fixes #527.
2019-11-16 20:10:56 +01:00
Marius Gerbershagen
a08f26cc27 Merge branch 'fix-socket-receive-to-return-remote-addr' of https://gitlab.com/thijso/ecl into develop 2019-09-02 21:52:13 +02:00
thijs
98afe7cbd0 Fix socket-receive to match the documentation; return the address of the peer that sent a message 2019-08-31 16:28:16 +02:00
thijs
87a2076384 Fix socket-receive to match the documentation; set MSG_TRUNC when socket type is :datagram 2019-08-31 16:20:28 +02:00
Marius Gerbershagen
944805cbf5 contrib: defsystem: (hopefully) finally remove all old package names
Fixes #480.
2019-03-20 21:20:28 +01:00
Daniel Kochmański
20fdd44b79 contrib: defsystem: fix packages 2019-03-15 20:38:39 +01:00
Daniel Kochmanski
9096514cff extensions: put ext:package-locked-p in core module. 2019-02-07 13:27:12 +01:00
Marius Gerbershagen
0b6311b399 contrib: remove use of legacy names 2019-01-14 21:29:34 +01:00
Marius Gerbershagen
c7a0b753c9 bytecmp: fix compilation of closures
Extract function name for bclosures in guess_environment and
    signal an error when attempting to compile a cclosure
2018-06-23 21:37:15 +02:00
Daniel Kochmanski
fd183e575f Better error messages, bc-compile improvements
bc-compile is more conforming now (we validate definition and name, also our
closure compilation is a bit better, still broken though).

Also improve some error messages and add periods at the end.
2018-02-13 12:43:32 +01:00
Marius Gerbershagen
c279138bb2 bytecmp.lisp: allow T for :output-file in bc-compile-file. Fixes #393 2017-11-03 20:29:09 +01:00
Daniel Kochmanski
c771b46c5f feature: export make-stream-from-fd interface 2017-10-11 10:25:59 +02:00
Daniel Kochmanski
4915f8bc33 bump asdf 2017-09-30 16:07:10 +02:00
Daniel Kochmanski
270450a660 asdf: update to version 3.1.8.7
This version fixes mal-handling of :if-feature clauses which correct
loading of systems using it.
2017-09-30 11:12:29 +02:00
Daniel Kochmanski
54f7f9c424 sb-bsd-sockets: socket-receive: add default element-type 2017-09-30 11:12:00 +02:00
Daniel Kochmanski
f2473ade5b asdf: update to 3.1.8.6
this version allows specifying init-name
2017-07-21 19:30:19 +02:00
Daniel Kochmański
da4669d792 cdb: fix declaration 2017-04-28 11:13:24 +02: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
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
d9d6afeba3 asdf: bring back old package nicknames 2016-12-13 15:34:55 +01:00
Daniel Kochmański
3203a373be update asdf to 3.1.8.1 2016-12-12 08:02:45 +01:00
Daniel Kochmański
fd24c923d3 update asdf to 3.1.8
To avoid confusion we create a separate numeric branch from 3.1.7 (ASDF
3.2.0 release is on its way).

This change backports fix for static-library builds. Fixes #177.
2016-12-06 08:59:52 +01:00
Daniel Kochmański
4e4e07eaed asdf: backport some upstream changes 2016-12-05 20:30:32 +01:00
Daniel Kochmański
c90e874437 Update ASDF to 3.1.7.26 derivative
It seems that we have to fork here for now due to some arbitrary
decisions.

See:
https://bugs.launchpad.net/asdf/+bug/1493031
https://gitlab.common-lisp.net/asdf/asdf/merge_requests/34

Fixes #196.
2016-11-27 11:02:24 +01:00
Daniel Kochmański
6892db8849 asdf: bump asdf to 3.1.7.35 development version 2016-11-19 10:29:59 +01:00
Daniel Kochmański
1b7c839d70 Move package-locks interface to contrib/ 2016-11-11 09:30:50 +01:00
Daniel Kochmański
7a8f1b4a7a contribs: update asdf to version 3.1.7
Fixes #243.
2016-09-07 16:24:44 +02:00
Daniel Kochmański
e640ef1c2b haiku: define ESOCKTNOSUPPORT to ENOTSUP
Haiku lacks some parts of POSIX API. Workaround to make sockets work.
2016-09-06 21:55:56 +02:00
Diogo Franco
54a614bf34 do not warn about the PROFILE function, because this is also used in UNPROFILE 2016-07-20 11:54:06 +01:00
Diogo Franco
60a864ce3b delete broken list case in profile module. warn and ignore invalid names. 2016-07-20 11:38:43 +01:00
Fabrizio Fabbri
52de2ceea6 Fix compilation for AIX and xlc compiler. 2016-03-02 12:08:48 -05:00
Eric Timmons
6eede933dd Add defaults for NETDB_{INTERNAL,SUCESS}.
NETDB_INTERNAL and NETDB_SUCCESS are not defined by POSIX, so some
libc implementations (such as musl) do not have them. When compiling
sockets contrib, check if these are defined and, if not, define them to
be zero.
2016-02-24 21:48:57 -05:00
Daniel Kochmański
7feed6c6f4 contrib: call provide uniformly
Various contrib modules called provide with varying syntax from "module"
through 'module to '#:module. The last one is picked:

(provide '#:module)
2015-10-23 18:18:58 +02:00
Daniel Kochmański
58ee224fe3 cosmetic: replace push' with pushnew'
When appending :wsock to *features*.
2015-10-23 18:16:50 +02:00
Sylvain Ageneau
5b0a9fe6c5 mobile: fix socket implementation on android
getprotobyname is not implemented in bionic libc.
2015-10-23 18:12:54 +02:00
Daniel Kochmański
3b66508cb9 asdf: fix problem with uiop:run-program until we upgrade to next ASDF
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-11 12:56:10 +02:00
Zack Piper
00521d869a Untabify everything. 2015-09-01 20:10:10 +00:00
Daniel Kochmański
64c49df805 asdf: update to version 3.1.5.4
This version has fixed make-image and uses run-program.
ECL backend updates possible thanks to help of Francois-Rene Rideau.

Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-08-15 09:05:51 +02:00
Daniel Kochmański
563c362df3 rt: add deftask* and untabify sources
deftask* evaluates result agument.

Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-08-13 21:41:32 +02:00
Daniel Kochmański
850f1ccce4 ffi: remove package nickname 'uffi'
Our ffi isn't uffi 2.0 compatible and most systems wants this, when
they say (require 'uffi). Also if system has asdf dependency on
quicklisp) we have package name error.

We'll depend with UFFI 2.0 compability on cffi-uffi-compat, what is
the saniest approach. Some ECL specific patches will land there soon
to improve performance - no internal FFI api will change. It's just
nick removal.

Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-08-04 12:22:02 +02:00
Daniel Kochmański
d75552027a compiler: bind lexically *readtable* when file is compiled
Both byte and C compilers didn't bind lexically *readtable*, what lead
to pollution of other compiled packages. Fixes #95 and #59.

Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-07-28 14:25:29 +02:00
Daniel Kochmański
f056b3d000 Merge branch 'develop' into upgrade-libs 2015-04-12 11:54:37 +02:00
Daniel Kochmański
dc490bd749 asdf: Update to version 3.1.4. 2015-04-07 21:53:39 +02:00