realhostname.3 (0cac72f42c2f9dfe7953cb3dd7c2e93d1d0c61cf) | realhostname.3 (3dc329d1be00b8b4ba4a45886b6374289daa8ab0) |
---|---|
1.\" Copyright (c) 1999 Brian Somers <brian@Awfulhak.org> 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. --- 16 unchanged lines hidden (view full) --- 25.\" $FreeBSD$ 26.\" 27.Dd April 6, 1999 28.Os 29.Dt REALHOSTNAME 3 30.Sh NAME 31.Nm realhostname 32.Nd "convert an IP number to the real host name" | 1.\" Copyright (c) 1999 Brian Somers <brian@Awfulhak.org> 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. --- 16 unchanged lines hidden (view full) --- 25.\" $FreeBSD$ 26.\" 27.Dd April 6, 1999 28.Os 29.Dt REALHOSTNAME 3 30.Sh NAME 31.Nm realhostname 32.Nd "convert an IP number to the real host name" |
33.Sh LIBRARY 34.Lb libutil |
|
33.Sh SYNOPSIS 34.Fd #include <sys/types.h> 35.Fd #include <netinet/in.h> 36.Fd #include <libutil.h> 37.Ft int 38.Fn realhostname "char *host" "size_t hsize" "const struct in_addr *ip" | 35.Sh SYNOPSIS 36.Fd #include <sys/types.h> 37.Fd #include <netinet/in.h> 38.Fd #include <libutil.h> 39.Ft int 40.Fn realhostname "char *host" "size_t hsize" "const struct in_addr *ip" |
39.Pp 40Link with 41.Va -lutil 42on the 43.Xr cc 1 44command line. | |
45.Sh DESCRIPTION 46The function 47.Fn realhostname 48converts 49.Ar ip 50to the corresponding host name. This is done by resolving 51.Ar ip 52to a host name and then ensuring that the host name resolves --- 55 unchanged lines hidden --- | 41.Sh DESCRIPTION 42The function 43.Fn realhostname 44converts 45.Ar ip 46to the corresponding host name. This is done by resolving 47.Ar ip 48to a host name and then ensuring that the host name resolves --- 55 unchanged lines hidden --- |