版權所有 © 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)
廣告