572db1408a
The system hostname is now stored in prison0, and the global variable "hostname" has been removed, as has the hostname_mtx mutex. Jails may have their own host information, or they may inherit it from the parent/system. The proper way to read the hostname is via getcredhostname(), which will copy either the hostname associated with the passed cred, or the system hostname if you pass NULL. The system hostname can still be accessed directly (and without locking) at prison0.pr_host, but that should be avoided where possible. The "similar information" referred to is domainname, hostid, and hostuuid, which have also become prison parameters and had their associated global variables removed. Approved by: bz (mentor) |
||
---|---|---|
.. | ||
nlm_advlock.c | ||
nlm_prot_clnt.c | ||
nlm_prot_impl.c | ||
nlm_prot_server.c | ||
nlm_prot_svc.c | ||
nlm_prot_xdr.c | ||
nlm_prot.h | ||
nlm.h | ||
sm_inter_xdr.c | ||
sm_inter.h |