Deleted Added
full compact
getdomainname.3 (5152) getdomainname.3 (14038)
1.\" Copyright (c) 1983, 1991 The Regents of the University of California.
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.\" 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.\" from: @(#)getdomainname.2 6.7 (Berkeley) 3/10/91
1.\" Copyright (c) 1983, 1991 The Regents of the University of California.
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.\" 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.\" from: @(#)getdomainname.2 6.7 (Berkeley) 3/10/91
33.\" $Id: getdomainname.2,v 1.1 1993/10/25 03:11:30 rgrimes Exp $
33.\" $Id: getdomainname.3,v 1.1 1994/12/18 14:06:39 guido Exp $
34.\"
35.Dd March 10, 1991
36.Dt GETDOMAINNAME 3
37.Os BSD 4.2
38.Sh NAME
39.Nm getdomainname ,
40.Nm setdomainname
41.Nd get/set name of current host

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

78or
79.Fa namelen
80parameter gave an
81invalid address.
82.It Bq Er EPERM
83The caller tried to set the domainname and was not the super-user.
84.El
85.Sh SEE ALSO
34.\"
35.Dd March 10, 1991
36.Dt GETDOMAINNAME 3
37.Os BSD 4.2
38.Sh NAME
39.Nm getdomainname ,
40.Nm setdomainname
41.Nd get/set name of current host

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

78or
79.Fa namelen
80parameter gave an
81invalid address.
82.It Bq Er EPERM
83The caller tried to set the domainname and was not the super-user.
84.El
85.Sh SEE ALSO
86.Xr sysctl 2
87.Xr gethostid 3
86.Xr gethostid 3 ,
87.Xr sysctl 3
88.Sh BUGS
89Host names are limited to
90.Dv MAXHOSTNAMELEN
91(from
92.Ao Pa sys/param.h Ac )
93characters, currently 256.
94.Sh HISTORY
95The
96.Nm
97function call appeared in
98.Bx 4.2 .
88.Sh BUGS
89Host names are limited to
90.Dv MAXHOSTNAMELEN
91(from
92.Ao Pa sys/param.h Ac )
93characters, currently 256.
94.Sh HISTORY
95The
96.Nm
97function call appeared in
98.Bx 4.2 .