Deleted Added
full compact
getdomainname.3 (119964) getdomainname.3 (131504)
1.\" Copyright (c) 1983, 1991, 1993
2.\" The Regents of the University of California. 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.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)gethostname.3 8.1 (Berkeley) 6/4/93
1.\" Copyright (c) 1983, 1991, 1993
2.\" The Regents of the University of California. 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.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)gethostname.3 8.1 (Berkeley) 6/4/93
33.\" $FreeBSD: head/lib/libc/gen/getdomainname.3 119964 2003-09-10 19:24:35Z ru $
33.\" $FreeBSD: head/lib/libc/gen/getdomainname.3 131504 2004-07-02 23:52:20Z ru $
34.\"
35.Dd May 6, 1994
36.Dt GETDOMAINNAME 3
37.Os
38.Sh NAME
39.Nm getdomainname ,
40.Nm setdomainname
41.Nd get/set the NIS domain name of current host

--- 12 unchanged lines hidden (view full) ---

54returns the standard NIS domain name for the current host, as
55previously set by
56.Fn setdomainname .
57The
58.Fa namelen
59argument
60specifies the size of the
61.Fa name
34.\"
35.Dd May 6, 1994
36.Dt GETDOMAINNAME 3
37.Os
38.Sh NAME
39.Nm getdomainname ,
40.Nm setdomainname
41.Nd get/set the NIS domain name of current host

--- 12 unchanged lines hidden (view full) ---

54returns the standard NIS domain name for the current host, as
55previously set by
56.Fn setdomainname .
57The
58.Fa namelen
59argument
60specifies the size of the
61.Fa name
62array. The returned name is null-terminated unless insufficient
62array.
63The returned name is null-terminated unless insufficient
63space is provided.
64.Pp
65The
66.Fn setdomainname
67function
68sets the NIS domain name of the host machine to be
69.Fa name ,
70which has length

--- 33 unchanged lines hidden ---
64space is provided.
65.Pp
66The
67.Fn setdomainname
68function
69sets the NIS domain name of the host machine to be
70.Fa name ,
71which has length

--- 33 unchanged lines hidden ---