aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-10-16Minor lib/password.c cleanup, described on the list. (Inline two functions.)Rob Landley
2013-10-16Prep work for useradd by Ashwini Sharma.Rob Landley
2013-10-15Teach scripts/test.sh to call scripts/single.sh.Rob Landley
2013-10-14I've finally gotten 'cpio' into a shape where it could be useable.Isaac Dunham
This version can archive and extract directories, sockets, FIFOs, devices, symlinks, and regular files. Supported options are -iot, -H FMT (which is a dummy right now). It only writes newc, and could read newc or newcrc. This does NOT implement -d, which essentially is equivalent to mkdir -p $(dirname $FILE) for every file that needs it. Hard links are not supported, though it would be easy to add them given a hash table or something like that. I also have not implemented the "<n> blocks" output on stderr. If desired, I can add it pretty simply. There is one assumption this makes: that the mode of a file, as mode_t, is bitwise equivalent to the mode as defined for the cpio format. This is true of Linux, but is not mandated by POSIX. If it is compiled for a system where that is false, the archives will not be portable.
2013-10-08Move blkid out of pending, default y.Rob Landley
2013-10-08Cleanup chvtRob Landley
2013-10-08Cleanup blkidRob Landley
2013-10-07blkid cleanup: more whitespace (including fixing a strange unindented if ↵Rob Landley
block), convert strange fstype inclusion to OLDTOY(), use "<1" arg so calling with no arguments doesn't hang, convert typedef to normal struct.
2013-10-07blkid cleanup: Convert tabs to spaces.Rob Landley
2013-10-07Add blkid.cBrad Conroy
I finally figured out the NTFS labels after reading a rant on how UTF-8 rocks and how MS switched to UTF16 or UCS1 or whatever. The reason I couldn't grep for the label (mine was "myntfs") was that it is stored as "m\0y\0n\0t\0f\0s\0\0" - found another good use for hexdump :) Notes: I only have x86 to test on, so there are a couple of places that may need bswap_{16,32} for endianness. I used a 65k buf instead of toybuf (4k) for simplicity, but tried to organize it for toybuf if wanted. I have info on more fs types, to patch with after review. blkid does output for all devices if 0 args -> read /proc/partitions?
2013-10-06Whitespace tweaks and remove unused variable.Rob Landley
2013-10-06top submitted by Ashwini SharmaRob Landley
2013-10-06It's not a problem to exactly fill up the buffer with a run if the next ↵Rob Landley
symbol is the terminating symbol. Fixes https://jira.cyanogenmod.org/browse/CYAN-1896
2013-10-04Typo: fdisk != fsck.Rob Landley
2013-10-03Switch flag generation from shell to C.Rob Landley
This should actually generate FLAG_longopt 0 #defines for disabled bare longopts (ala ls without --color). Put temporary executables under "generated" (including instlist for install).
2013-09-22traceroute from Ashwini SharmaRob Landley
2013-09-22Fix generated/oldtoys.h to contain option strings with USE() macros in them.Rob Landley
2013-09-21Update lib/args.c docs.Rob Landley
2013-09-21Tweak args (yank old + that never worked, rename | to +), and add uname -o ↵Rob Landley
as a synonym for -s.
2013-09-21Fluff out option parsing documentation, add another DEBUG test.Rob Landley
2013-09-16Fix -t c0 and -J as reported by heehooman at gmail on the list.Rob Landley
Also fix up help text, and hook up -c.
2013-09-18Release announcement on web page.Rob Landley
2013-09-11Ah, that's why commit 1057 was skipped last pull: it was unfinished. Oops. ↵0.4.6Rob Landley
(Fix it.)
2013-09-10First pass of cut cleanup, and make test script slightly happier with the ↵Rob Landley
concept of 80 character lines.
2013-09-10Remove two unused functions and shrink another.Rob Landley
2013-09-09Cleanup on acpi, switch to default y.Rob Landley
2013-09-09I got tired of trying to guess how much terminal time I could get in on my ↵Isaac Dunham
phone, so here's a basic acpi. I could probably add -c fairly easily (print type, cur_state, and max_state) -t is more difficult, since temperatures are reported in at least 1000 * degrees F and 10 * degrees C.
2013-09-09Minor cleanups.Rob Landley
2013-09-09Don't write a zero past end of toybuf with large -d value.Rob Landley
2013-09-09Minor cosmetic tweaks to expand.Rob Landley
Working my way through the to-review list that predates the "pending" directory. This gets expand off my to-review list. (Proof that "need to review" doesn't mean it's in bad shape, this command was fine. Changed capitalization in the help text because I'm trying to have "user supplies this value" be all caps, switched a read() to readall() although I'm not sure modern kernels actually allow -EINTR to generate zero length reads anymore, and since most of the loopfiles() target functions are called do_commandname() changed the name to that just so it's regular. None of the changes are actually important. :)
2013-09-09Adjust patch to use dlist_pop()Rob Landley
2013-09-09Redo tail closer to the original design. Add more tests for large data sets. ↵Rob Landley
(Still no -f support yet.)
2013-09-09Fix [-group] argument dropping.Rob Landley
2013-09-03Replace ↵Rob Landley
for_each_pid_with_name_in_array_perform_callback_function_upon_translated_value() with name_to_pid(), comparing absolute paths or just basename() consistently as spotted by Lukasz Skalski, and adjust callers.
2013-09-05Pending cleanup page, less than half done. Some of it should probably move ↵Rob Landley
to the code style section.
2013-09-06Ashwini Sharma submitted route.c, adding it to pending.Rob Landley
2013-09-06Make [-abc] exclude logic clear argument slots when disabling options.Rob Landley
2013-09-06Fix for xpidfile spotted by Felix Janda.Rob Landley
2013-09-06Missing typecast in recent rm fix. Oops.Rob Landley
2013-09-05Allow shipped generated/help.h to still be used, until I rewrite the ↵Rob Landley
generator in C.
2013-08-30make.sh: Fix probing for python2.x and be verbose in error reportingElie De Brauwer
2013-08-30uname: Fix help stringElie De Brauwer
2013-09-05env - there were 2 segfaults when run on my Ubuntu 12.04 machine:Jacek Bukarewicz
- one is because eglibc sets environ to NULL on clearenv(). I added check for environ being not NULL when iterating over environment variables - switched xexec to xexec_optargs because command argument is a pointer to optarg which is freed by xexec.
2013-09-05Make chdir handle permissions according to posix, reported by Jacek Bukarewicz..Rob Landley
2013-09-05fix rm to handle "mkdir sub/sub && chmod 007 sub/sub && rm -rf sub".Rob Landley
Previous version didn't delete it, but exited without error. Neither was right.
2013-09-04Don't pad stat's %a field.Rob Landley
2013-09-04First pass at umount, not quite done yet.Rob Landley
2013-09-03Introduce libbuf analogous to toybuf but for use by lib/*.c. Change ↵Rob Landley
readfile() semantics to be able to read into an existing buffer, or malloc its own if that's NULL.
2013-09-03Remove itoa/utoa, let libc do this with sprintf.Rob Landley
2013-09-03Convert dhcp/dhcpd from utoa() to sprintf().Rob Landley