X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=contrib%2Fsb-bsd-sockets%2Fconstants.lisp;h=22f6793e8580de8346763e4058eb8c91c1ea6039;hb=4bc6b918bb99e8dcd17bbe6479a06e52b2d04a6c;hp=fa17043aa2892d0ccdc7f915c0e228c3110c4ce5;hpb=d4c7ab04ed10729a2cfa3321f4382d8a218ad958;p=sbcl.git diff --git a/contrib/sb-bsd-sockets/constants.lisp b/contrib/sb-bsd-sockets/constants.lisp index fa17043..22f6793 100644 --- a/contrib/sb-bsd-sockets/constants.lisp +++ b/contrib/sb-bsd-sockets/constants.lisp @@ -65,6 +65,7 @@ (:integer EAGAIN "EAGAIN") (:integer EBADF "EBADF") (:integer ECONNREFUSED "ECONNREFUSED") + (:integer ETIMEDOUT "ETIMEDOUT") (:integer EINTR "EINTR") (:integer EINVAL "EINVAL") (:integer ENOBUFS "ENOBUFS") @@ -93,6 +94,9 @@ (:integer msg-trunc "MSG_TRUNC") (:integer msg-waitall "MSG_WAITALL") + ;; for socket-receive + (:type socklen-t "socklen_t") + #| ;;; stat is nothing to do with sockets, but I keep it around for testing ;;; the ffi glue @@ -107,7 +111,7 @@ (c-string-pointer name "char *" "p_name") ((* (* t)) aliases "char **" "p_aliases") (integer proto "int" "p_proto"))) - (:function getprotobyname ("getprotobyname" (* t) + (:function getprotobyname ("getprotobyname" (* protoent) (name c-string))) (:integer inaddr-any "INADDR_ANY") (:structure in-addr ("struct in_addr" @@ -165,7 +169,7 @@ (len integer) (flags integer) (sockaddr (* t)) ; KLUDGE: sockaddr-in or sockaddr-un? - (socklen (* integer)))) + (socklen (* socklen-t)))) (:function gethostbyname ("gethostbyname" (* hostent) (name c-string))) (:function gethostbyaddr ("gethostbyaddr" (* hostent) (addr (* t))