On Mon, Aug 28 2017, Jeremie Courreges-Anglas <[email protected]> wrote:
> On Mon, Aug 28 2017, "Todd C. Miller" <[email protected]> wrote:
>> On Mon, 28 Aug 2017 14:29:18 +0200, Jeremie Courreges-Anglas wrote:
>>
>>> IIUC strtok_r appeared in IEEE Std 1003.1c-1995, the diff below
>>> documents that.  That would be the first use of .St -p1003.1c-95 in the
>>> tree.  (Is this one available online?  My search skillz have failed me
>>> so far...)
>>
>> The "conforms to" bit does not need to specify the first version
>> of the standard that the function appeared in.  I'd be inclined to
>> use -p1003.1-2001 like we do in many of our other manuals.
>
> ack.  strtok_r appeared in SUSv2 before POSIX 2001.  So, -susv2 (we
> already use it, no idea if consistently though) or -p1003.1-2001?
>
> I don't feel strongly about it, it just feels weird not to mention
> a standard. :)

No further input, here's an updated diff following hints from millert@
and jmc@.


Index: strtok.3
===================================================================
RCS file: /d/cvs/src/lib/libc/string/strtok.3,v
retrieving revision 1.21
diff -u -p -p -u -r1.21 strtok.3
--- strtok.3    5 Jun 2013 03:39:23 -0000       1.21
+++ strtok.3    30 Aug 2017 17:18:47 -0000
@@ -140,6 +140,10 @@ The
 .Fn strtok
 function conforms to
 .St -ansiC .
+The
+.Fn strtok_r
+function conforms to
+.St -p1003.1-2001 .
 .Sh HISTORY
 The
 .Fn strtok


-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to