* [Bug libc/15973] glibc should provide strnspn() and strncspn()
2013-09-21 17:19 [Bug libc/15973] New: glibc should provide strnspn() and strncspn() ooprala at redhat dot com
@ 2013-09-21 17:19 ` ooprala at redhat dot com
2013-09-21 17:27 ` [Bug libc/15973] New: " Ondřej Bílka
` (6 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: ooprala at redhat dot com @ 2013-09-21 17:19 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=15973
Ondrej Oprala <ooprala at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ooprala at redhat dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bug libc/15973] New: glibc should provide strnspn() and strncspn()
2013-09-21 17:19 [Bug libc/15973] New: glibc should provide strnspn() and strncspn() ooprala at redhat dot com
2013-09-21 17:19 ` [Bug libc/15973] " ooprala at redhat dot com
@ 2013-09-21 17:27 ` Ondřej Bílka
2013-09-21 17:28 ` [Bug libc/15973] " neleai at seznam dot cz
` (5 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Ondřej Bílka @ 2013-09-21 17:27 UTC (permalink / raw)
To: ooprala at redhat dot com; +Cc: glibc-bugs
On Sat, Sep 21, 2013 at 05:19:17PM +0000, ooprala at redhat dot com wrote:
>
> Strspn should have an 'n'-variant similar to its string-handling siblings.
>
What are use cases where it is needed?
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libc/15973] glibc should provide strnspn() and strncspn()
2013-09-21 17:19 [Bug libc/15973] New: glibc should provide strnspn() and strncspn() ooprala at redhat dot com
2013-09-21 17:19 ` [Bug libc/15973] " ooprala at redhat dot com
2013-09-21 17:27 ` [Bug libc/15973] New: " Ondřej Bílka
@ 2013-09-21 17:28 ` neleai at seznam dot cz
2013-09-22 5:20 ` bugdal at aerifal dot cx
` (4 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: neleai at seznam dot cz @ 2013-09-21 17:28 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=15973
--- Comment #1 from Ondrej Bilka <neleai at seznam dot cz> ---
On Sat, Sep 21, 2013 at 05:19:17PM +0000, ooprala at redhat dot com wrote:
>
> Strspn should have an 'n'-variant similar to its string-handling siblings.
>
What are use cases where it is needed?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libc/15973] glibc should provide strnspn() and strncspn()
2013-09-21 17:19 [Bug libc/15973] New: glibc should provide strnspn() and strncspn() ooprala at redhat dot com
` (2 preceding siblings ...)
2013-09-21 17:28 ` [Bug libc/15973] " neleai at seznam dot cz
@ 2013-09-22 5:20 ` bugdal at aerifal dot cx
2014-01-30 4:35 ` allachan at au1 dot ibm.com
` (3 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: bugdal at aerifal dot cx @ 2013-09-22 5:20 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=15973
Rich Felker <bugdal at aerifal dot cx> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugdal at aerifal dot cx
--- Comment #2 from Rich Felker <bugdal at aerifal dot cx> ---
Why should more nonstandard functions with no precedent be added? At the very
least, a usage case for where it's important to have such a function and have a
highly optimized implementation in libc (as opposed to a trivial implementation
in the application that needs it) should be provided before this is even
considered.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libc/15973] glibc should provide strnspn() and strncspn()
2013-09-21 17:19 [Bug libc/15973] New: glibc should provide strnspn() and strncspn() ooprala at redhat dot com
` (3 preceding siblings ...)
2013-09-22 5:20 ` bugdal at aerifal dot cx
@ 2014-01-30 4:35 ` allachan at au1 dot ibm.com
2014-06-13 12:47 ` fweimer at redhat dot com
` (2 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: allachan at au1 dot ibm.com @ 2014-01-30 4:35 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=15973
paxdiablo <allachan at au1 dot ibm.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |allachan at au1 dot ibm.com
--- Comment #3 from paxdiablo <allachan at au1 dot ibm.com> ---
Have to agree with Rich here, strspn is mandated by ISO C but I cannot find the
n-variant in either ISO or POSIX.
It will need a very good reason for being added, beyond programmers who can't
write safe code without the crutch of so-called safe functions :-)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libc/15973] glibc should provide strnspn() and strncspn()
2013-09-21 17:19 [Bug libc/15973] New: glibc should provide strnspn() and strncspn() ooprala at redhat dot com
` (4 preceding siblings ...)
2014-01-30 4:35 ` allachan at au1 dot ibm.com
@ 2014-06-13 12:47 ` fweimer at redhat dot com
2014-06-13 12:48 ` fweimer at redhat dot com
2014-06-13 13:05 ` neleai at seznam dot cz
7 siblings, 0 replies; 10+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 12:47 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=15973
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WONTFIX
Flags| |security-
--- Comment #4 from Florian Weimer <fweimer at redhat dot com> ---
The existing strspn function isn't even such a great model for an API. In most
cases, it would be beneficial to pre-compile the pattern. I don't think it
makes sense to add more interfaces with the same issue.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libc/15973] glibc should provide strnspn() and strncspn()
2013-09-21 17:19 [Bug libc/15973] New: glibc should provide strnspn() and strncspn() ooprala at redhat dot com
` (5 preceding siblings ...)
2014-06-13 12:47 ` fweimer at redhat dot com
@ 2014-06-13 12:48 ` fweimer at redhat dot com
2014-06-13 13:04 ` Ondřej Bílka
2014-06-13 13:05 ` neleai at seznam dot cz
7 siblings, 1 reply; 10+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 12:48 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=15973
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fweimer at redhat dot com
--- Comment #5 from Florian Weimer <fweimer at redhat dot com> ---
The existing strspn function isn't even such a great model for an API. In most
cases, it would be beneficial to pre-compile the pattern. I don't think it
makes sense to add more interfaces with the same issue.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bug libc/15973] glibc should provide strnspn() and strncspn()
2014-06-13 12:48 ` fweimer at redhat dot com
@ 2014-06-13 13:04 ` Ondřej Bílka
0 siblings, 0 replies; 10+ messages in thread
From: Ondřej Bílka @ 2014-06-13 13:04 UTC (permalink / raw)
To: fweimer at redhat dot com; +Cc: glibc-bugs
On Fri, Jun 13, 2014 at 12:48:04PM +0000, fweimer at redhat dot com wrote:
> https://sourceware.org/bugzilla/show_bug.cgi?id=15973
>
> Florian Weimer <fweimer at redhat dot com> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> CC| |fweimer at redhat dot com
>
> --- Comment #5 from Florian Weimer <fweimer at redhat dot com> ---
> The existing strspn function isn't even such a great model for an API. In most
> cases, it would be beneficial to pre-compile the pattern. I don't think it
> makes sense to add more interfaces with the same issue.
>
You could do caching on-line but it is not on my priority list.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libc/15973] glibc should provide strnspn() and strncspn()
2013-09-21 17:19 [Bug libc/15973] New: glibc should provide strnspn() and strncspn() ooprala at redhat dot com
` (6 preceding siblings ...)
2014-06-13 12:48 ` fweimer at redhat dot com
@ 2014-06-13 13:05 ` neleai at seznam dot cz
7 siblings, 0 replies; 10+ messages in thread
From: neleai at seznam dot cz @ 2014-06-13 13:05 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=15973
--- Comment #6 from Ondrej Bilka <neleai at seznam dot cz> ---
On Fri, Jun 13, 2014 at 12:48:04PM +0000, fweimer at redhat dot com wrote:
> https://sourceware.org/bugzilla/show_bug.cgi?id=15973
>
> Florian Weimer <fweimer at redhat dot com> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> CC| |fweimer at redhat dot com
>
> --- Comment #5 from Florian Weimer <fweimer at redhat dot com> ---
> The existing strspn function isn't even such a great model for an API. In most
> cases, it would be beneficial to pre-compile the pattern. I don't think it
> makes sense to add more interfaces with the same issue.
>
You could do caching on-line but it is not on my priority list.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread