realhostname_sa.3 (131504) | realhostname_sa.3 (141846) |
---|---|
1.\" Copyright (C) 1995, 1996, 1997, 1998, 1999, and 2000 WIDE Project. 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 35 unchanged lines hidden (view full) --- 44.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 45.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 46.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 47.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 48.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 49.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 50.\" SUCH DAMAGE. 51.\" | 1.\" Copyright (C) 1995, 1996, 1997, 1998, 1999, and 2000 WIDE Project. 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 35 unchanged lines hidden (view full) --- 44.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 45.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 46.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 47.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 48.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 49.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 50.\" SUCH DAMAGE. 51.\" |
52.\" $FreeBSD: head/lib/libutil/realhostname_sa.3 131504 2004-07-02 23:52:20Z ru $ | 52.\" $FreeBSD: head/lib/libutil/realhostname_sa.3 141846 2005-02-13 22:25:33Z ru $ |
53.\" 54.Dd January 11, 2000 55.Os 56.Dt REALHOSTNAME_SA 3 57.Sh NAME 58.Nm realhostname_sa 59.Nd "convert a" 60.Vt "struct sockaddr" --- 18 unchanged lines hidden (view full) --- 79back to 80.Ar addr . 81.Pp 82.Ar host 83must point to a buffer of at least 84.Ar hsize 85bytes, and will always be written to by this function. 86.Pp | 53.\" 54.Dd January 11, 2000 55.Os 56.Dt REALHOSTNAME_SA 3 57.Sh NAME 58.Nm realhostname_sa 59.Nd "convert a" 60.Vt "struct sockaddr" --- 18 unchanged lines hidden (view full) --- 79back to 80.Ar addr . 81.Pp 82.Ar host 83must point to a buffer of at least 84.Ar hsize 85bytes, and will always be written to by this function. 86.Pp |
87If the name resolution doesn't work both ways or if the host name is longer | 87If the name resolution does not work both ways or if the host name is longer |
88than 89.Ar hsize 90bytes, 91.Xr getnameinfo 3 92with NI_NUMERICHOST specified, is used to convert 93.Ar addr 94to an ASCII form. 95.Pp --- 38 unchanged lines hidden --- | 88than 89.Ar hsize 90bytes, 91.Xr getnameinfo 3 92with NI_NUMERICHOST specified, is used to convert 93.Ar addr 94to an ASCII form. 95.Pp --- 38 unchanged lines hidden --- |