OSDN Git Service

android-x86/external-toybox.git
10 years agoHave "make test" run tests in testdir/testdir instead of same directory as command...
Rob Landley [Fri, 4 Jul 2014 03:09:11 +0000 (22:09 -0500)]
Have "make test" run tests in testdir/testdir instead of same directory as command symlinks. (Makes cleanup easier.)

10 years agodate -r wasn't saving the result in the right variable. (And make date -ur work.)
Rob Landley [Fri, 4 Jul 2014 01:30:52 +0000 (20:30 -0500)]
date -r wasn't saving the result in the right variable. (And make date -ur work.)

10 years agoFix rm -rf of chmod 000 directories.
Rob Landley [Thu, 3 Jul 2014 23:42:44 +0000 (18:42 -0500)]
Fix rm -rf of chmod 000 directories.

10 years agoPromote makedevs to other.
Rob Landley [Mon, 30 Jun 2014 10:05:39 +0000 (05:05 -0500)]
Promote makedevs to other.

10 years agoBugfixes for cleaned up makedevs.
Rob Landley [Mon, 30 Jun 2014 09:58:37 +0000 (04:58 -0500)]
Bugfixes for cleaned up makedevs.

Newline after table = <stdin>, move start/increment/count loop around entire
device creation if/else staircase including chmod/chown code and use ptr to
record node vs toybuf.

10 years agoUse dlist_terminate() in patch.
Rob Landley [Sun, 29 Jun 2014 03:47:40 +0000 (22:47 -0500)]
Use dlist_terminate() in patch.

10 years agoAdd : as an alias for true (toysh needs this).
Rob Landley [Sun, 29 Jun 2014 03:36:02 +0000 (22:36 -0500)]
Add : as an alias for true (toysh needs this).

10 years agoMake fallocate depend on probe for libc support.
Rob Landley [Sun, 29 Jun 2014 03:17:00 +0000 (22:17 -0500)]
Make fallocate depend on probe for libc support.

10 years agoAdd fallocate probe for uClibc.
Rob Landley [Sun, 29 Jun 2014 01:16:11 +0000 (20:16 -0500)]
Add fallocate probe for uClibc.

10 years agoPromote mkpasswd from pending to other.
Rob Landley [Sun, 29 Jun 2014 01:02:57 +0000 (20:02 -0500)]
Promote mkpasswd from pending to other.

10 years agoCleanup read_password(), factor out set_terminal(), fix salt bug (des wants the salt...
Rob Landley [Sun, 29 Jun 2014 01:02:01 +0000 (20:02 -0500)]
Cleanup read_password(), factor out set_terminal(), fix salt bug (des wants the salt raw, no $ at the beginning).

10 years agoUpdate cleanup page, now linking to descriptions of all of the ifconfig cleanup.
Rob Landley [Sat, 28 Jun 2014 03:26:02 +0000 (22:26 -0500)]
Update cleanup page, now linking to descriptions of all of the ifconfig cleanup.

10 years agoI have developed few testsuite for toybox commands - ls, ln, rm, mv, printf, dd,...
Divya Kothari [Thu, 26 Jun 2014 12:25:20 +0000 (07:25 -0500)]
I have developed few testsuite for toybox commands - ls, ln, rm, mv, printf, dd, renice.

10 years agoCleanup pass on mkpasswd.c
Rob Landley [Thu, 26 Jun 2014 03:54:59 +0000 (22:54 -0500)]
Cleanup pass on mkpasswd.c

10 years agoCleanup pass on makedevs. Need to test it before promoting.
Rob Landley [Wed, 25 Jun 2014 11:26:17 +0000 (06:26 -0500)]
Cleanup pass on makedevs. Need to test it before promoting.

10 years agoGlibc and uClibc provide CERASE from termios.h, but musl requies you to #include...
Rob Landley [Wed, 25 Jun 2014 02:47:07 +0000 (21:47 -0500)]
Glibc and uClibc provide CERASE from termios.h, but musl requies you to #include a non-posix header and the maintainer considers this a feature. So just use the constant directly.

10 years agofind_in_path() is supposed to work with a NULL path, but didn't. Fix it.
Rob Landley [Tue, 24 Jun 2014 13:19:24 +0000 (08:19 -0500)]
find_in_path() is supposed to work with a NULL path, but didn't. Fix it.

10 years agoTweak license page to explicitly say that zero clause BSD is functionally equivalent...
Rob Landley [Tue, 24 Jun 2014 12:00:13 +0000 (07:00 -0500)]
Tweak license page to explicitly say that zero clause BSD is functionally equivalent to placing the code in the public domain.

This license variant looks like BSD, but is an unrestricted permission grant that doesn't require you to copy specific license text into derivative works. (The second paragraph is about something we DON'T do, I.E. provide any sort of warantee, and is just boilerplate from BSD to make it look like a BSD license.)

10 years agoMove deallocvt.c into openvt.c, cleanup both.
Rob Landley [Tue, 24 Jun 2014 11:42:08 +0000 (06:42 -0500)]
Move deallocvt.c into openvt.c, cleanup both.

10 years agoForgot to check in main() part of TOYFLAG_LOCALE change.
Rob Landley [Sat, 21 Jun 2014 18:03:42 +0000 (13:03 -0500)]
Forgot to check in main() part of TOYFLAG_LOCALE change.

10 years agoThe readme, a text file, has an HTML close paragraph tag.
Rob Landley [Thu, 12 Jun 2014 03:44:48 +0000 (22:44 -0500)]
The readme, a text file, has an HTML close paragraph tag.

(Sheer force of habit.)

10 years agoOption parsing for nohup needs to stop at first nonoption argument. Minor cleanups.
Rob Landley [Thu, 12 Jun 2014 03:43:54 +0000 (22:43 -0500)]
Option parsing for nohup needs to stop at first nonoption argument. Minor cleanups.

10 years agoCleanup pass on login
Rob Landley [Thu, 12 Jun 2014 03:41:25 +0000 (22:41 -0500)]
Cleanup pass on login

10 years agoEnable fallocate in defconfig.
Rob Landley [Thu, 12 Jun 2014 03:18:35 +0000 (22:18 -0500)]
Enable fallocate in defconfig.

10 years agoCleanup pass on host.c
Rob Landley [Thu, 12 Jun 2014 03:14:44 +0000 (22:14 -0500)]
Cleanup pass on host.c

10 years agoMove toys.toycount initialization _after_ zeroing toys, so help -a works again.
Rob Landley [Thu, 12 Jun 2014 03:13:28 +0000 (22:13 -0500)]
Move toys.toycount initialization _after_ zeroing toys, so help -a works again.

10 years agoPromote strings.
Rob Landley [Wed, 11 Jun 2014 13:11:38 +0000 (08:11 -0500)]
Promote strings.

10 years agoCleanup strings.
Rob Landley [Wed, 11 Jun 2014 13:02:55 +0000 (08:02 -0500)]
Cleanup strings.

10 years agoUpdate toybox help to say how to install the static binary.
Rob Landley [Wed, 11 Jun 2014 02:57:05 +0000 (21:57 -0500)]
Update toybox help to say how to install the static binary.

10 years agopending/useradd: unbreak build
Isaac Dunham [Tue, 10 Jun 2014 13:29:10 +0000 (08:29 -0500)]
pending/useradd: unbreak build

When useradd started using xfork(), the conditional in else if (pid > 0)
became unnecessary, since else means pid is nonzero and xfork makes it
non-negative. However, the "if" was not deleted.

10 years agoPromote rfkill.
Rob Landley [Mon, 9 Jun 2014 12:13:05 +0000 (07:13 -0500)]
Promote rfkill.

10 years agoForgot to check in strstart().
Rob Landley [Mon, 9 Jun 2014 12:12:49 +0000 (07:12 -0500)]
Forgot to check in strstart().

10 years agoCleanup pass on rfkill.
Rob Landley [Mon, 9 Jun 2014 12:07:33 +0000 (07:07 -0500)]
Cleanup pass on rfkill.

10 years agohost needs -lresolv
Rob Landley [Mon, 9 Jun 2014 10:53:43 +0000 (05:53 -0500)]
host needs -lresolv

10 years agoWhen locale is enabled, sprintf("%.123s", str) is counting characters, not bytes...
Rob Landley [Mon, 9 Jun 2014 10:51:04 +0000 (05:51 -0500)]
When locale is enabled, sprintf("%.123s", str) is counting characters, not bytes, so we can't globally enable locale without opening stack/heap smashing vulnerabilities. Make commands individually request setlocale() using TOYFLAGS instead.

10 years agoWarning fix from Rich Felker.
Rob Landley [Sun, 8 Jun 2014 22:05:10 +0000 (17:05 -0500)]
Warning fix from Rich Felker.

10 years agoAdd host by Rich Felker.
Rob Landley [Sun, 8 Jun 2014 20:03:32 +0000 (15:03 -0500)]
Add host by Rich Felker.

10 years agoIsaac Dunham also reported that some diff implementations can't handle nonseekable...
Rob Landley [Sun, 8 Jun 2014 19:01:37 +0000 (14:01 -0500)]
Isaac Dunham also reported that some diff implementations can't handle nonseekable input, so write to a temporary file instead of <(command).

Use trap EXIT to make sure the temporary files get deleted.

10 years agoIsaac Dunham pointed out that busybox diff only implements unified diffs, and sent...
Rob Landley [Sun, 8 Jun 2014 18:49:57 +0000 (13:49 -0500)]
Isaac Dunham pointed out that busybox diff only implements unified diffs, and sent a patch to convert bloatcheck to use that. I tweaked it a bit.

10 years agoReplace large parenthetical in bloatcheck with a function.
Rob Landley [Sun, 8 Jun 2014 18:24:02 +0000 (13:24 -0500)]
Replace large parenthetical in bloatcheck with a function.

10 years agoMinor tweaks to code style section.
Rob Landley [Sat, 7 Jun 2014 17:03:54 +0000 (12:03 -0500)]
Minor tweaks to code style section.

10 years agoMake md5sum/sha1sum -b flag be "brief" output (just the hash).
Rob Landley [Sat, 7 Jun 2014 15:42:20 +0000 (10:42 -0500)]
Make md5sum/sha1sum -b flag be "brief" output (just the hash).

(It's not like systems implementing -b binary and -t text still matter.)

10 years agomount: start on option parsing, implement loopback and bind mount autodetection.
Rob Landley [Tue, 3 Jun 2014 11:27:24 +0000 (06:27 -0500)]
mount: start on option parsing, implement loopback and bind mount autodetection.

10 years agoHelp text should have a blank line after usage: lines, and a couple other whitespace...
Rob Landley [Tue, 3 Jun 2014 02:16:20 +0000 (21:16 -0500)]
Help text should have a blank line after usage: lines, and a couple other whitespace tweaks.

10 years agoThe tests for link and du are attached.
Isaac Dunham [Sun, 1 Jun 2014 22:47:19 +0000 (17:47 -0500)]
The tests for link and du are attached.

10 years agocpio: archive more files
Isaac Dunham [Sun, 1 Jun 2014 18:50:39 +0000 (13:50 -0500)]
cpio: archive more files
While writing tests for cpio, I found that cpio tries to open empty
files if they're regular files, and fails to archive them if unreadable.
This can be easily avoided, and is not the usual behavior.

10 years agoiconv: some fixes
Felix Janda [Sat, 31 May 2014 09:18:30 +0000 (11:18 +0200)]
iconv: some fixes

- fix problem with sequences at buffer boundaries
- add (ignored) -c and -s options
- don't try to continue with a file when read() fails

10 years agoPromote partprobe.
Rob Landley [Sat, 31 May 2014 23:00:04 +0000 (18:00 -0500)]
Promote partprobe.

10 years agoCleanup partprobe.
Rob Landley [Sat, 31 May 2014 22:59:27 +0000 (17:59 -0500)]
Cleanup partprobe.

10 years agoIntroduce xfork() and make commands use it, and make some WEXITSTATUS() use WIFEXITED...
Rob Landley [Sat, 31 May 2014 17:33:24 +0000 (12:33 -0500)]
Introduce xfork() and make commands use it, and make some WEXITSTATUS() use WIFEXITED() and WTERMSIG()+127.

10 years agokillall5 - kill all the processes not in its session.
Ashwini Sharma [Thu, 29 May 2014 13:21:48 +0000 (08:21 -0500)]
killall5 - kill all the processes not in its session.

10 years agomakedevs - making devices/nodes in a range. Supports reading the tabled entry from...
Ashwini Sharma [Thu, 29 May 2014 13:20:30 +0000 (08:20 -0500)]
makedevs - making devices/nodes in a range. Supports reading the tabled entry from file.

10 years agostrings - print the strings in the file.
Ashwini Sharma [Thu, 29 May 2014 13:18:50 +0000 (08:18 -0500)]
strings - print the strings in the file.

10 years agoFirst stab at mount, very incomplete.
Rob Landley [Thu, 29 May 2014 11:49:59 +0000 (06:49 -0500)]
First stab at mount, very incomplete.

10 years agoMake "losetup /dev/loop0 filename" work.
Rob Landley [Thu, 29 May 2014 11:29:12 +0000 (06:29 -0500)]
Make "losetup /dev/loop0 filename" work.

Sigh. Implement the complex cases and you screw up the simple cases you already tested...

10 years agoSwitch mtab_list to doubly linked so we can traverse in either order. Convert umount...
Rob Landley [Thu, 29 May 2014 10:22:02 +0000 (05:22 -0500)]
Switch mtab_list to doubly linked so we can traverse in either order. Convert umount and df. Add dlist_terminate() to break lists for traversal in either direction.

10 years agoAdd mount options to data getmountlist collects.
Rob Landley [Tue, 27 May 2014 12:56:51 +0000 (07:56 -0500)]
Add mount options to data getmountlist collects.

10 years agoBrush the dust off toysh.
Rob Landley [Tue, 27 May 2014 01:39:20 +0000 (20:39 -0500)]
Brush the dust off toysh.

Simplify the config micromanagement tangle to just a single "interactive"
option. Fix an unused variable and wrong variable type.

10 years agoIsaac Dunham suggested xprintf() should call fflush() instead of ferror(), and posix...
Rob Landley [Mon, 26 May 2014 17:25:47 +0000 (12:25 -0500)]
Isaac Dunham suggested xprintf() should call fflush() instead of ferror(), and posix-2008 doesn't say if fflush() covers ferror() (or can return success when the stream's error state is set), so call both.

10 years agoI have attached a patch adding a program that allows re-reading the partition table...
Bertold Van den Bergh [Mon, 26 May 2014 01:49:51 +0000 (20:49 -0500)]
I have attached a patch adding a program that allows re-reading the partition table. This is often used on embedded systems booting from SD/USB devices that need to resize partitions on first boot.

10 years agoatolx_range() is already added into lib/lib.c, in vconfig.c atolx_range() can be...
Ashwini Sharma [Sun, 25 May 2014 16:52:27 +0000 (11:52 -0500)]
atolx_range() is already added into lib/lib.c, in vconfig.c atolx_range() can be used in place of locally defined strtorange() function.

10 years agologname and whoami are the same as id -un, so merge them.
Isaac Dunham [Sun, 25 May 2014 16:46:58 +0000 (11:46 -0500)]
logname and whoami are the same as id -un, so merge them.

Since the starting letters are greater than those for 'id' or 'groups',
we cn just check if the first letter is greater than 'i'.

10 years agoBugfix from Isaac Dunham (new pci database has # comments in it) and some minor clean...
Rob Landley [Sun, 25 May 2014 03:40:41 +0000 (22:40 -0500)]
Bugfix from Isaac Dunham (new pci database has # comments in it) and some minor cleanups I had in my tree already.

10 years agoPending commands should default n
Rob Landley [Sat, 24 May 2014 19:41:30 +0000 (14:41 -0500)]
Pending commands should default n

10 years agoSingle-user login.
Ashwini Sharma [Sat, 24 May 2014 19:40:02 +0000 (14:40 -0500)]
Single-user login.

10 years agoThe "not root" test happens before looking for --help, so "./sulogin --help" doesn...
Rob Landley [Sat, 24 May 2014 18:50:19 +0000 (13:50 -0500)]
The "not root" test happens before looking for --help, so "./sulogin --help" doesn't show it. Instead make the "not root" failure case always show help text.

10 years agoRemove debug detritus I didn't mean to to check in, and treat an "this variable can...
Rob Landley [Sat, 24 May 2014 17:51:53 +0000 (12:51 -0500)]
Remove debug detritus I didn't mean to to check in, and treat an "this variable can never actually be used uninitialized but gcc's warning generator can't tell and fails spamwards" warning.

10 years agoPass the same $CFLAGS to the library probe as the final build, to work with broken...
Rob Landley [Sat, 24 May 2014 17:49:21 +0000 (12:49 -0500)]
Pass the same $CFLAGS to the library probe as the final build, to work with broken build environments that provide different libraries for --static and dynamic builds.

10 years agopatch from ashwini sharma: treat 0 length read at the start of password read as EOF.
Rob Landley [Sat, 24 May 2014 17:48:32 +0000 (12:48 -0500)]
patch from ashwini sharma: treat 0 length read at the start of password read as EOF.

10 years agorfkill - enable/disable the radio devices
Ashwini Sharma [Fri, 23 May 2014 14:00:09 +0000 (09:00 -0500)]
rfkill - enable/disable the radio devices
e.g. Wireless adapter, Bluetooth devices...

10 years agoinotifyd - watch for filesystem events.
Ashwini Sharma [Fri, 23 May 2014 13:58:08 +0000 (08:58 -0500)]
inotifyd - watch for filesystem events.

10 years agoAshwini Sharma pointed out I screwed up last.c.
Rob Landley [Fri, 23 May 2014 09:14:46 +0000 (04:14 -0500)]
Ashwini Sharma pointed out I screwed up last.c.

Renamed the function, missed a user...

10 years agodate: add -ds, document +FORMAT escapes.
Rob Landley [Fri, 23 May 2014 02:33:10 +0000 (21:33 -0500)]
date: add -ds, document +FORMAT escapes.

10 years agoUpdate docs for example and pending directories.
Rob Landley [Thu, 22 May 2014 13:16:55 +0000 (08:16 -0500)]
Update docs for example and pending directories.

10 years agoConvert bootchartd to generic_signal().
Rob Landley [Wed, 21 May 2014 12:57:48 +0000 (07:57 -0500)]
Convert bootchartd to generic_signal().

10 years agoMake telnet use generic_signal(), minor in-passing cleanups.
Rob Landley [Wed, 21 May 2014 12:51:11 +0000 (07:51 -0500)]
Make telnet use generic_signal(), minor in-passing cleanups.

10 years agoMake telnetd use generic_signal(), inline kill_session(), close race window where...
Rob Landley [Wed, 21 May 2014 12:41:27 +0000 (07:41 -0500)]
Make telnetd use generic_signal(), inline kill_session(), close race window where a SIGCHLD could get lost.

10 years agoAdd generic_signal() handler, which sets toys.signal and writes byte to toys.signalfd...
Rob Landley [Wed, 21 May 2014 12:24:16 +0000 (07:24 -0500)]
Add generic_signal() handler, which sets toys.signal and writes byte to toys.signalfd if set.

10 years agoFirst pass init cleanup: use sigatexit() to set multiple signal handlers, rename...
Rob Landley [Wed, 21 May 2014 12:09:09 +0000 (07:09 -0500)]
First pass init cleanup: use sigatexit() to set multiple signal handlers, 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.

10 years agoMake fsck.c use common list free function, collate cleanup code and move inline.
Rob Landley [Wed, 21 May 2014 12:02:51 +0000 (07:02 -0500)]
Make fsck.c use common list free function, collate cleanup code and move inline.

10 years agoMake last use common llist free function, minor cleanups.
Rob Landley [Wed, 21 May 2014 12:01:16 +0000 (07:01 -0500)]
Make last use common llist free function, minor cleanups.

10 years agoAdd free functions for predefined llist types.
Rob Landley [Wed, 21 May 2014 11:57:43 +0000 (06:57 -0500)]
Add free functions for predefined llist types.

10 years agodhcp client had a segfault, when DHCP message contained 'pad' option.
Ashwini Sharma [Wed, 21 May 2014 10:12:38 +0000 (05:12 -0500)]
dhcp client had a segfault, when DHCP message contained 'pad' option.

The parsing logic kept checking for other options beyond __pad__ option, without
checking if it was __end__ option after that or not.

10 years agolspci text output: add -i, allow -n when disabled
Isaac Dunham [Wed, 21 May 2014 02:19:17 +0000 (21:19 -0500)]
lspci text output: add -i, allow -n when disabled

-i is how standard lspci handles changing the PCI ID database.
lspci -n should be a no-op when text is disabled.

10 years agoCleanup pass on bootchartd.
Rob Landley [Tue, 20 May 2014 00:34:55 +0000 (19:34 -0500)]
Cleanup pass on bootchartd.

Might have broken something, don't actually have a test case for bootchartd yet.

10 years agoFluff out the coding style section, but the result was a bit big for the start of...
Rob Landley [Mon, 19 May 2014 23:24:35 +0000 (18:24 -0500)]
Fluff out the coding style section, but the result was a bit big for the start of code.html, so move it to design.html.

10 years agoQuick cleanup pass on ps.
Rob Landley [Sun, 18 May 2014 19:05:13 +0000 (14:05 -0500)]
Quick cleanup pass on ps.

10 years agoCleanup pass on lspci
Rob Landley [Sun, 18 May 2014 18:08:36 +0000 (13:08 -0500)]
Cleanup pass on lspci

10 years agoTeach singleconfig to switch on sub-options of commands it's building.
Rob Landley [Sun, 18 May 2014 16:47:08 +0000 (11:47 -0500)]
Teach singleconfig to switch on sub-options of commands it's building.

If we're building a standalone version, it might as well have all the bells and whistles enabled.

10 years agobootchartd by Bilal Qureshi.
Rob Landley [Fri, 16 May 2014 00:11:21 +0000 (19:11 -0500)]
bootchartd by Bilal Qureshi.

10 years agoHere's a quick cleanup of md5sum. Executive summary: smaller and faster.
Daniel Verkamp [Fri, 16 May 2014 00:05:16 +0000 (19:05 -0500)]
Here's a quick cleanup of md5sum. Executive summary: smaller and faster.

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.

10 years agoPromote sysctl from pending to other, default y.
Rob Landley [Thu, 15 May 2014 10:34:08 +0000 (05:34 -0500)]
Promote sysctl from pending to other, default y.

10 years agoMore sysctl cleanup: fix error message on nonexistent key, write path, and -p.
Rob Landley [Thu, 15 May 2014 10:32:52 +0000 (05:32 -0500)]
More sysctl cleanup: fix error message on nonexistent key, write path, and -p.

10 years agoCleanup pass on sysctl.
Rob Landley [Wed, 14 May 2014 00:45:01 +0000 (19:45 -0500)]
Cleanup pass on sysctl.

Not heavily tested yet but should be finished at the design level.

10 years agoFirst cleanup pass on sysctl.
Rob Landley [Mon, 12 May 2014 12:52:12 +0000 (07:52 -0500)]
First cleanup pass on sysctl.

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.)

10 years agoAdd sysctl by Bilal Qureshi.
Rob Landley [Mon, 12 May 2014 11:22:10 +0000 (06:22 -0500)]
Add sysctl by Bilal Qureshi.

10 years agoAdd arp from Sandeep Sharma and Kyungwan Han.
Rob Landley [Mon, 12 May 2014 11:12:20 +0000 (06:12 -0500)]
Add arp from Sandeep Sharma and Kyungwan Han.

10 years agosizeof("string") treats it as a char array _including_ the null terminator, so strncm...
Rob Landley [Sat, 10 May 2014 18:24:58 +0000 (13:24 -0500)]
sizeof("string") treats it as a char array _including_ the null terminator, so strncmp(dest, "string", sizeof("string")) is just strcpy.

10 years agoInitial cleanup of last: mostly whitespace, move no record test to start of loop...
Rob Landley [Sat, 10 May 2014 18:20:03 +0000 (13:20 -0500)]
Initial cleanup of last: mostly whitespace, move no record test to start of loop, don't bother to stat an empty file to report when an empty log was created (just report current time).

10 years agoCatch duplicate command name (which breaks the build already, but doesn't identify...
Rob Landley [Sat, 10 May 2014 18:06:31 +0000 (13:06 -0500)]
Catch duplicate command name (which breaks the build already, but doesn't identify the culprit).