Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-08-08 | Achille Fouilleul pointed out that fdlength wasn't returning the right ↵ | Rob Landley | |
length in the binary search case. (This code was originally written for mke2fs, and applies to block devices. The regular file case should just return the length from stat. The ioctl is left commented out in case I want to add back code to check the size of CDROMs without spinning them up again; not sure the sector size is always right these days.) | |||
2013-07-16 | Split lib/xwrap.c from lib/lib.c | Rob Landley | |
2013-07-14 | New stuff added to lib.c needs review too, so make a lib/pending.c and move ↵ | Rob Landley | |
several functions to it. | |||
2013-07-12 | add grep | Strake | |
2013-06-16 | Add xexit() and make error_exit() use it. | Rob Landley | |
2013-06-02 | Stat cleanup. | Rob Landley | |
lib: rename format_mode() to mode_to_string() (echoing string_to_mode), make it take a normal char * argument. stat: collapse big switch/case statements that only have one line each into if/else staircase (much fewer lines of code). Remove return type (other stat implementations print ? for unknown escapes, so do that here). Inline do_stat() and do_statfs(). Set default string in normal local variable "format". Remove unnecessary struct d. Restructure stat logic to "if (flagf && !statfs()) else if (!flagf && !stat()) else perror_msg();" Teach %N to add -> symlink. Judicious use of putchar() instead of xputc to let FILE * do its job collating output. | |||
2013-06-01 | Enable readfile() and add peek() and poke() functions. | Rob Landley | |
2013-05-19 | xioctl() error message should use hex ioctl number; that's what headers list. | Rob Landley | |
2013-04-29 | Fix xabspath when last path component exists but we haven't got permissions ↵ | Rob Landley | |
to open it (ala readlink -f /dev/sda as a normal user). Spotted by Ashwini Sharma. | |||
2013-04-22 | Add library function for the file permission formatting in ls and stat | Felix Janda | |
2013-04-26 | Add posix headers to toynet.h, move xioctl() to lib.c, introduce lib/net.c ↵ | Rob Landley | |
and move xsocket() to it. | |||
2013-04-20 | More ifconfig cleanup. | Rob Landley | |
2013-04-14 | Move guts of help command into show_help() in lib/help.c, with config ↵ | Rob Landley | |
TOYBOX_HELP controlling infrastructure. | |||
2013-01-31 | Fix -in behavior: descend into existing directory without prompting, show ↵ | Rob Landley | |
full path in error messages, actually overwrite when answering yes to -i. | |||
2013-01-17 | Fix xabspath() resolving symlink after .., and properly detecting failure ↵ | Rob Landley | |
for last entry after nondir. | |||
2013-01-02 | Have error_msg() and friends set TT.exitval to 1 if it's still 0, clean out ↵ | Rob Landley | |
other places that were setting it that no longer need to. | |||
2012-12-16 | Extend killall with support for -v and -i | Elie De Brauwer | |
2012-12-08 | Adding -s (single shot) and -o (omit pids) options to pidof | Elie De Brauwer | |
2012-12-08 | Make yesno() always read from stdin and write to stderr. (If we need to find ↵ | Rob Landley | |
our tty, open /dev/tty, but existing users don't.) | |||
2012-11-23 | Add expand command as described in POSIX-2008. | Jonathan Clairembault | |
Erratum: Do not handle backspace. | |||
2012-11-22 | Remove readlink -m for being poorly defined ("readlink -m ↵ | Rob Landley | |
/dev/null/and/more" answers what question, exactly?), rewrite xabspath() to work right and not depend on realpath, fix subtle longstanding bug in llist_traverse(). | |||
2012-11-20 | Update readlink so -f works. Add -menq while there. | Rob Landley | |
2012-11-16 | Add cut from Jason Kyungwan Han. | Rob Landley | |
2012-11-16 | Add rebound support to intercept error_exit() and longjmp instead. | Rob Landley | |
2012-11-13 | Reindent to two spaces per level. Remove vi: directives that haven't worked ↵ | Rob Landley | |
right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style. The actual code should be the same afterward, this is just cosmetic refactoring. | |||
2012-10-07 | Fix thinko in xpidfile() | Rob Landley | |
2012-08-26 | Add du command. | Ashwini Kumar | |
2012-07-30 | Add signal handler to clean up tempfile. | Rob Landley | |
2012-07-23 | Workaround longstanding glibc/ld bug, ala ↵0.4.0 | Rob Landley | |
http://sources.redhat.com/bugzilla/show_bug.cgi?id=3400, which prevents "./toybox | wc" from producing any output when toybox was statically linked. | |||
2012-07-21 | Make chmod +w respect umask, implement +s and +t, fix ls to show ↵ | Rob Landley | |
suid/sgid/stid without x bit. | |||
2012-07-15 | New infrastructure for od (oops). | Rob Landley | |
2012-06-30 | Add NOP b (byte) suffix to atolx() since od needs it. | Rob Landley | |
2012-06-22 | Minor code refactoring. | Rob Landley | |
2012-06-09 | Feeding -1 to xdup() isn't an error. | Rob Landley | |
2012-06-03 | Update chmod to work with new dirtree, and fix bugs in string_to_mode(). | Rob Landley | |
2012-06-01 | Add xrealpath() at suggestion of Ashish Briggers. | Rob Landley | |
2012-05-16 | First pass at a complete rewrite of string_to_mode(). (It compiled!) | Rob Landley | |
2012-04-14 | Rewrite dirtree so we don't need readdir, scandir, and fts.h. Rewrite ls ↵ | Rob Landley | |
(from scratch) to use new dirtree infrastructure. (This breaks everything else that currently uses dirtree.) | |||
2012-03-20 | Using /dev/tty for yesno() is wrong because yes 'n' | cp -ial needs to work. | Rob Landley | |
2012-03-19 | Unwind gratuitous macros. | Rob Landley | |
2012-03-19 | Add string to mode_t parser | Daniel Walter | |
added new function string_to_mode(char *m_string, mode_t base) which parses a given string and converts it to a mode_t. If either + or - are part of m_string the permissions are either added or removed from base. Currently support for permision copy is missing (e.g. g=u), but all other flags should work. Format for m_string: either symbolic modes or octal representation. symbolic modes: [auog][[+-=][rwxst]*] examples: string_to_mode("u=rwx,g=rw,o=r", 0); string_to_mode("a-x", 0777); string_to_mode("0744", 0); | |||
2012-03-19 | Remove "feature test macros", replace non-portable fdprintf() with standard ↵ | Rob Landley | |
fprintf(). | |||
2012-03-08 | More stabs at getting #includes right, and moving off of deprecated functions. | Rob Landley | |
2012-02-27 | Upgrade yesno() and make cp -i use it. | Rob Landley | |
2012-02-26 | Factor out common code between killall/kill and move it to lib/lib.c, plus ↵ | Rob Landley | |
cleanups on kill.c. | |||
2012-02-18 | Nathan McSween convinced me compilers that inline memset() can optimize the ↵ | Rob Landley | |
bzero case pretty well. | |||
2012-02-18 | Cleanups to pidof (including some global infrastructure shared with killall). | Rob Landley | |
2012-02-18 | Add killall by Andreas Heck, and factor out common pid code to lib.h. | Rob Landley | |
2012-02-09 | Make atolx() error_exit() if fed a string that doesn't convert entirely into ↵ | Rob Landley | |
an integer. | |||
2012-02-02 | Quick and dirty terminal_size() and yesno() functions, both of which need to ↵ | Rob Landley | |
be improved. |