Re: [PATCH v3 3/6] man2/: add C digit separators to clarify POSIX feature release dates

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

 



Hi Stefan,

On 2/16/23 22:11, Stefan Puiu wrote:
> Hi Brian,

[...]

>> diff --git a/man2/access.2 b/man2/access.2
>> index d3deeecba0c7..4c93a132b209 100644
>> --- a/man2/access.2
>> +++ b/man2/access.2
>> @@ -56,7 +56,7 @@ Feature Test Macro Requirements for glibc (see
>>  .BR faccessat ():
>>  .nf
>>      Since glibc 2.10:
>> -        _POSIX_C_SOURCE >= 200809L
>> +        _POSIX_C_SOURCE >= 2008\[aq]09L
> 
> Not sure how \[aq] renders,

\[aq] is equivalent to \(aq, which renders as ', the single quote character.

> but if people want to copy / paste some of
> these snippets (for use in their code, or for searching), wouldn't
> they need to then remove the separator?

It depends on your compiler version and language version.
ISO C23 will add support for this.  What we could do is prepare the patches,
and leave them in a branch until C23 is made official.

Right now, you can already get recent enough versions of GCC to
accept that code, if you use -std=c2x.

> I think that can cause
> confusion, which you probably don't want documentation to do.> 
> Again, just my 2 cents,
> Stefan.
> 

Cheers,

Alex

-- 
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5

Attachment: OpenPGP_signature
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