version 1.8, 1999/03/22 19:44:41 |
version 1.8.12.3, 2002/03/22 20:42:07 |
|
|
.Sh LIBRARY |
.Sh LIBRARY |
.Lb libc |
.Lb libc |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Fd #include <unistd.h> |
.Fd #include \*[Lt]unistd.h\*[Gt] |
.Ft int |
.Ft int |
.Fn getdomainname "char *name" "size_t namelen" |
.Fn getdomainname "char *name" "size_t namelen" |
.Ft int |
.Ft int |
Line 55 previously set by |
|
Line 55 previously set by |
|
.Fn setdomainname . |
.Fn setdomainname . |
The parameter |
The parameter |
.Fa namelen |
.Fa namelen |
specifies the size of the |
specifies the size of the |
.Fa name |
.Fa name |
array. The returned name is null-terminated unless insufficient |
array. The returned name is null-terminated unless insufficient |
space is provided. |
space is provided. |
Line 89 The caller tried to set the domain name |
|
Line 89 The caller tried to set the domain name |
|
.Xr gethostid 3 , |
.Xr gethostid 3 , |
.Xr gethostname 3 , |
.Xr gethostname 3 , |
.Xr sysctl 3 |
.Xr sysctl 3 |
|
.Sh HISTORY |
|
The |
|
.Nm |
|
function call appeared in |
|
.Bx 4.2 . |
.Sh BUGS |
.Sh BUGS |
Domain names are limited to |
Domain names are limited to |
.Dv MAXHOSTNAMELEN |
.Dv MAXHOSTNAMELEN |
(from |
(from |
.Ao Pa sys/param.h Ac ) |
.Ao Pa sys/param.h Ac ) |
characters including null-termination, currently 256. |
characters including null-termination, currently 256. |
.Sh HISTORY |
|
The |
|
.Nm |
|
function call appeared in |
|
.Bx 4.2 . |
|