This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH][BZ #12685] Allow arbitrary number of modes in fopen.
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: OndÅej BÃlka <neleai at seznam dot cz>
- Cc: <libc-alpha at sourceware dot org>
- Date: Thu, 9 May 2013 15:34:22 +0000
- Subject: Re: [PATCH][BZ #12685] Allow arbitrary number of modes in fopen.
- References: <20130509152046 dot GA4242 at domone dot kolej dot mff dot cuni dot cz>
On Thu, 9 May 2013, Ondrej Bilka wrote:
> Hi,
>
> I implemented Michael Kerrisk's suggestion from
> http://sourceware.org/bugzilla/show_bug.cgi?id=12685
> to read mode until NULL or comma (for ,ccs=) is reached.
>
> OK to commit?
>
> Ondra
>
> * libio/fileops.c (_IO_new_file_fopen): Allow arbitrary number of modes.
> * libio/iofdopen.c (_IO_new_fdopen): Likewise.
I think this should add testcases (for both functions) that a mode late in
a long string is properly handled.
--
Joseph S. Myers
joseph@codesourcery.com