<feed xmlns='http://www.w3.org/2005/Atom'>
<title>musl/src/stdio, branch v0.7.10</title>
<subtitle>musl - an implementation of the standard library for Linux-based systems</subtitle>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/'/>
<entry>
<title>fix the last known rounding bug in floating point printing</title>
<updated>2011-05-11T23:58:03+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-05-11T23:58:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=8628eff9128d66cc69dbc301341dc55130a9817e'/>
<id>8628eff9128d66cc69dbc301341dc55130a9817e</id>
<content type='text'>
the observed symptom was that the code was incorrectly rounding up
1.0625 to 1.063 despite the rounding mode being round-to-nearest with
ties broken by rounding to even last place. however, the code was just
not right in many respects, and i'm surprised it worked as well as it
did. this time i tested the values that end up in the variables round,
small, and the expression round+small, and all look good.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
the observed symptom was that the code was incorrectly rounding up
1.0625 to 1.063 despite the rounding mode being round-to-nearest with
ties broken by rounding to even last place. however, the code was just
not right in many respects, and i'm surprised it worked as well as it
did. this time i tested the values that end up in the variables round,
small, and the expression round+small, and all look good.
</pre>
</div>
</content>
</entry>
<entry>
<title>reduce some ridiculously large spin counts</title>
<updated>2011-05-07T01:45:48+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-05-07T01:45:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=77f15d108ee021d4dfbeebe793661131c4470d4d'/>
<id>77f15d108ee021d4dfbeebe793661131c4470d4d</id>
<content type='text'>
these should be tweaked according to testing. offhand i know 1000 is
too low and 5000 is likely to be sufficiently high. consider trying to
add futexes to file locking, too...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
these should be tweaked according to testing. offhand i know 1000 is
too low and 5000 is likely to be sufficiently high. consider trying to
add futexes to file locking, too...
</pre>
</div>
</content>
</entry>
<entry>
<title>fix fclose return status logic, again</title>
<updated>2011-05-02T13:18:03+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-05-02T13:18:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=78c808b1264cbbec6c7cf4e9c4f321736a218949'/>
<id>78c808b1264cbbec6c7cf4e9c4f321736a218949</id>
<content type='text'>
the previous fix was incorrect, as it would prevent f-&gt;close(f) from
being called if fflush(f) failed. i believe this was the original
motivation for using | rather than ||. so now let's just use a second
statement to constrain the order of function calls, and to back to
using |.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
the previous fix was incorrect, as it would prevent f-&gt;close(f) from
being called if fflush(f) failed. i believe this was the original
motivation for using | rather than ||. so now let's just use a second
statement to constrain the order of function calls, and to back to
using |.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix undefined call order in fclose, possible lost output depending on compiler</title>
<updated>2011-05-02T02:59:14+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-05-02T02:59:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=bd6746732536fdf2ebaadff6f98aee0879b1674d'/>
<id>bd6746732536fdf2ebaadff6f98aee0879b1674d</id>
<content type='text'>
pcc turned up this bug by calling f-&gt;close(f) before fflush(f),
resulting in lost output and error on flush.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
pcc turned up this bug by calling f-&gt;close(f) before fflush(f),
resulting in lost output and error on flush.
</pre>
</div>
</content>
</entry>
<entry>
<title>minor optimization in puts: use inline putc_unlocked macro for newline</title>
<updated>2011-05-02T00:12:51+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-05-02T00:12:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=d02c50d6a34ff28db2486fbeac86e513286d52e9'/>
<id>d02c50d6a34ff28db2486fbeac86e513286d52e9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix 2 eof-related bugs in scanf</title>
<updated>2011-04-25T14:40:25+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-04-25T14:40:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=5efc6af4ebb9d50eb978d0338835544fdfea0396'/>
<id>5efc6af4ebb9d50eb978d0338835544fdfea0396</id>
<content type='text'>
1. failed match of literal chars from the format string would always
return matching failure rather than input failure at eof, leading to
infinite loops in some programs.

2. unread of eof would wrongly adjust the character counts reported by
%n, yielding an off-by-one error.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
1. failed match of literal chars from the format string would always
return matching failure rather than input failure at eof, leading to
infinite loops in some programs.

2. unread of eof would wrongly adjust the character counts reported by
%n, yielding an off-by-one error.
</pre>
</div>
</content>
</entry>
<entry>
<title>clean up handling of thread/nothread mode, locking</title>
<updated>2011-04-17T20:53:54+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-04-17T20:53:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=9080cc153cc2b09881c3245becbd68534db18d7c'/>
<id>9080cc153cc2b09881c3245becbd68534db18d7c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>debloat: use __syscall instead of syscall where possible</title>
<updated>2011-04-17T20:32:15+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-04-17T20:32:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=eb0e8fa0b1960cff4bd65ebefc798f70273b0bc9'/>
<id>eb0e8fa0b1960cff4bd65ebefc798f70273b0bc9</id>
<content type='text'>
don't waste time (and significant code size due to function call
overhead!) setting errno when the result of a syscall does not matter
or when it can't fail.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
don't waste time (and significant code size due to function call
overhead!) setting errno when the result of a syscall does not matter
or when it can't fail.
</pre>
</div>
</content>
</entry>
<entry>
<title>avoid setting errno when checking for tty</title>
<updated>2011-04-15T16:04:13+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-04-15T16:04:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=69cf09c821b94668f03c942585d99c13121731c8'/>
<id>69cf09c821b94668f03c942585d99c13121731c8</id>
<content type='text'>
setting errno here is completely valid, but some programs, notably
busybox printf, assume that errno will not be set during output and
treat this as an error condition. in any case, skipping it slightly
reduces code size and saves time.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
setting errno here is completely valid, but some programs, notably
busybox printf, assume that errno will not be set during output and
treat this as an error condition. in any case, skipping it slightly
reduces code size and saves time.
</pre>
</div>
</content>
</entry>
<entry>
<title>make tmpfile slightly more efficient (use unlink syscall instead of remove)</title>
<updated>2011-04-15T01:43:49+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-04-15T01:43:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=b172dc8b58a5db37d61cb4718cd42628126710f1'/>
<id>b172dc8b58a5db37d61cb4718cd42628126710f1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
