Fix cross build.
[sbcl.git] / contrib / sb-bsd-sockets / constants-gethostbyname.lisp
blob7dfe4242407f94504fb8575a22c5e5bdd2bcc91a
1 ;;; -*- Lisp -*-
3 ("sys/socket.h" "netdb.h")
5 ((:function gethostbyname ("gethostbyname" (* hostent) (name c-string)))
6 (:function gethostbyaddr ("gethostbyaddr" (* hostent)
7 (addr (* t))
8 (len int)
9 (af int)))
10 (:integer NETDB-INTERNAL "NETDB_INTERNAL" "See errno.")
11 (:integer NETDB-SUCCESS "NETDB_SUCCESS" "No problem.")
12 (:integer HOST-NOT-FOUND "HOST_NOT_FOUND" "Authoritative Answer Host not found.")
13 (:integer TRY-AGAIN "TRY_AGAIN" "Non-Authoritative Host not found, or SERVERFAIL.")
14 (:integer NO-RECOVERY "NO_RECOVERY" "Non recoverable errors, FORMERR, REFUSED, NOTIMP.")
15 (:integer NO-DATA "NO_DATA" "Valid name, no data record of requested type.")
16 (:integer NO-ADDRESS "NO_ADDRESS" "No address, look for MX record.")
17 #-sunos
18 (:function h-strerror ("hstrerror" c-string (errno int))))