Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
gethostid(3C)		 Standard C Library Functions		 gethostid(3C)

NAME
       gethostid - get an identifier for the current host

SYNOPSIS
       #include	<unistd.h>

       long gethostid(void);

DESCRIPTION
       The  gethostid()	function returns the 32-bit identifier for the current
       host. This identifier is	taken from the CPU board's ID PROM. It is  not
       guaranteed to be	unique.

ATTRIBUTES
       See attributes(5) for descriptions of the following attributes:

       +-----------------------------+-----------------------------+
       |      ATTRIBUTE	TYPE	     |	    ATTRIBUTE VALUE	   |
       +-----------------------------+-----------------------------+
       |Interface Stability	     |Standard			   |
       +-----------------------------+-----------------------------+
       |MT-Level		     |MT-Safe			   |
       +-----------------------------+-----------------------------+

SEE ALSO
       hostid(1), sysinfo(2), attributes(5), standards(5)

SunOS 5.10			  24 Jul 2002			 gethostid(3C)

NAME | SYNOPSIS | DESCRIPTION | ATTRIBUTES | SEE ALSO

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=gethostid&sektion=3c&manpath=SunOS+5.10>

home | help