<feed xmlns='http://www.w3.org/2005/Atom'>
<title>forks/toybox/lib, branch 0.7.3</title>
<subtitle>Toybox with POSIX patches from E5ten
</subtitle>
<id>https://git.carbslinux.org/forks/toybox/atom?h=0.7.3</id>
<link rel='self' href='https://git.carbslinux.org/forks/toybox/atom?h=0.7.3'/>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/toybox/'/>
<updated>2017-02-21T04:21:58+00:00</updated>
<entry>
<title>4a4b3d65644ce403b0f22887fc0d38b0202ec8c7 upset clang.</title>
<updated>2017-02-21T04:21:58+00:00</updated>
<author>
<name>Elliott Hughes</name>
<email>enh@google.com</email>
</author>
<published>2017-02-19T17:22:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/toybox/commit/?id=fd5687662c581b9f94a9076a3cd7436560682cf2'/>
<id>urn:sha1:fd5687662c581b9f94a9076a3cd7436560682cf2</id>
<content type='text'>
Recent-ish clang doesn't like self-assignment. Google/Android code always
uses the [template-based moral equivalent of] __attribute__((__unused__))
to keep both compilers happy.
</content>
</entry>
<entry>
<title>Fix dmesg -c and -C.</title>
<updated>2017-02-21T03:42:26+00:00</updated>
<author>
<name>Elliott Hughes</name>
<email>enh@google.com</email>
</author>
<published>2017-01-04T18:45:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/toybox/commit/?id=461b90c341090c46083e83ca59ccb88371e051e4'/>
<id>urn:sha1:461b90c341090c46083e83ca59ccb88371e051e4</id>
<content type='text'>
I never use these, so I didn't notice I'd broken them until someone who
does bringup complained.

The "one weird trick" with SEEK_DATA is documented at the URL we already
point to. SEEK_DATA was added in Linux 3.1 (2011) and isn't available in
glibc 2.19 (2014), so I've added that to "portability.h" for the benefit
of Ubuntu 14.04.

Also make -c and -C mutually exclusive.

Also fix some of the formatting I introduced earlier. (A clang-format file
would help prevent these mistakes...)
</content>
</entry>
<entry>
<title>Don't set SIGWINCH when reading ANSI size probe data, it causes a loop.</title>
<updated>2017-02-06T02:02:47+00:00</updated>
<author>
<name>Rob Landley</name>
<email>rob@landley.net</email>
</author>
<published>2017-02-06T02:02:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/toybox/commit/?id=544669ff968beee1f522d72b2d92d1570c59f3ef'/>
<id>urn:sha1:544669ff968beee1f522d72b2d92d1570c59f3ef</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Silence a warning.</title>
<updated>2017-02-05T06:51:18+00:00</updated>
<author>
<name>Rob Landley</name>
<email>rob@landley.net</email>
</author>
<published>2017-02-05T06:51:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/toybox/commit/?id=4a4b3d65644ce403b0f22887fc0d38b0202ec8c7'/>
<id>urn:sha1:4a4b3d65644ce403b0f22887fc0d38b0202ec8c7</id>
<content type='text'>
Once upon a time you could call fchown() and let it fail. Then gcc decided
not using its return code was inconcievable, but you could typecast it to (void)
to shut it up. Then gcc noticed people doing that and clutched its pearls and
took it away, so I added an if() statement that does nothing with the result
because we _expect_ this to fail when we're not root. Then clang started
complaining about an if (); statement with the semicolon on the same line,
but decided it's ok if the ; is on the next line (I.E. significant whitespace
in C), so I'm adding an "assignemnt to self" that gets optimized away so
it does a more _explicit_ nothing (the same way you suppress gcc's broken
"this isn't used uninitialized" warnings).

If the compilers weren't going to so much trouble to force the issue I might
add code to only call fchown when we're UID 0, but I refuse to be coerced
into it. (And if getpid() is still a system call instead of a vdso member
then it doesn't actually _save_ us anything, the dentry should be hot and
the permission check was just "if (!uid)" before selinux entered into it and
we're operating on an fd so the security's the same.)
</content>
</entry>
<entry>
<title>Posix says stdio.h should define 'stdout' as a macro, and bionic turns it into</title>
<updated>2017-02-04T20:55:36+00:00</updated>
<author>
<name>Rob Landley</name>
<email>rob@landley.net</email>
</author>
<published>2017-02-04T20:55:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/toybox/commit/?id=ea9dd8ab7f5fd8ead278ed8d4fa2d96c4e4a67b9'/>
<id>urn:sha1:ea9dd8ab7f5fd8ead278ed8d4fa2d96c4e4a67b9</id>
<content type='text'>
an array index, which doesn't work as a local variable name. So rename it.
</content>
</entry>
<entry>
<title>Switch oneit to use xopen_stdio() for -c (oops) and switch XVFORK() to use</title>
<updated>2017-02-04T06:34:31+00:00</updated>
<author>
<name>Rob Landley</name>
<email>rob@landley.net</email>
</author>
<published>2017-02-04T06:34:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/toybox/commit/?id=938901d7e2738be29b83331fb60a670afc20c602'/>
<id>urn:sha1:938901d7e2738be29b83331fb60a670afc20c602</id>
<content type='text'>
__attribute__((returns_twice)) instead of noinline.

Yes LLVM supports it: https://llvm.org/bugs/show_bug.cgi?id=6287
</content>
</entry>
<entry>
<title>Fix padto in draw_trim_esc() so it behaves like printf %*.*s and matches the</title>
<updated>2017-01-29T00:36:43+00:00</updated>
<author>
<name>Rob Landley</name>
<email>rob@landley.net</email>
</author>
<published>2017-01-29T00:36:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/toybox/commit/?id=87897b2febae6ca5a50b6c6292923dc5585b12eb'/>
<id>urn:sha1:87897b2febae6ca5a50b6c6292923dc5585b12eb</id>
<content type='text'>
comment (I.E. negative first value _left_ justifies). This makes ps display
the same truncated values with and without a tty.

Also add a few comments to the rest of the file.
</content>
</entry>
<entry>
<title>Some lib fixes: mark xvfork() noinline, make xsendfile() return bytes copied,</title>
<updated>2017-01-04T07:32:44+00:00</updated>
<author>
<name>Rob Landley</name>
<email>rob@landley.net</email>
</author>
<published>2017-01-04T07:32:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/toybox/commit/?id=a1a559e25a19726b3a62267feb5e89bad2fcd01e'/>
<id>urn:sha1:a1a559e25a19726b3a62267feb5e89bad2fcd01e</id>
<content type='text'>
make xsocket()'s returned fd CLOEXEC.
</content>
</entry>
<entry>
<title>An option can't exclude itself, so "abc[-ab][!abc]" with "command -a -b"</title>
<updated>2017-01-04T07:14:07+00:00</updated>
<author>
<name>Rob Landley</name>
<email>rob@landley.net</email>
</author>
<published>2017-01-04T07:14:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/toybox/commit/?id=4d4ca28acaa44069893d06aea64e304809527b16'/>
<id>urn:sha1:4d4ca28acaa44069893d06aea64e304809527b16</id>
<content type='text'>
shouldn't segfault falling off the end of the list trying to report a
nonexistent error condition.
</content>
</entry>
<entry>
<title>Add DIRTREE_PROC to skip non-numeric entries and make ps/top etc use it.</title>
<updated>2016-12-09T03:29:00+00:00</updated>
<author>
<name>Rob Landley</name>
<email>rob@landley.net</email>
</author>
<published>2016-12-09T03:29:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.carbslinux.org/forks/toybox/commit/?id=a975952d885c47aeca013e76194142a47e96d49a'/>
<id>urn:sha1:a975952d885c47aeca013e76194142a47e96d49a</id>
<content type='text'>
</content>
</entry>
</feed>
