b8140d18800e7094cdacb0a61526f46181dc132d |
|
12-Mar-2015 |
Rob Landley <rob@landley.net> |
Factor out xgetgrnamid() and xgetpwnamid() into xwrap.c.
/external/toybox/lib/xwrap.c
|
e6abb61e057d55a08c263a48648aaf7b776dfcee |
|
09-Mar-2015 |
Rob Landley <rob@landley.net> |
Upgrade oneit with -r (restart), -3 (send exiting PID values to child), and signal handling.
/external/toybox/lib/xwrap.c
|
70a84a356b1c56743618362867b9300007d11998 |
|
01-Mar-2015 |
Rob Landley <rob@landley.net> |
Patches from Elliott Hughes to add missing arguments to error_exit() calls.
/external/toybox/lib/xwrap.c
|
c277f347bba2417106b32212d9d40aceb4a88fb5 |
|
09-Feb-2015 |
Rob Landley <rob@landley.net> |
Cleanup/refactoring pass on hwclock. Inline open_wall_clock_rtc() into rtc_open(), factor out xtzset(), inline set_sysclock_from_hwclock(), set_hwclock_from_sysclock(), and set_sysclock_timezone(). /etc/adjtime is short enough we don't need to bother with a break. The final "else" case in main() should always trigger because >0 in optstr says "at most zero arguments", so the || at the end is always true, so take the test off.
/external/toybox/lib/xwrap.c
|
fb4ae952a6d75ae74a84fc2599f58c3c5398af8b |
|
07-Feb-2015 |
Rob Landley <rob@landley.net> |
Remove xexec_optargs().
/external/toybox/lib/xwrap.c
|
2c1cf4a02783e2a570ddf7b7ea968c7bed781f91 |
|
18-Jan-2015 |
Rob Landley <rob@landley.net> |
Remove trailing whitespace.
/external/toybox/lib/xwrap.c
|
aad492fd87d689c443e87561c23abc2e12b785a9 |
|
03-Jan-2015 |
Rob Landley <rob@landley.net> |
Move fflush() checking to xexit() and have exit paths in main() call that.
/external/toybox/lib/xwrap.c
|
50fc9ed007b084883fb09c64866c45c571e70a99 |
|
05-Dec-2014 |
Rob Landley <rob@landley.net> |
Work with buildroot's extensively patched uClibc, and for nommu support move xfork() to portability.h and #ifdef based on __uClinux__ (which seems to be the nommu compiler define).
/external/toybox/lib/xwrap.c
|
2fb85a3588bf2271e0506c5ab3bcb6a84bf77255 |
|
05-Dec-2014 |
Rob Landley <rob@landley.net> |
Implement xstrncat() and fix xstrndup().
/external/toybox/lib/xwrap.c
|
6d28370f22aa6b7c97a57a434339fa57ce322c8b |
|
28-Nov-2014 |
Rob Landley <rob@landley.net> |
Make sendfile use libbuf.
/external/toybox/lib/xwrap.c
|
21f3c8db00f0d4a3f0989559847d2564f4c73a11 |
|
21-Oct-2014 |
Rob Landley <rob@landley.net> |
More static analysis fixes from Ashwini Sharma.
/external/toybox/lib/xwrap.c
|
977e48e1626b3e3f1f1f9b14f05ffc11e252455f |
|
21-Oct-2014 |
Rob Landley <rob@landley.net> |
Add TOYBOX_NORECURSE so xexec() won't make internal function calls.
/external/toybox/lib/xwrap.c
|
8a9907119bf22f2279470be40cf40027dc37018c |
|
15-Sep-2014 |
Rob Landley <rob@landley.net> |
Second attempt at one way xpopen().
/external/toybox/lib/xwrap.c
|
360d57f843f5435a75270e54583430dcb8f62546 |
|
14-Sep-2014 |
Rob Landley <rob@landley.net> |
Split xpopen() into xpopen_both(), xpopen(), and xrun() depending on whether we want to redirect both, one, or neither of stdin/stdout.
/external/toybox/lib/xwrap.c
|
60c35c486a2ea1c6ea8920c599abf992b27542c5 |
|
03-Aug-2014 |
Rob Landley <rob@landley.net> |
Implement exec -user, -group, and -newer. Enable find in defconfig.
/external/toybox/lib/xwrap.c
|
3c69835d6e0b4f8e72e441ae5e34439612790844 |
|
31-Jul-2014 |
Rob Landley <rob@landley.net> |
As long as I had to write xabspath(), no point in wrapping realpath().
/external/toybox/lib/xwrap.c
|
ccb73f8bf9191c01c90975958a210c47175bd98c |
|
26-Jul-2014 |
Rob Landley <rob@landley.net> |
Default xcreate/xopen to O_CLOEXEC. (Pass O_CLOEXEC in the flags to switch it back off.) This way we're not leaking filehandles to children from things like find -exec.
/external/toybox/lib/xwrap.c
|
4fd07e0f6698cdb873aab0113369eb36c81853a9 |
|
22-Jul-2014 |
Rob Landley <rob@landley.net> |
Improve gid/uid error messages.
/external/toybox/lib/xwrap.c
|
44e68a1bec9b342c01e2f4e6ccf9f1e7a3ee8081 |
|
03-Jun-2014 |
Rob Landley <rob@landley.net> |
mount: start on option parsing, implement loopback and bind mount autodetection.
/external/toybox/lib/xwrap.c
|
d8872c43b48eae5501998a4e5a84337017d8fbe6 |
|
31-May-2014 |
Rob Landley <rob@landley.net> |
Introduce xfork() and make commands use it, and make some WEXITSTATUS() use WIFEXITED() and WTERMSIG()+127.
/external/toybox/lib/xwrap.c
|
ddbaa718dbe3370786eae97000f4c1e8bb259a61 |
|
26-May-2014 |
Rob Landley <rob@landley.net> |
Isaac Dunham suggested xprintf() should call fflush() instead of ferror(), and posix-2008 doesn't say if fflush() covers ferror() (or can return success when the stream's error state is set), so call both.
/external/toybox/lib/xwrap.c
|
5b405827a2fa4c928c488f3e7b0197dfec60dcc2 |
|
30-Mar-2014 |
Rob Landley <rob@landley.net> |
Group headers by standard (POSIX or LSB) or function (internationalization, networking). Move headers standards ignore (but which have been there >15 years) to lib/portability.h. Fold xregcomp into lib since it's posix.
/external/toybox/lib/xwrap.c
|
ca1b60e3bdb19eca981e5ccf4e07100aafddb007 |
|
12-Mar-2014 |
Rob Landley <rob@landley.net> |
Move mkpathat to lib, remove redundant function used by patch.
/external/toybox/lib/xwrap.c
|
59d85e2bb065a3bdc27868acb7a65f89d872c7fa |
|
16-Jan-2014 |
Rob Landley <rob@landley.net> |
Rename xmsprintf() to just xmprintf(). Partly because there's no supplied target string ala sprintf, and partly because I can never remember what order the m and s go in.
/external/toybox/lib/xwrap.c
|
dc3731783ead154d5a0d8d318566468474b43013 |
|
28-Dec-2013 |
Rob Landley <rob@landley.net> |
Pass through all the readfile() arguments from xreadfile().
/external/toybox/lib/xwrap.c
|
afba5b8efdf1bac2c02ca787840a2be053c800f7 |
|
23-Dec-2013 |
Rob Landley <rob@landley.net> |
Fix some issues raised (albeit indirectly) by Isaac Dunham. POLL_IN defined as a constant by some libc. Factor out login.c's change_identity() to xwrap.c as xsetuser(). Replace xsetuid() with xsetuser() Put a space between argument globals and non-argument globals. TT starts zeroed, don't need to re-zero entries in it. STDIN_FILENO has been 0 since 1969, even DOS copied that. Just say 0. Added an xchroot() using xchdir() to lib/xwrap.c. Remove endgrent() call until somebody can explain why it was there.
/external/toybox/lib/xwrap.c
|
5ec4ab3113dcc813b6040d7ded38e297df99dc0e |
|
29-Nov-2013 |
Rob Landley <rob@landley.net> |
Add xgetpwnam() to lib/xwrap.c.
/external/toybox/lib/xwrap.c
|
9e44a5841f0ab9bc03cefb5631c80f3e4e5a60fe |
|
29-Nov-2013 |
Rob Landley <rob@landley.net> |
Move xgetpwuid() and xgetgrgid() into xwrap.c
/external/toybox/lib/xwrap.c
|
3704f826b42d65e9d1da3c4f4084902d32eaba3a |
|
02-Nov-2013 |
Rob Landley <rob@landley.net> |
Give xstrncpy() a more informative error message.
/external/toybox/lib/xwrap.c
|
46e8e1dcb3f616a675bf33c83531ee05a4dd8374 |
|
06-Sep-2013 |
Rob Landley <rob@landley.net> |
Fix for xpidfile spotted by Felix Janda.
/external/toybox/lib/xwrap.c
|
8fdcfdb4479dff7a993a25a63253f0e749fd99fe |
|
04-Sep-2013 |
Rob Landley <rob@landley.net> |
Introduce libbuf analogous to toybuf but for use by lib/*.c. Change readfile() semantics to be able to read into an existing buffer, or malloc its own if that's NULL.
/external/toybox/lib/xwrap.c
|
d04dc1feb92a279e27e4487c502944f454d43837 |
|
30-Aug-2013 |
Rob Landley <rob@landley.net> |
Add scripts/single.sh to build individual non-multiplexed standalone commands. Alas, you can't quite do this yet: make defconfig make for i in $(./toybox) do echo $i PREFIX=singles/ scripts/single.sh $i || break done Because the OLDTOY() aliases for commands won't build without the base command. And I can't just skip them because chown/chmod or mv/cp aren't the same thing.
/external/toybox/lib/xwrap.c
|
dccfb2a9c156d03b6399120ae3dd4b23ff00b43f |
|
26-Aug-2013 |
Felix Janda <felix.janda at posteo.de> |
syslogd: cleanup - fix bugs introduced in the cleanups - inline addrfds() and open_unix_socks() and simplify them - use xpidfile() - remove isNetwork from struct logfile - invert the meaning of facility and level in struct logfile so that they are automatically correctly initialized - fix memory leak regarding the filenames of logfiles - TT.sd was unused
/external/toybox/lib/xwrap.c
|
1aa75118c46c8fbe0eeead18974d25e5f13274d5 |
|
07-Aug-2013 |
Rob Landley <rob@landley.net> |
Forgot to check in xfdopen(). My bad. Failure of fdopen() is most likely failure of malloc() for the FILE structure.
/external/toybox/lib/xwrap.c
|
bb504f382dc6c596e6b2b9ce04931e7fbdd15bbe |
|
19-Jul-2013 |
Rob Landley <rob@landley.net> |
Start of TOYBOX_SINGLE support, for building standalone commands with no multiplexer.
/external/toybox/lib/xwrap.c
|
72756670274dac9562b869761c50c59ed57b7295 |
|
18-Jul-2013 |
Rob Landley <rob@landley.net> |
Add timeout, factoring out common code from sleep.
/external/toybox/lib/xwrap.c
|
d390493d76c4cda76c1c6d21897b0f246857e588 |
|
16-Jul-2013 |
Rob Landley <rob@landley.net> |
Split lib/xwrap.c from lib/lib.c
/external/toybox/lib/xwrap.c
|