Print this page
1666 libwrap is 32bit only
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Reviewed by: Garrett D'Amore <garrett.damore@dey-sys.com>
Reviewed by: Richard Lowe <richlowe@richlowe.net>

*** 1,12 **** /* * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ - #pragma ident "%Z%%M% %I% %E% SMI" - /* * tli_host() determines the type of transport (connected, connectionless), * the transport address of a client host, and the transport address of a * server endpoint. In addition, it provides methods to map a transport * address to a printable host name or address. Socket address results are --- 1,10 ----
*** 47,58 **** #include <netdir.h> #include <string.h> extern char *nc_sperror(); extern int errno; - extern char *sys_errlist[]; - extern int sys_nerr; extern int t_errno; extern char *t_errlist[]; extern int t_nerr; /* Local stuff. */ --- 45,54 ----
*** 318,340 **** { static char buf[40]; if (t_errno != TSYSERR) { if (t_errno < 0 || t_errno >= t_nerr) { ! sprintf(buf, "Unknown TLI error %d", t_errno); return (buf); } else { return (t_errlist[t_errno]); } } else { ! if (errno < 0 || errno >= sys_nerr) { ! sprintf(buf, "Unknown UNIX error %d", errno); return (buf); - } else { - return (sys_errlist[errno]); } - } } /* tli_sink - absorb unreceived datagram */ static void tli_sink(fd) --- 314,332 ---- { static char buf[40]; if (t_errno != TSYSERR) { if (t_errno < 0 || t_errno >= t_nerr) { ! snprintf(buf, sizeof (buf), "Unknown TLI error %d", t_errno); return (buf); } else { return (t_errlist[t_errno]); } } else { ! STRN_CPY(buf, strerror(errno), sizeof (buf)); return (buf); } } /* tli_sink - absorb unreceived datagram */ static void tli_sink(fd)