版权所有 © 2014 tutorialspoint
long gethostid(void); int sethostid(long hostid);
sethostid() 调用仅限于超级用户。
hostid 参数存储在 /etc/hostid 文件中。
id = gethostid (); /* This is a no-op unless unsigned int is wider than 32 bits. */ id &= 0xffffffff;
/* This is a no-op unless unsigned int is wider than 32 bits. */ id &= 0xffffffff;
hostid (1)
广告