aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-05-24Bugfix from Isaac Dunham (new pci database has # comments in it) and some ↵Rob Landley
minor cleanups I had in my tree already.
2014-05-24Pending commands should default nRob Landley
2014-05-24Single-user login.Ashwini Sharma
2014-05-24The "not root" test happens before looking for --help, so "./sulogin --help" ↵Rob Landley
doesn't show it. Instead make the "not root" failure case always show help text.
2014-05-24Remove debug detritus I didn't mean to to check in, and treat an "this ↵Rob Landley
variable can never actually be used uninitialized but gcc's warning generator can't tell and fails spamwards" warning.
2014-05-24Pass the same $CFLAGS to the library probe as the final build, to work with ↵Rob Landley
broken build environments that provide different libraries for --static and dynamic builds.
2014-05-24patch from ashwini sharma: treat 0 length read at the start of password read ↵Rob Landley
as EOF.
2014-05-23rfkill - enable/disable the radio devicesAshwini Sharma
e.g. Wireless adapter, Bluetooth devices...
2014-05-23inotifyd - watch for filesystem events.Ashwini Sharma
2014-05-23Ashwini Sharma pointed out I screwed up last.c.Rob Landley
Renamed the function, missed a user...
2014-05-22date: add -ds, document +FORMAT escapes.Rob Landley
2014-05-22Update docs for example and pending directories.Rob Landley
2014-05-21Convert bootchartd to generic_signal().Rob Landley
2014-05-21Make telnet use generic_signal(), minor in-passing cleanups.Rob Landley
2014-05-21Make telnetd use generic_signal(), inline kill_session(), close race window ↵Rob Landley
where a SIGCHLD could get lost.
2014-05-21Add generic_signal() handler, which sets toys.signal and writes byte to ↵Rob Landley
toys.signalfd if set.
2014-05-21First pass init cleanup: use sigatexit() to set multiple signal handlers, ↵Rob Landley
rename set_sane_term() to reset_term() and have it take the fd it works on as an argument, some whitespace and help text tweaks.
2014-05-21Make fsck.c use common list free function, collate cleanup code and move inline.Rob Landley
2014-05-21Make last use common llist free function, minor cleanups.Rob Landley
2014-05-21Add free functions for predefined llist types.Rob Landley
2014-05-21dhcp client had a segfault, when DHCP message contained 'pad' option.Ashwini Sharma
The parsing logic kept checking for other options beyond __pad__ option, without checking if it was __end__ option after that or not.
2014-05-20lspci text output: add -i, allow -n when disabledIsaac Dunham
-i is how standard lspci handles changing the PCI ID database. lspci -n should be a no-op when text is disabled.
2014-05-19Cleanup pass on bootchartd.Rob Landley
Might have broken something, don't actually have a test case for bootchartd yet.
2014-05-19Fluff out the coding style section, but the result was a bit big for the ↵Rob Landley
start of code.html, so move it to design.html.
2014-05-18Quick cleanup pass on ps.Rob Landley
2014-05-18Cleanup pass on lspciRob Landley
2014-05-18Teach singleconfig to switch on sub-options of commands it's building.Rob Landley
If we're building a standalone version, it might as well have all the bells and whistles enabled.
2014-05-15bootchartd by Bilal Qureshi.Rob Landley
2014-05-15Here's a quick cleanup of md5sum. Executive summary: smaller and faster.Daniel Verkamp
On my machine, for a 2.2 GB file of random bytes, the timings with warm cache are: toybox before: 11.4 seconds toybox after: 8.3 seconds GNU md5sum: 3.9 seconds openssl dgst -md5: 3.5 seconds This is clearly better than before (3x openssl), but still slow (2x openssl). I suspect there is more low-hanging fruit to be had by eliminating the memcpy in hash_update (maybe not too much - hash_update accounts for about 4% of total runtime versus 92% for md5_transform according to perf - but this would also help sha1sum). make bloatcheck on x86_64 gcc 4.8.2 -Os: name old new delta ----------------------------------------------------------------------- md5rot 0 64 64 md5_transform 365 223 -142 ----------------------------------------------------------------------- -78 total Rationale for the changes: Move definition of 'rol' up so it can be used in md5_transform. This is purely cosmetic; it expands to exactly the same code. Put rotation counts in a lookup table instead of calculating them on the fly. This is mostly a wash size-wise, +5 bytes total, but worthwhile for readability and speed. Instead of accessing the state array using a rotating index (the variable formerly known as 'a'), access the state with constant offsets and rotate the contents of the array instead. This is the big win - it eliminates all the crazy memory addressing math inside the loop.
2014-05-15Promote sysctl from pending to other, default y.Rob Landley
2014-05-15More sysctl cleanup: fix error message on nonexistent key, write path, and -p.Rob Landley
2014-05-13Cleanup pass on sysctl.Rob Landley
Not heavily tested yet but should be finished at the design level.
2014-05-12First cleanup pass on sysctl.Rob Landley
Remove unnecessary typecasting of things that are already char * to char *, and multiplying by sizeof(char *) which is 1. Rename do_process() do_flag_a() since that's the only caller. Move read_key_values() down past trim_spaces() and read_config_file() so it's next to its only two users. Replace some euphemisms for 0 with 0. replace_char() really sounds like something libc should already have one of, but I'm blanking on it if so. (It doesn't need a temporary variable when the argument variable is already a copy so changing it won't affect the caller.)
2014-05-12Add sysctl by Bilal Qureshi.Rob Landley
2014-05-12Add arp from Sandeep Sharma and Kyungwan Han.Rob Landley
2014-05-10sizeof("string") treats it as a char array _including_ the null terminator, ↵Rob Landley
so strncmp(dest, "string", sizeof("string")) is just strcpy.
2014-05-10Initial cleanup of last: mostly whitespace, move no record test to start of ↵Rob Landley
loop, don't bother to stat an empty file to report when an empty log was created (just report current time).
2014-05-10Catch duplicate command name (which breaks the build already, but doesn't ↵Rob Landley
identify the culprit).
2014-05-06Switch human_readable() to just outputing decimal kilo/mega/gigabytes, make ↵Rob Landley
du use it, move it from lib/pending.c to lib.c.
2014-05-06Use compiler built-in macros to determine if argument parsing can use double ↵Rob Landley
or float for FLOAT arguments. (I.E. whether double fits in a long's memory.) Check in a way that the macros not being defined just gives us the shorter one.
2014-05-05Fix bug reported by Ashwini Sharma: rebound has to be at the end or ↵Rob Landley
toy_init() doesn't zero the rest of the struct.
2014-05-02In function readfile(), the buffer buf is free'd when readall() fails. This ↵Ashwini Sharma
free can cause a crash, if the buffer passed by user of function is not malloc'ed one. names_to_pid() is one usecase example here.
2014-05-02Attached is the patch for lsattr and chattr implementation.Ashwini Sharma
This is the modified and better version from the last one I sent. It is having the both the mains (lsattr_main() and chattr_main() ) in single file. Also removed the dependency of additional file in lib, as common code is in the same .c file.
2014-04-29Teach cpio to set uid/gid and timestamp. (Timestamp has year 2100 problem.)Rob Landley
Note that directory timestamps are still sometimes wrong because creating things in a directory can update the timestamp. Also, cp -r has logic to ensure we can write to a directory that doesn't have write permission, cpio does not. This is fixable, but not what existing cpio does.
2014-04-25fold cleanup: whitespace and curly brackets.Rob Landley
2014-04-25Cosmetic tweak: spell out "Linux Standard Base" in menuconfig.Rob Landley
2014-04-25Fix od bug reported by Samuel Holland ("od -v -b" was appending default ↵Rob Landley
output type even though an output type was specified).
2014-04-23Add example directory, move hello.c into it, add skeleton.c to demonstrate ↵Rob Landley
more complciated stuff (multiple commands per file, etc), and have genconfig.sh sort backwards so posix is first and example last in menuconfig.
2014-04-23As long as uClibc's still around and requires you to jump through hoops to ↵Rob Landley
get iconv(), probe and build defconfig without it if it's not there.
2014-04-23usage: is lower case (the help generator looks for that, might as well be ↵Rob Landley
consistent).