提交 5c7f820d 编写于 作者: E Eric Blake

docs: mention hostname subtlety

An off-list bug report mentioned some confusion where the public
documentation of libvirt.c:virConnectGetHostname did not match
the private documentation of util/virutil.c:virGetHostname.

* src/libvirt.c (virConnectGetHostname): Tweak docs.
Signed-off-by: NEric Blake <eblake@redhat.com>
上级 4583ccbc
...@@ -1701,9 +1701,10 @@ error: ...@@ -1701,9 +1701,10 @@ error:
* virConnectGetHostname: * virConnectGetHostname:
* @conn: pointer to a hypervisor connection * @conn: pointer to a hypervisor connection
* *
* This returns the system hostname on which the hypervisor is * This returns a system hostname on which the hypervisor is
* running (the result of the gethostname system call). If * running (based on the result of the gethostname system call, but
* we are connected to a remote system, then this returns the * possibly expanded to a fully-qualified domain name via getaddrinfo).
* If we are connected to a remote system, then this returns the
* hostname of the remote system. * hostname of the remote system.
* *
* Returns the hostname which must be freed by the caller, or * Returns the hostname which must be freed by the caller, or
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册