[PATCH] __fsetlocking
Yaakov Selkowitz
yselkowi@redhat.com
Mon Dec 15 16:30:00 GMT 2014
On 2014-12-15 09:11, Corinna Vinschen wrote:
> On Dec 11 12:08, Yaakov Selkowitz wrote:
>> Another of the stdio_ext functions from Solaris and glibc:
>>
>> https://docs.oracle.com/cd/E19683-01/816-0213/6m6ne37vm/index.html
>> http://man7.org/linux/man-pages/man3/stdio_ext.3.html
>>
>> Patch attached.
>
> Thanks. This patch introduces a problem for single thread targets.
> While _newlib_flockfile_start and friends where no-ops before (given
> that _flockfile/_funlockfile are no-ops), they now introduce a redundant
> check for a bit in fp->_flags2. This check *may* be removed by compiler
> optimization, but we shouldn't rely on that. What this patch needs is a
> new no-op-like definition of _newlib_flockfile_start and friends for
> single thread targets.
Revised patch attached.
--
Yaakov Selkowitz
Associate Software Engineer, ARM
Red Hat, Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: newlib-fsetlocking-v2.patch
Type: text/x-patch
Size: 12190 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20141215/b3eb4bd0/attachment.bin>
More information about the Newlib
mailing list