1
0
Files
irix-657m-src/eoe/man/man2/gethostid.2
2022-09-29 17:59:04 +03:00

42 lines
1012 B
Groff

'\"macro stdmacro
.\" Copyright (c) 1983 Regents of the University of California.
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\" @(#)gethostid.2 6.3 (Berkeley) 11/28/85
.\"
.TH gethostid 2
.SH NAME
gethostid, sethostid \- get/set unique identifier of current host
.Op c p a
.SH C SYNOPSIS
.nf
\f3#include <unistd.h>\f1
\f3int gethostid (void);\f1
\f3int sethostid (int hostid);\f1
.fi
.Op
.Op f
.SH FORTRAN SYNOPSIS
.nf
\f3integer *4 function gethostid ()\f1
\f3subroutine sethostid ()\f1
\f3integer *4 hostid\f1
.fi
.Op
.SH DESCRIPTION
.I Sethostid
establishes a 32-bit identifier for the
current host that is intended to be unique among all
UNIX systems in existence.
This is normally a DARPA Internet
address for the local machine.
This call is allowed only to the
superuser and is normally performed at boot time.
.PP
.I Gethostid
returns the 32-bit identifier for the current host.
.SH SEE ALSO
hostid(1),
gethostname(2)