Deleted Added
full compact
getdomainname.3 (20058) getdomainname.3 (20266)
1.\" $NetBSD: getdomainname.3,v 1.2 1995/02/27 04:12:27 cgd Exp $
2.\"
3.\" Copyright (c) 1983, 1991, 1993
4.\" The Regents of the University of California. All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\" notice, this list of conditions and the following disclaimer.

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

27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32.\" SUCH DAMAGE.
33.\"
34.\" @(#)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.\" $Id$
35.\"
36.Dd May 6, 1994
37.Dt GETDOMAINNAME 3
38.Os BSD 4.2
39.Sh NAME
40.Nm getdomainname ,
41.Nm setdomainname
42.Nd get/set domain name of current host

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

83.It Bq Er EPERM
84The caller tried to set the hostname and was not the super-user.
85.El
86.Sh SEE ALSO
87.Xr gethostid 3 ,
88.Xr sysctl 3 ,
89.Xr gethostname 3
90.Sh BUGS
34.\"
35.Dd May 6, 1994
36.Dt GETDOMAINNAME 3
37.Os BSD 4.2
38.Sh NAME
39.Nm getdomainname ,
40.Nm setdomainname
41.Nd get/set domain name of current host

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

82.It Bq Er EPERM
83The caller tried to set the hostname and was not the super-user.
84.El
85.Sh SEE ALSO
86.Xr gethostid 3 ,
87.Xr sysctl 3 ,
88.Xr gethostname 3
89.Sh BUGS
91Host names are limited to
90Domain names are limited to
92.Dv MAXHOSTNAMELEN
93(from
94.Ao Pa sys/param.h Ac )
95characters, currently 256.
96.Sh HISTORY
97The
91.Dv MAXHOSTNAMELEN
92(from
93.Ao Pa sys/param.h Ac )
94characters, currently 256.
95.Sh HISTORY
96The
98.Nm
97.Fn getdomainname
99function call appeared in
100.Bx 4.2 .
98function call appeared in
99.Bx 4.2 .