GETHOSTID

Section: System Calls (2)
Updated: June 27, 1989
Index Return to Main Contents
 

NAME

gethostid - get unique identifier of current host  

SYNOPSIS

hostid = gethostid()
long hostid;
 

DESCRIPTION

Gethostid returns a CPU identification number which is guaranteed to be unique for each CPU. This allows third-party software vendors to use the hostid for copy protection. The hostid is a four byte number with the first byte being the CPU version (only version 1 exists today) and the last three bytes are the last three bytes in the ethernet address (which are guaranteed to be unique).  

SEE ALSO

hostid(1), gethostname(2)


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 00:59:00 GMT, September 26, 2024