The Open Group Base Specifications Issue 6
IEEE Std 1003.1, 2003 Edition
Copyright © 2001-2003 The IEEE and The Open Group, All Rights reserved.

NAME

gethostid - get an identifier for the current host

SYNOPSIS

[XSI] [Option Start] #include <unistd.h>

long gethostid(void); [Option End]

DESCRIPTION

The gethostid() function shall retrieve a 32-bit identifier for the current host.

RETURN VALUE

Upon successful completion, gethostid() shall return an identifier for the current host.

ERRORS

No errors are defined.


The following sections are informative.

EXAMPLES

None.

APPLICATION USAGE

This volume of IEEE Std 1003.1-2001 does not define the domain in which the return value is unique.

RATIONALE

None.

FUTURE DIRECTIONS

None.

SEE ALSO

random() , the Base Definitions volume of IEEE Std 1003.1-2001, <unistd.h>

CHANGE HISTORY

First released in Issue 4, Version 2.

Issue 5

Moved from X/OPEN UNIX extension to BASE.

End of informative text.


UNIX ® is a registered Trademark of The Open Group.
POSIX ® is a registered Trademark of The IEEE.
[ Main Index | XBD | XCU | XSH | XRAT ]