阅读:1743回复:2
linux gethostid()返回主机标识号是个啥玩艺?
linux gethostid()返回主机标识号是个啥玩艺?
这大概和网络有关吗? |
|
沙发#
发布于:2003-03-26 13:03
是ip地址吗?
|
|
板凳#
发布于:2003-03-26 16:11
Get or set a unique 32-bit identifier for the current machine. The 32-bit identi-fier is intended to be unique among all UNIX systems in existence. This normally
resembles the Internet address for the local machine, as returned by gethostby-name(3), and thus usually never needs to be set. The sethostid call is restricted to the superuser. The hostid argument is stored in the file /etc/hostid. gethostid returns the 32-bit identifier for the current host as set by :D :D :D :D :D |
|
|