aboutsummaryrefslogtreecommitdiff
path: root/toys
AgeCommit message (Collapse)Author
2012-03-22Implement comm.Ilya Kuzmich
2012-03-22The -s flag includes staying quiet about missing files.Rob Landley
2012-03-21Test the right variable in NULL guard, and add NOP "s" suffix.Rob Landley
2012-03-19Add string to mode_t parserDaniel 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-19Remove "feature test macros", replace non-portable fdprintf() with standard ↵Rob Landley
fprintf().
2012-03-16The linux header doesn't prototype unshare, and the glibc header introduced ↵Rob Landley
a regression in recent versions inexplicably crediting a linux feature to the FSF, so add the prototype ourselves.
2012-03-15Simplify nanosleep call.Rob Landley
2012-03-14Implement uniq.Georgi Chorbadzhiyski
2012-03-14Default new ch* commands to n until enough is implemented not to break ↵Rob Landley
aboriginal build.
2012-03-13New toys - chmod, chown, and chgrp.Georgi Chorbadzhiyski
2012-03-12Extensive semi-gratuitous refactoring: factor out common code, handle ↵Rob Landley
euid!=uid and egid!=gid cases. (Note: test suite requires root access, possibly container support.)
2012-03-12Tighten up the code a bit, and use actual process group id instead of what ↵Rob Landley
/etc/passwd says.
2012-03-12Redo tail to use optargs and optionally support lseek. Add support to ↵Rob Landley
optargs and llist.c, plus add a test suite entry. Still no -f support though.
2012-03-10Fix nanosleep() usage.Georgi Chorbadzhiyski
2012-03-09Replace deprecated libc function with its totally renamed equivalent.Rob Landley
2012-03-09Work around glibc regression by including Linux header directly.Rob Landley
2012-03-08More stabs at getting #includes right, and moving off of deprecated functions.Rob Landley
2012-03-07Fix mkdir -p to accept paths that already exist, and detect path ending in a ↵Rob Landley
file.
2012-03-07Consolidate headers.Rob Landley
2012-03-07Silence a couple pointless warnings.Rob Landley
2012-03-06Cleanups: use perror_msg() and make mode a global.Rob Landley
2012-03-06Add mkfifo.Georgi Chorbadzhiyski
2012-03-06Comment and whitespace tweaks.Rob Landley
2012-03-05mkdir cleanups: Let umask do its thing at the syscall level, have mode be a ↵Rob Landley
global to prepare for -m, use do_blah name loopfiles() usually calls, one less redundant mkdir() call, go ahead and modify writeable args instead of strdup(), return before restoring / so error message is better, use perror_msg().
2012-03-05Add mkdir.Georgi Chorbadzhiyski
2012-03-05Fix xargs -0 option.Rob Landley
2012-03-05whoami: fix toy description, no code changesPere Orga
2012-03-04Add clear.Rob Landley
2012-03-04Add tac. (Shell wrapper is smaller, but all-in-one static binary is ↵Rob Landley
compelling use case.)
2012-03-04Minor optimization.Rob Landley
2012-03-04Add whoami.Georgi Chorbadzhiyski
2012-03-04Add longopt, refactor so only one instance of each loop, requre = as part of ↵Rob Landley
match, update exit code.
2012-03-03Implement printenv command.Georgi Chorbadzhiyski
2012-03-03Make floating point support depend on TOYBOX_FLOAT, make 0.1m work.Rob Landley
2012-03-03Add fraction and extension support to sleep.Georgi Chorbadzhiyski
2012-03-03Add -A to lsAndre Renaud
2012-03-02This uses floating point.Rob Landley
2012-03-02Add copyright notice, fluff out help text, use xexec().Rob Landley
2012-03-02Only show one normal difference (sans -l) and EOF message should go to ↵Rob Landley
stdout, not stderr.
2012-03-02Cleanup pass, and support unrecognized slash chars ala "echo -e \p".Rob Landley
2012-03-01Add -n, which kernel build needs.Rob Landley
2012-02-28Add "-" type to optargs and teach tail.c to use it. Tighten up help text, ↵Rob Landley
use xzalloc() and xputc() as appropriate.
2012-02-27Upgrade yesno() and make cp -i use it.Rob Landley
2012-02-26The aboriginal linux build needs ls -ditc and probably some more ↵Rob Landley
unimplemented options yet...
2012-02-26Teach patch -p that consecutive /// counts as one path component.Rob Landley
2012-02-26Teach lib/args.c that " " this option must take a _separate_ argument, so ↵Rob Landley
"kill -stop" and "kill -s top" aren't the same thing. Make kill.c use it, and remove leftover debug printfs.
2012-02-26Factor out common code between killall/kill and move it to lib/lib.c, plus ↵Rob Landley
cleanups on kill.c.
2012-02-23Implemented -i for cpBryce Fricke
2012-02-23Bugfix: use the right USE symbol.Rob Landley
2012-02-23Add tail.Timothy Elliott
Disabled by default because the -f option is not implemented.