mojave man page for gethostuuid

Query: gethostuuid

OS: mojave

Section: 2

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

GETHOSTUUID(2)						   Mac OS X System Calls Manual 					    GETHOSTUUID(2)

NAME
gethostuuid -- return a unique identifier for the current machine
SYNOPSIS
#include <unistd.h> int gethostuuid(uuid_t id, const struct timespec *wait);
DESCRIPTION
The gethostuuid() function returns a 16-byte uuid_t specified by id, that uniquely identifies the current machine. Be aware that the hard- ware identifiers that gethostuuid() uses to generate the UUID can themselves be modified. The wait argument is a pointer to a struct timespec that specifies the maximum time to wait for the result. Setting the tv_sec and tv_nsec fields to zero means to wait indefinitely until it completes.
RETURN VALUES
The gethostuuid() function returns zero on success or -1 on error.
ERRORS
The gethostuuid() functions fails if: [EFAULT] wait points to memory that is not a valid part of the process address space. [EWOULDBLOCK] The wait timeout expired before the UUID could be obtained.
SEE ALSO
uuid(3) Mac OS X Nov 5, 2008 Mac OS X
Related Man Pages
uuid_enc_le(3) - freebsd
uuid(3) - netbsd
aio_waitn(3rt) - sunos
uuid_to_string(3) - freebsd
uuid_create(3) - freebsd
Similar Topics in the Unix Linux Community
Split large xml into mutiple files and with header and footer in file
Instructions to Clear Data Cache in Safari, Chrome, Firefox, Opera Browsers (Pictures)
12-Core MacPro (2013) kernel_task over 1200%
My first PERL incarnation... Audio Oscillograph
[BASH] eval command not expanding variables as expected.