Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-03-02 | For years the man pages have said to #include <sys/types.h> to get | Rob Landley | |
major/minor/makedev, but glibc has vowed to break existing programs (https://sourceware.org/ml/libc-alpha/2015-11/msg00253.html) and replace it with _another_ non-standard header (not in posix or lsb), so let's just add functions to lib/ that do the transform ourselves. | |||
2016-03-01 | SYS_finit_module isn't there on Ubuntu 12.04 because it was only added to the | Rob Landley | |
3.8 kernel in 2012. That's way too new to assume the build environment has it, so #ifdef and simulate a failure if it's not there. | |||
2016-02-25 | Fix more warnings on 32 bit builds. | Rob Landley | |
2016-02-19 | Implement "insmod -". | Elliott Hughes | |
Also use finit_module if available. Given that "insmod -" requires init_module, maybe this isn't a worthwhile optimization. Given that "insmod /actual/file.ko" is the common use case, maybe it is. Fix a bug in readfileat where *plen would be corrupted if you didn't supply your own buffer (because ibuf is 0 in that case, not a pointer to the start of the allocated space). | |||
2016-02-19 | Help text update from Isaac Dunham, tweaked slightly. | Rob Landley | |
2016-02-19 | Add xxd -p and -r. | Elliott Hughes | |
SELinux denials include hex-encoded paths in the log messages; xxd -r -p is a convenient way to decode them. The heuristics are a little weird to my mind, but match the documentation and observed behavior. | |||
2016-02-10 | use unsigned long with factor | izabera | |
2016-01-31 | Fix blkid typo (label wasn't detected in murderfs). | Rob Landley | |
2016-01-27 | long opts and -f for unshare | izabera | |
2016-01-17 | Extend utf8 fontmetrics so ps can use them. | Rob Landley | |
Also, I forgot to check in uuid_show() last time. | |||
2016-01-17 | Add -L label and UUID support to mkswap. | Rob Landley | |
2016-01-17 | Update draw_str() and friends to do standard escaping for ^X <AB> U+ABCD. | Rob Landley | |
2016-01-16 | Add swapon -d (discard) | Rob Landley | |
2016-01-10 | Make cursor left/right change sort type in iotop. | Rob Landley | |
2016-01-07 | Make scan_key() specify timeout in miliseconds, split out terminal_probesize(), | Rob Landley | |
add function key definitions and shift/ctrl/alt cursor keys. | |||
2016-01-05 | Add error_msg_raw() and friends, replace error_msg("%s", s) uses, enable format | Rob Landley | |
checking, and fix up format checking complaints. Added out(type, value) function to stat to avoid a zillion printf typecasts. | |||
2015-12-29 | Add strafter() to lib. | Rob Landley | |
2015-12-27 | Add scan_key_getsize() doing the ANSI probe, switch scan_key() to TAGGED_ARRAY, | Rob Landley | |
and add test_scankey. | |||
2015-12-23 | Factor out draw_str() and friends. | Rob Landley | |
2015-12-06 | Add free -h, based on a patch from Isabella Parakiss. | Rob Landley | |
2015-12-04 | Tom Marshall reported that blkid was handling ext2 wrong. | Rob Landley | |
Even though ext2 has a comment that it has to be at the start, I added swap to the start of the array (oops). The test suite was also wrong (it was matching the _incorrect_ output). | |||
2015-11-03 | Whitespace and parentheses. | Rob Landley | |
2015-11-02 | Explain signals in oneit help text. | Rob Landley | |
2015-10-27 | Replace xcount_cpus() with a call to sysconf(_SC_NPROCESSORS_CONF) | Rob Landley | |
2015-10-25 | Add xcount_cpus() | Rob Landley | |
2015-10-20 | Move d/h units from %d %D output to default format string. | Rob Landley | |
2015-10-10 | "stat -c %T" support (filesystem type names) based on patch from Hyejin Kim. | Rob Landley | |
2015-10-06 | New command: flock. | Elliott Hughes | |
The brillo folks wanted this in a shell script they're porting over (so I've only implemented the fd style they wanted, not the named file style). | |||
2015-09-29 | help_exit() tweak. | Rob Landley | |
2015-09-29 | Make defconfig build for nommu. | Rob Landley | |
Adds XVFORK() macro, teaches xpopen_both() to call /proc/self/exe with NULL argv (and converts cpio -p to use that), adds TOYBOX_FORK guards to some unconverted commands. | |||
2015-09-23 | Add xvfork() as a static inline and use it from various places. | Rob Landley | |
Note: vfork(), like fork(), can return -1 if too many processes, and we should notice and fail loudly. | |||
2015-09-17 | Fix a couple things gcc is too dumb to figure out on its own. | Rob Landley | |
2015-09-11 | Replace toys.exithelp with help_exit() in lib. | Rob Landley | |
2015-09-05 | Two large thinkos in oneit: -3 was always enabled and signal numbers were | Rob Landley | |
overwritten before we set up signal handlers. | |||
2015-09-02 | vmstat: fix units for bi and bo columns | Colin Cross | |
pgpgin and pgpgout in /proc/vmstat are in kbytes, not pages. (see http://lxr.free-electrons.com/source/mm/vmstat.c?v=4.2#L1310). Remove the extra * page_kb for io_in and io_out. | |||
2015-09-01 | Trivial code style tweak. | Rob Landley | |
2015-09-01 | vmstat: reset header pointer when looping | Colin Cross | |
Modifying the headers pointer when printing the headers causes a buffer overrun the second time they are printed. Use a local header pointer that is reset to the beginning of the buffer for each loop. | |||
2015-08-20 | I discovered that the reason SIGINT causes a reboot on sysvinit is that | Isaac Dunham | |
it's how the kernel signals that ctrl-alt-delete has been pressed; thus, setting it as the signal for reboot prevents ctrlaltdel scripts from working. SIGTERM is what Busybox uses, so we might as well be compatible. | |||
2015-08-14 | Fix ionice default class. | Elliott Hughes | |
2015-08-08 | First pass at proper bunzip2 command line handling. | Rob Landley | |
2015-08-08 | login: execl() requires a path, not a file name | Isaac Dunham | |
2015-08-08 | Fix switch_root implementation. | Alistair Strachan | |
Add the MS_MOVE of cwd to / and chroot into it. chdir is also called to ensure cwd does not point outside the chroot. The switch_root toy was also blocking any case where NEW_ROOT/init did not exist, even though NEW_INIT was a required parameter and did not have to be '/init'. Change it to handle any NEW_INIT passed as either a relative or absolute path. With this change, the switch_root toy actually works from initramfs. | |||
2015-08-06 | Detect swap partitions, inline loop_partitions(), various cleanups. | Rob Landley | |
2015-08-06 | Initialize uninitialized variable. (Oops.) | Rob Landley | |
2015-08-05 | I've added support for running blkid without specifying a partition (so it ↵ | Dima Krasner | |
scans /proc/partitions). | |||
2015-08-05 | Minor tweak of reboot.c | Rob Landley | |
2015-08-05 | reboot: signal init, add -f option to call reboot(); | Isaac Dunham | |
init: use SIGINT, use xsignal() Now that oneit supports the same signals as our "sysv"-init for shutdown, make reboot et al. signal pid 1 with the appropriate signal. Of these signals, only SIGINT works with sysvinit 2.88, causing a reboot. The others are only supported in Busybox init. Also, make init accept SIGINT and use xsignal(). | |||
2015-08-05 | Switch nbd_client to xconnect() and make xconnect() try all returned addresses | Rob Landley | |
before failing. | |||
2015-08-02 | Mark command-local functions static. | Rob Landley | |
2015-08-02 | Long-overdue cleanup on login. | Rob Landley | |
Only tested that it compiled so far. |