Re: [PATCH v5 3/8] regex.3: Desoupify regerror() description

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

 



Hi!

On Fri, Apr 21, 2023 at 12:45:16AM +0200, Alejandro Colomar wrote:
> On 4/20/23 20:46, наб wrote:
> > On Thu, Apr 20, 2023 at 07:23:39PM +0200, Alejandro Colomar wrote:
> >> If preg is NULL, then I think any
> >> error returned by a call to one of these APIs would be valid.
> > That's unspecified.
> I don't think so.  POSIX says a "previous call".  It doesn't say the
> "latest" or "immediately preceeding" or similar wording.  Don't you
> understand the same from that paragraph?
I read "a previous" as a shorthand for "the last non-zero value returned
by regcomp( ) or regexec( )" from above originally; but yeah, now that
you mention it, "just any returned error" is a valid read.

I think just "must be latest if preg passed" is what ended up in v6
on the grounds of realism; if it's also the recise letter of POSIX then
all the better.

Best,

Attachment: signature.asc
Description: PGP 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