Penguin
Blame: gethostid(2)
EditPageHistoryDiffInfoLikePages
Annotated edit history of gethostid(2) version 2, including all changes. View license author blame.
Rev Author # Line
1 perry 1 !!NAME
2 PerryLorier 2 gethostid - get the unique identifier of the current host
1 perry 3 !!SYNOPSIS
2 PerryLorier 4 __#include <unistd.h>__
1 perry 5
2 PerryLorier 6 __long int gethostid(void);__
1 perry 7 !!DESCRIPTION
8
2 PerryLorier 9 Get the unique 32-bit identifier for the current machine. The 32-bit identifier is intended to be unique among all UNIX systems in existence. This normally resembles the Internet address for the local machine, as returned by gethostbyname(3), and thus usually never needs to be set with the sethostid(2) call.
1 perry 10
2 PerryLorier 11 The hostid is often used by programs for licensing matters.
1 perry 12
2 PerryLorier 13 The ''hostid'' argument is often stored in the file ''/etc/hostid''.
1 perry 14 !!RETURN VALUE
2 PerryLorier 15 gethostid(2) returns the 32-bit identifier for the current host as set by sethostid(2).
1 perry 16
17 !!CONFORMING TO
2 PerryLorier 18 4.2BSD. These functions were dropped in 4.4BSD. POSIX.1 does not define these functions, but ISO/IEC 9945-1:1990 mentions
19 them in B.4.4.1. SVr4 includes gethostid(2) but not sethostid(2).
1 perry 20
21 !!FILES
2 PerryLorier 22 /etc/hostid
1 perry 23 !!SEE ALSO
24 hostid(1), gethostbyname(3)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.

PHP Warning

lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 5 times)