From 20d8277451d8fd7cbce316b80a0018bc2639335d Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 18 Nov 2023 23:09:46 +0000 Subject: Fix old _BSD_SOURCE definitions Signed-off-by: Laurent Bercot --- doc/libs6dns/hosts.html | 3 ++- doc/libs6dns/index.html | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/libs6dns/hosts.html b/doc/libs6dns/hosts.html index b9a03bf..00da38f 100644 --- a/doc/libs6dns/hosts.html +++ b/doc/libs6dns/hosts.html @@ -80,7 +80,8 @@ which should be in /etc/hosts format, into a cdb file written to file descriptor fdw. fdr must be open for reading, and fdw must be open for writing and seekable. The function returns 1 on success and 0 (and sets errno) -on failure. +on failure. A syntax error in the text file results in failure, +but link-local addresses are silently ignored.

diff --git a/doc/libs6dns/index.html b/doc/libs6dns/index.html index 6320376..6dcb408 100644 --- a/doc/libs6dns/index.html +++ b/doc/libs6dns/index.html @@ -98,8 +98,9 @@ header: s6dns_init() calls s6dns_rci_init(), extracting resolv.conf information to an internal global variable. The function returns 1 on success, and 0 (and sets errno) -on failure. -

  • Call s6dns_finish() when you're done with the libs6dns. +on failure. To also use the hosts database, you can call +s6dns_init_options(1) instead.
  • +
  • Call s6dns_finish() when you're done with libs6dns. It frees the resources used.
  • -- cgit v1.2.3