File:  [CSRG BSD Unix] / 43BSDTahoe / man / man2 / gethostid.2
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:58 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43tahoe
BSD 4.3tahoe

.\" 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 "November 28, 1985"
.UC 5
.SH NAME
gethostid, sethostid \- get/set unique identifier of current host
.SH SYNOPSIS
.nf
.ft B
hostid = gethostid()
long hostid;
.PP
.ft B
sethostid(hostid)
long hostid;
.fi
.SH DESCRIPTION
.I Sethostid
establishes a 32-bit identifier for the
current processor 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
super-user and is normally performed at boot time.
.PP
.I Gethostid
returns the 32-bit identifier for the current processor.
.SH SEE ALSO
hostid(1), gethostname(2)
.SH BUGS
32 bits for the identifier is too small.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.