Subject: resolv.conf(5): refers to MAXNS in <resolv.h>, but it's in res_state.h now
Date: Thu, 25 Jul 2019 19:15:21 +0200
Package: manpages
Version: 5.01-1
Severity: normal
File: /usr/share/man/man5/resolv.conf.5.gz
Hi,
resolv.conf(5); states:
nameserver Name server IP address
Internet address of a name server that the resolver should
query, either an IPv4 address (in dot notation), or an
IPv6 address in colon (and possibly dot) notation as per
RFC 2373. Up to MAXNS (currently 3, see <resolv.h>) name
servers may be listed, one per keyword.
But:
$ fgrep MAXNS /usr/include/resolv.h
$
It seems to be in /usr/include/$TRIPLET/bits/types/res_state.h now:
$ fgrep MAXNS -r /usr/include/
/usr/include/x86_64-linux-gnu/bits/types/res_state.h:#define MAXNS 3 /* max # name servers we'll track */
[…]
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (990, 'unstable'), (600, 'testing'), (500, 'unstable-debug'), (500, 'buildd-unstable'), (110, 'experimental'), (1, 'experimental-debug'), (1, 'buildd-experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.18.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled
manpages depends on no packages.
manpages recommends no packages.
Versions of packages manpages suggests:
ii man-db [man-browser] 2.8.5-2
-- no debconf information
Acknowledgement sent
to "Michael Kerrisk (man-pages)" <[email protected]>:
Extra info received and forwarded to list. Copy sent to Martin Schulze <[email protected]>.
(Mon, 29 Jul 2019 11:48:03 GMT) (full text, mbox, link).
Subject: Re: Bug#933000: resolv.conf(5): refers to MAXNS in <resolv.h>, but
it's in res_state.h now
Date: Mon, 29 Jul 2019 13:44:26 +0200
On 7/25/19 7:15 PM, Axel Beckert wrote:
> Package: manpages
> Version: 5.01-1
> Severity: normal
> File: /usr/share/man/man5/resolv.conf.5.gz
>
> Hi,
>
> resolv.conf(5); states:
>
> nameserver Name server IP address
> Internet address of a name server that the resolver should
> query, either an IPv4 address (in dot notation), or an
> IPv6 address in colon (and possibly dot) notation as per
> RFC 2373. Up to MAXNS (currently 3, see <resolv.h>) name
> servers may be listed, one per keyword.
> But:
>
> $ fgrep MAXNS /usr/include/resolv.h
> $
>
> It seems to be in /usr/include/$TRIPLET/bits/types/res_state.h now:
>
> $ fgrep MAXNS -r /usr/include/
> /usr/include/x86_64-linux-gnu/bits/types/res_state.h:#define MAXNS 3 /* max # name servers we'll track */
Upstream maintainer here...
This report is invalid. <resolv.h> includes bits/types/res_state.h
I suggest closing this bug.
Thanks,
Michael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
Acknowledgement sent
to "Michael Kerrisk (man-pages)" <[email protected]>:
Extra info received and forwarded to list. Copy sent to Martin Schulze <[email protected]>.
(Mon, 29 Jul 2019 11:48:05 GMT) (full text, mbox, link).
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.