aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-03-28Add help.html (make defconfig && help -ah > help.html) to index.Rob Landley
2014-03-28Add help -a (to show all commands) and -h (to produce HTML output).Rob Landley
2014-03-27Fix cpio -it: don't close(fd) unless we opened it.Isaac Dunham
2014-03-26More cpio bugfixes from Isaac Dunham.Rob Landley
Fix FLAG_o to actually be 1 like the comment says, don't try to strlen(name) before reading it, pad TRAILER!!! entry correctly.
2014-03-25Promote cpio out of pending.Rob Landley
After some waffling I put it in "posix", even though it was last specified in susv2 (where it was the obsolete 6 byte header entries predating susv4). LSB specifies it, including the 8 byte header fields, but for the actual command it just references SUSv2. (LSB isn't so much a standard as Red Hat's "notes to self".)
2014-03-25Several cpio bugfixes spotted by Isaac Dunham.Rob Landley
2014-03-24Most of the remaining cpio cleanup.Rob Landley
2014-03-24Fix mkdir -p with absolute paths.Rob Landley
Stripping leading / is not the right thing to do there. Broken when the code moved to lib and was genericized for use elsewhere.
2014-03-19There are cases when the long options are of the format abc-def. In current ↵Ashwini Sharma
implementation FLAG_xxx macros are generated for long options too. with __-__ sign in the macro, it will generate errors. I am of the opinion that __-__ be converted to '_' for generating the FLAG_xxx macros and be used in the command. This will enable the user to 'abc-def', but be handled like 'abc_def' in code.
2014-03-16Clarify an unclear comment pointed out by Steve Long.Rob Landley
2014-03-15Next round of cpio cleanup.Rob Landley
2014-03-13Cleanup cpio: use getline() instead of fgets(), have getline() allocate its ↵Rob Landley
own memory (instead of using toybuf), use perror_msg() instead of lower level verror_msg() (which is really an internal function needed to implement perror_msg()), don't set execute bits on created archive.
2014-03-13Cleanup cpio: fiddle with help text, make option parsing require/exclude ↵Rob Landley
-iot combinations, move loopfiles_stdin() down after write_cpio_member() so we can hardwire it instead of using a function pointer that only ever has one value.
2014-03-11Patch from Isaac Dunham to add cpio -d, with a few tweaks by me.Rob Landley
2014-03-11Move mkpathat to lib, remove redundant function used by patch.Rob Landley
2014-03-11Add "volatile" annotation to peek/poke to stop potential optimizer overreach.Rob Landley
2014-03-11Factor out mkpathat.Rob Landley
2014-03-09Promote freeramdisk from pending to other, default y.Rob Landley
2014-03-09Cleanup freeramdisk: tabs to 2 spaces, square brackets for option name, do ↵Rob Landley
optional cleanup under if (CFG_TOYBOX_FREE) guard.
2014-03-09Please find the patches attached herewith for adding 3 new commands -Vivek Bhagat
1. freeramdisk - If we unmount or detach the RAM disk based file system the Linux Kernel will not free the allocated memory associated with the RAM device. This can be useful if one wants to mount this device again: All data will be preserved. If we need to free the memory back to the Kernel, one can use the command: "toybox freeramdisk <RAM device>". 2. openvt - Successfully opens a new virtual terminal as mentioned with -c option otherwise search and open next available VT. with -s option it switches to new VT with -s -w option, it switch back successfully to originating VT. 3. deallocvt - Deallocate specified virtual teminal. if no virtual terminal is specified, it deallocates all unused VT.
2014-03-08Broken URL that's been pointed out to me a couple times when I'm not at a ↵Rob Landley
machine I can fix it from, keep forgetting...
2014-02-28Fix another bug reported by Ashwini Sharma.Rob Landley
2014-02-28Fix two bugs reported by Ashwini Sharma.Rob Landley
2014-02-28Fix header file generation to not be confused by empty (but non-NULL) option ↵Rob Landley
string. You shouldn't use "" as an option string because a NULL allows toy_init() to avoid calling the option parsing logic entirely, which lets it drop out when nothing's using it (ala scripts/single.sh builds). That said, init.c is currently using a "" option string and a USE_ macro taking advantage of string concatenation may require a "" option config, so...
2014-02-24Put all FOR_xxx blocks after all CLEANUP_xxx in generated/flags.h so the ↵Rob Landley
usages don't have to be in alphabetical order.
2014-02-23CLEANUP transitions require all the generated/flags.h stanzas always be ↵Rob Landley
present (even for commands disabled in the config) to avoid undefined symbol errors referencing FLAG_ macros.
2014-02-22Add -H option to cksum (hex output), fix to use FLAG macros.Rob Landley
2014-02-22Add crc code: zcat now works.Rob Landley
2014-02-21Update status page.Rob Landley
2014-02-21Update inflate code: fixed tables, bugfixes, zcat alias.Rob Landley
2014-02-16Make CLEANUP transitions work, so multiple NEWTOY() can exist in the same file.Rob Landley
Don't #undefine TT in the CLEANUP blocks of generated/flags.h, and #ifdef around the other TT definition. That way you can put a union at the start of your GLOBALS() with the arguments filled out by option parsing, and then have multiple main() functions with different argumetns and different FLAG_x macros, while sharing infrastructure that's not under lib.
2014-02-16Various cleanups found by Tom Sparrow's static analysis.Rob Landley
2014-02-13Ok, _maybe_ I'm rewriting deflate from scratch rather than cleaning up the ↵Rob Landley
existing one, but you can't prove it. I plead the fifth, third, twelvefth, twentieth, twenty-first, twenth-fith, and twenty-seventh.
2014-02-10Not buying it, eh?Rob Landley
2014-02-08Nothing to see here, move along.Rob Landley
2014-02-08Fix segfault with single build of a command with bare longopts.Rob Landley
2014-02-07Move bunzip2 logic from lib into bzcat.Rob Landley
2014-02-04Tweak help text.Rob Landley
2014-02-04More cleanup.html documentation, still way behind...Rob Landley
2014-02-04Use right config for single builds.Rob Landley
2014-02-04Add /prefix netmask support to ifconfig, ala "ifconfig eth0 192.168.1.42/28"Rob Landley
2014-02-02gzip: alphebetize help entries and remove trailing literal \n, check for ↵Rob Landley
command line option groups, move len/dist tables to GLOBALS and calculate instead of including literal tables, collate enum and typedef, convert main to toybox option parsing.
2014-02-01More gzip whitespace tweaks, and the occasional curly bracket. No actual ↵Rob Landley
code changes.
2014-01-31Convert leading tabs to spaces for gzip.Rob Landley
2014-01-31Add Szabolcs Nagy's deflate/inflate code from git://git.suckless.org/flateRob Landley
Confirmed with him on IRC it's ok to use under toybox license, glued the files together and hammered square peg into round hole, no other changes yet.
2014-01-29More elaborate help text collating logic.Rob Landley
2014-01-28init: don't use VT_OPENQRY.Isaac Dunham
The original codepath checks if there is a VT available, and if there isn't sets TERM to vt102 (unless TERM is set to something other than "linux"). Otherwise, TERM is set to "linux" if it is not already set. However, we can rely on getty/... to set TERM if "linux" is not suitable. This has the benefit of dropping a slightly messy section.
2014-01-28Two changes to shut up GCC:Isaac Dunham
* __GLIBC__ was checked unconditionally; this made for a very messy build on musl. * int fd in chvt is always initialized; GCC 3.4 does not recognize this.
2014-01-22-Eradicate (char*) casts for strings.Isaac Dunham
-Don't panic on failure to write messages. -Don't panic on failure to fork; sleep an extra second instead. -s/defualt/default/g -Inline a couple functions called once. (Don't inline inittab_parsing because it is too large).
2014-01-20Collate usage: lines in help text.Rob Landley