remove csh(1)
[unleashed.git] / share / man / man3c / gethostid.3c
blobda0891bf9d684e7ef82a12cd1a9292af1d5fb83b
1 '\" te
2 .\" Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH GETHOSTID 3C "Jan 29, 2009"
7 .SH NAME
8 gethostid \- get an identifier for the current host
9 .SH SYNOPSIS
10 .LP
11 .nf
12 #include <unistd.h>
14 \fBlong\fR \fBgethostid\fR(\fBvoid\fR);
15 .fi
17 .SH DESCRIPTION
18 .sp
19 .LP
20 The \fBgethostid()\fR function returns the 32-bit identifier for the current
21 host. If the hardware capability exists, this identifier is taken from
22 platform-dependent stable storage; otherwise it is a randomly generated number.
23 It is not guaranteed to be unique.
24 .sp
25 .LP
26 If the calling thread's process is executing within a non-global zone that
27 emulates a host identifier, then the zone's emulated 32-bit host identifier is
28 returned.
29 .SH ATTRIBUTES
30 .sp
31 .LP
32 See \fBattributes\fR(5) for descriptions of the following attributes:
33 .sp
35 .sp
36 .TS
37 box;
38 c | c
39 l | l .
40 ATTRIBUTE TYPE  ATTRIBUTE VALUE
42 Interface Stability     Committed
44 MT-Level        MT-Safe
46 Standard        See \fBstandards\fR(5).
47 .TE
49 .SH SEE ALSO
50 .sp
51 .LP
52 \fBhostid\fR(1), \fBsysinfo\fR(2), \fBattributes\fR(5), \fBstandards\fR(5),
53 \fBzones\fR(5)