Re: [PATCH 3/9] inet.3: Switch to _DEFAULT_SOURCE in the example

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Alex,

On Sat, 8 Jan 2022 02:26:51 +0100, "Alejandro Colomar (man-pages)"
<alx.manpages@xxxxxxxxx> wrote:
> On 1/7/22 17:46, Stephen Kitt wrote:
> > _BSD_SOURCE has been obsolete for long enough that it seems reasonable
> > to update the example program to use _DEFAULT_SOURCE instead. >
> > Signed-off-by: Stephen Kitt <steve@xxxxxxx>  
> 
> Deprecated, yes; obsolete, almost but not yet.
> 
> glibc 2.17 is still supported in CentOS 7, IIRC, and _BSD_SOURCE was 
> deprecated since glibc 2.20 (see feature_test_macros(7)).
> 
> However, since this is an example program, which should mainly teach how 
> to write new code, I'm inclined to use the non-deprecated version.

My reasoning here is that, from a distribution perspective, man-pages’s main
branch describes the future. CentOS 7 carries glibc 2.17, but it also carries
an old version of man-pages, which (hopefully) accurately describes the
environment there. Many example programs in man pages don’t build on older
distributions ;-).

Regards,

Stephen

Attachment: pgp76zmZGeUmZ.pgp
Description: OpenPGP digital signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux