gethostid - get an identifier for the current host
#include <unistd.h> long gethostid(void);
The gethostid() function returns the 32-bit identifier for the current host. If the hardware capability exists, this identifier is taken from platform-dependent stable storage; otherwise it is a randomly generated number. It is not guaranteed to be unique.
See attributes(5) for descriptions of the following attributes:
|
hostid(1), sysinfo(2), attributes(5), standards(5)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |