platform/upstream/toybox.git
11 years agoMake ls output major, minor for block devices. 0.4.5
Rob Landley [Mon, 1 Jul 2013 05:10:28 +0000 (00:10 -0500)]
Make ls output major, minor for block devices.

11 years agoFirst pass at ls --color
Rob Landley [Mon, 1 Jul 2013 04:52:45 +0000 (23:52 -0500)]
First pass at ls --color

11 years agoCondense ls help text.
Rob Landley [Sun, 30 Jun 2013 21:52:57 +0000 (16:52 -0500)]
Condense ls help text.

11 years agoAdd config option for --help support in all commands.
Rob Landley [Sun, 30 Jun 2013 20:58:24 +0000 (15:58 -0500)]
Add config option for --help support in all commands.

11 years agoFix another segfault in ls -C when terminal size is 0x0.
Rob Landley [Sun, 30 Jun 2013 06:26:56 +0000 (01:26 -0500)]
Fix another segfault in ls -C when terminal size is 0x0.

11 years agomodinfo: support -b basedir and -k kernel.release, fix two bugs
Isaac Dunham [Fri, 28 Jun 2013 07:11:48 +0000 (02:11 -0500)]
modinfo: support -b basedir and -k kernel.release, fix two bugs
Add two less-frequently used flags for modinfo; -b specifies an alternate
root and -k replaces the output of uname -r.

Additionally, avoid a potential overflow in sprintf,
and correct an inverted test.

11 years agoUpdate status to include recently implemented commands.
Rob Landley [Thu, 27 Jun 2013 04:22:43 +0000 (23:22 -0500)]
Update status to include recently implemented commands.

11 years agoModinfo cleanups.
Rob Landley [Sun, 23 Jun 2013 19:38:31 +0000 (14:38 -0500)]
Modinfo cleanups.

Don't use xopen() if you want to iterate through multiple files.
Don't abort if unable to open the file, but return error if it can't map it.
(And leak the filehandle.) All modinfo_file() actually uses is the filename,
no reason to go through dirtree() for that. Nothing is actually _checking_ the
return value of modinfo_file(). Avoid global data outside of toy_union.
Make sure extension is at end of file (we can add support for more extensions
later).

11 years agoPatch that assumes that the presence of the string ".ko" indicates
Isaac Dunham [Sun, 23 Jun 2013 19:02:16 +0000 (14:02 -0500)]
Patch that assumes that the presence of the string ".ko" indicates
use of a path to a module (*.ko.xz and similar included, but not supported).

11 years agoImplement mv as an extension of cp.
Rob Landley [Sun, 23 Jun 2013 04:30:07 +0000 (23:30 -0500)]
Implement mv as an extension of cp.

11 years agoOption type @ counts number of occurrences, it doesn't take an argument.
Rob Landley [Sat, 22 Jun 2013 20:36:25 +0000 (15:36 -0500)]
Option type @ counts number of occurrences, it doesn't take an argument.

11 years agoGenerate FLAG_longopt macros for --longopts with no corresponding short option.
Rob Landley [Sat, 22 Jun 2013 19:23:06 +0000 (14:23 -0500)]
Generate FLAG_longopt macros for --longopts with no corresponding short option.

11 years agoAdd pivot_root.
Rob Landley [Tue, 18 Jun 2013 23:13:06 +0000 (18:13 -0500)]
Add pivot_root.

11 years agoTest cases for split.
Rob Landley [Mon, 17 Jun 2013 04:08:09 +0000 (23:08 -0500)]
Test cases for split.

11 years agoMisc website updates.
Rob Landley [Mon, 17 Jun 2013 01:02:38 +0000 (20:02 -0500)]
Misc website updates.

11 years agoTypo fix
Rob Landley [Mon, 17 Jun 2013 01:00:11 +0000 (20:00 -0500)]
Typo fix

11 years agoAdd xexit() and make error_exit() use it.
Rob Landley [Mon, 17 Jun 2013 00:59:51 +0000 (19:59 -0500)]
Add xexit() and make error_exit() use it.

11 years agoImplement split.
Rob Landley [Sun, 16 Jun 2013 21:37:43 +0000 (16:37 -0500)]
Implement split.

11 years agoUpgrade modinfo to support multiple modules, and add tests, from Isaac Dunham.
Rob Landley [Sun, 16 Jun 2013 07:23:59 +0000 (02:23 -0500)]
Upgrade modinfo to support multiple modules, and add tests, from Isaac Dunham.

11 years agoForce 64 bit math in expr, from Daniel Verkamp
Rob Landley [Sat, 15 Jun 2013 05:49:06 +0000 (00:49 -0500)]
Force 64 bit math in expr, from Daniel Verkamp

11 years agoYet more ifconfig cleanup.
Rob Landley [Sat, 8 Jun 2013 19:11:41 +0000 (14:11 -0500)]
Yet more ifconfig cleanup.

11 years agoStart of expr, by Daniel Verkamp.
Rob Landley [Wed, 5 Jun 2013 05:59:01 +0000 (00:59 -0500)]
Start of expr, by Daniel Verkamp.

11 years agoMore ifconfig cleanup, described on list.
Rob Landley [Mon, 3 Jun 2013 01:51:17 +0000 (20:51 -0500)]
More ifconfig cleanup, described on list.

11 years agoMove stat from pending to other, default y.
Rob Landley [Sun, 2 Jun 2013 05:54:55 +0000 (00:54 -0500)]
Move stat from pending to other, default y.

11 years agoStat cleanup.
Rob Landley [Sun, 2 Jun 2013 05:52:14 +0000 (00:52 -0500)]
Stat cleanup.

Move ftname out of GLOBALS into 'F' handler. Make 'i' zero pad output (zeroes
in middle of ID can get lost).

11 years agoStat cleanup.
Rob Landley [Sun, 2 Jun 2013 05:24:24 +0000 (00:24 -0500)]
Stat cleanup.

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.

11 years agoAdd peek/poke to header file.
Rob Landley [Sun, 2 Jun 2013 03:36:48 +0000 (22:36 -0500)]
Add peek/poke to header file.

11 years agoStat cleanup.
Rob Landley [Sun, 2 Jun 2013 01:47:16 +0000 (20:47 -0500)]
Stat cleanup.

Put global stat info in a union so we don't have to malloc it and thus don't need an explicit size tracked in main(). Make date_stat_format() take a timespec and take advantage of stat having an embedded timespec (nanosecond printing), typecast the long long prints for XYZ because on some 32 bit platforms it's an int.

11 years agoEnable readfile() and add peek() and poke() functions.
Rob Landley [Sun, 2 Jun 2013 01:41:35 +0000 (20:41 -0500)]
Enable readfile() and add peek() and poke() functions.

11 years agoStat cleanup.
Rob Landley [Tue, 28 May 2013 05:28:45 +0000 (00:28 -0500)]
Stat cleanup.

From the mailing list:

Ok, first thing: clean up the help text. I realize what's there is copied verbatim from the man page, but that man page sucks. ("modification time" vs "change time"?) Took a bit of finagling to fit it in 80x24, but just made it.

GLOBALS() indent was still tab, change to two spaces. And I tend to put a blank line between options lib/args.c automatically fills out and normal globals.

We never do anything with date_stat_format() but immediately print it, might as well make the function do it.

The types[] array in do_stat() is a rough edge. Hmmm... there's no else case that sets the type in case it was unknown (such as 0). In theory, this never happens. In practice it means I can cheat slightly, given this observation:

  $ find linux -name stat.h | xargs grep 'S_IF[A-Z]*[ \t]'
  linux/include/uapi/linux/stat.h:#define S_IFMT  00170000
  linux/include/uapi/linux/stat.h:#define S_IFSOCK 0140000
  linux/include/uapi/linux/stat.h:#define S_IFLNK  0120000
  linux/include/uapi/linux/stat.h:#define S_IFREG  0100000
  linux/include/uapi/linux/stat.h:#define S_IFBLK  0060000
  linux/include/uapi/linux/stat.h:#define S_IFDIR  0040000
  linux/include/uapi/linux/stat.h:#define S_IFCHR  0020000
  linux/include/uapi/linux/stat.h:#define S_IFIFO  0010000

I.E. the only place the I_IFBLAH constants occur a stat.h header in current linux code is in the generic stuff, it doesn't vary per target. (The access permission bits are actually subtly standardized in posix due to the command line arguments to chmod, although I'm sure cygwin finds a way to break. But the type fields, not so much. But linux has to be binary compatible with itself foreverish, and that's all I really care about.)

So, we have ALMOST have this going by twos, except there's no 8 and there is a 1. so let's make the 1 the default, feed a blank string into the 8... No, duh: octal. So it's actually 2, 4, 6, 8, 10, 12. So make the loop look like:

  filetype = statf->st_mode & S_IFMT;
  TT.ftname = types;
  for (i = 1; filetype != (i*8192) && i < 7; i++)
    TT.ftname += strlen(TT.ftname)+1;

Yes that's linux-specific, and I think I'm ok with that.

Printing all zeroes and pretending that's nanosecond resolution... either support it or don't. Let's see, supporting it is stat->st_atim.tv_nsec and similar... no mention of nanoseconds in strftime() (et tu, posix2008?) so pass it as a second argument and append it by hand... (Need to test that against musl...)

When we hit an unknown type in print_it() we print the literal character, which is right for %% but what about an unknown option?

  $ stat -c %q /
  ?

Eh, I guess that's a "don't care". It didn't die with an error, that's the important thing.

I have a horrible idea for compressing the switch/case blocks, but should probably check this in and get some sleep for right now...

11 years agostat: Separate stat and statfs
Felix Janda [Sun, 26 May 2013 07:48:13 +0000 (09:48 +0200)]
stat: Separate stat and statfs

11 years agostat: Add support for stat'ing multiple files
Felix Janda [Sat, 25 May 2013 19:58:14 +0000 (21:58 +0200)]
stat: Add support for stat'ing multiple files

11 years agoTests for touch (needs more work).
Rob Landley [Mon, 27 May 2013 18:39:03 +0000 (13:39 -0500)]
Tests for touch (needs more work).

11 years agoTests for losetup.
Rob Landley [Mon, 27 May 2013 18:38:09 +0000 (13:38 -0500)]
Tests for losetup.

11 years agoMore ifconfig cleanup, inlining show_ip_addr(), hex_to_binary(), and set_hw_address().
Rob Landley [Tue, 21 May 2013 05:23:23 +0000 (00:23 -0500)]
More ifconfig cleanup, inlining show_ip_addr(), hex_to_binary(), and set_hw_address().

11 years agoNext round of ifconfig cleanup, to be described on mailing list.
Rob Landley [Tue, 21 May 2013 01:50:25 +0000 (20:50 -0500)]
Next round of ifconfig cleanup, to be described on mailing list.

11 years agoYet more ifconfig cleanup. (As described on the mailing list [CLEANUP] thread.)
Rob Landley [Sun, 19 May 2013 05:48:19 +0000 (00:48 -0500)]
Yet more ifconfig cleanup. (As described on the mailing list [CLEANUP] thread.)

11 years agoxioctl() error message should use hex ioctl number; that's what headers list.
Rob Landley [Sun, 19 May 2013 05:14:45 +0000 (00:14 -0500)]
xioctl() error message should use hex ioctl number; that's what headers list.

11 years agoMake groups handle multiple usernames on command line.
Ivo van Poorten [Sun, 19 May 2013 03:33:40 +0000 (22:33 -0500)]
Make groups handle multiple usernames on command line.

11 years agoTighten up lsusb, default to "y".
Rob Landley [Wed, 15 May 2013 01:42:54 +0000 (20:42 -0500)]
Tighten up lsusb, default to "y".

11 years agoSilence warning and comment a subtle bit.
Rob Landley [Wed, 15 May 2013 01:22:23 +0000 (20:22 -0500)]
Silence warning and comment a subtle bit.

11 years agoAttached is a pretty simple implementation of lsub. It doesn't implement any of the...
Andre Renaud [Tue, 14 May 2013 22:42:11 +0000 (17:42 -0500)]
Attached is a pretty simple implementation of lsub. It doesn't implement any of the flags/options, but does the raw output.

11 years agoadd groups implementation to id.c
Ivo van poorten [Tue, 14 May 2013 05:03:26 +0000 (00:03 -0500)]
add groups implementation to id.c

11 years agoIfconfig cleanup to option parsing.
Rob Landley [Mon, 13 May 2013 02:09:16 +0000 (21:09 -0500)]
Ifconfig cleanup to option parsing.

11 years agoConvert getmountlist() to xgetmountlist().
Rob Landley [Fri, 10 May 2013 23:57:01 +0000 (18:57 -0500)]
Convert getmountlist() to xgetmountlist().

11 years agoWeb page tweaks.
Rob Landley [Fri, 10 May 2013 23:54:14 +0000 (18:54 -0500)]
Web page tweaks.

11 years agoAdd --help option to toybox command when TOYBOX_HELP is enabled.
Rob Landley [Thu, 9 May 2013 04:19:45 +0000 (23:19 -0500)]
Add --help option to toybox command when TOYBOX_HELP is enabled.

11 years agoAnother stab at recapitulating phylogeny in a README file.
Rob Landley [Wed, 8 May 2013 03:50:33 +0000 (22:50 -0500)]
Another stab at recapitulating phylogeny in a README file.

11 years agoSome work I did over the weekend on nbd_client, not sure where I left off...
Rob Landley [Wed, 8 May 2013 03:03:31 +0000 (22:03 -0500)]
Some work I did over the weekend on nbd_client, not sure where I left off...

11 years agogenerated/help.h depends on CONFIG_TOYBOX_HELP
Felix Janda [Tue, 30 Apr 2013 19:11:43 +0000 (21:11 +0200)]
generated/help.h depends on CONFIG_TOYBOX_HELP

11 years agoFix bare longopts to set unique optflag bits.
Rob Landley [Tue, 30 Apr 2013 05:31:01 +0000 (00:31 -0500)]
Fix bare longopts to set unique optflag bits.

11 years agoThe host sort on many distros behaves stupidly, and sorts stuff in non-ascii order...
Rob Landley [Mon, 29 Apr 2013 21:00:40 +0000 (16:00 -0500)]
The host sort on many distros behaves stupidly, and sorts stuff in non-ascii order by default. Make it stop.

11 years agoFix xabspath when last path component exists but we haven't got permissions to open...
Rob Landley [Mon, 29 Apr 2013 17:30:28 +0000 (12:30 -0500)]
Fix xabspath when last path component exists but we haven't got permissions to open it (ala readlink -f /dev/sda as a normal user). Spotted by Ashwini Sharma.

11 years agoFix conflicting types for show_help().
Rob Landley [Mon, 29 Apr 2013 15:53:09 +0000 (10:53 -0500)]
Fix conflicting types for show_help().

11 years agoFix find -mtime
Felix Janda [Fri, 26 Apr 2013 21:15:29 +0000 (23:15 +0200)]
Fix find -mtime

11 years agostat: Remove unimplemented options and clean up help text
Felix Janda [Mon, 22 Apr 2013 21:18:05 +0000 (23:18 +0200)]
stat: Remove unimplemented options and clean up help text

11 years agoAdd library function for the file permission formatting in ls and stat
Felix Janda [Mon, 22 Apr 2013 20:29:43 +0000 (22:29 +0200)]
Add library function for the file permission formatting in ls and stat

11 years agoAdd firmware field to modinfo output.
idunham [Sat, 27 Apr 2013 05:57:11 +0000 (00:57 -0500)]
Add firmware field to modinfo output.

11 years agoAdd posix headers to toynet.h, move xioctl() to lib.c, introduce lib/net.c and move...
Rob Landley [Fri, 26 Apr 2013 07:41:05 +0000 (02:41 -0500)]
Add posix headers to toynet.h, move xioctl() to lib.c, introduce lib/net.c and move xsocket() to it.

11 years agoRemove leaked global path_mounts.
Rob Landley [Fri, 26 Apr 2013 06:59:13 +0000 (01:59 -0500)]
Remove leaked global path_mounts.

11 years agoEliminate leaked global bunzip_errors.
Rob Landley [Fri, 26 Apr 2013 06:47:59 +0000 (01:47 -0500)]
Eliminate leaked global bunzip_errors.

11 years agoQuick sniff test to find leaked global variables.
Rob Landley [Fri, 26 Apr 2013 06:46:03 +0000 (01:46 -0500)]
Quick sniff test to find leaked global variables.

11 years agoAnd another round of ifconfig cleanup.
Rob Landley [Thu, 25 Apr 2013 05:19:51 +0000 (00:19 -0500)]
And another round of ifconfig cleanup.

11 years agoYet more drive-by cleanup of ifconfig.
Rob Landley [Thu, 25 Apr 2013 02:52:08 +0000 (21:52 -0500)]
Yet more drive-by cleanup of ifconfig.

11 years agoIsaac Dunham pointed out that the kernel treats - and _ as identical in module names...
Rob Landley [Wed, 24 Apr 2013 08:04:31 +0000 (03:04 -0500)]
Isaac Dunham pointed out that the kernel treats - and _ as identical in module names, so modinfo should too. Made it use mmap() while I was there, and some cosmetic refactoring.

11 years agoForgot to check in a header that moved from ifconfig to toynet.h.
Rob Landley [Mon, 22 Apr 2013 06:56:26 +0000 (01:56 -0500)]
Forgot to check in a header that moved from ifconfig to toynet.h.

11 years agoMore find cleanup
Felix Janda [Sun, 21 Apr 2013 21:45:35 +0000 (23:45 +0200)]
More find cleanup

11 years agoMore find cleanup
Felix Janda [Sat, 20 Apr 2013 15:25:41 +0000 (17:25 +0200)]
More find cleanup

11 years agoFix some comments from way back when toybox first started (in 2006), when I was still...
Rob Landley [Sun, 21 Apr 2013 17:15:59 +0000 (12:15 -0500)]
Fix some comments from way back when toybox first started (in 2006), when I was still cleaning busybox-isms out of my head...

11 years agostat cleanup
Felix Janda [Fri, 19 Apr 2013 22:18:17 +0000 (00:18 +0200)]
stat cleanup

11 years agostat: Reindent from 4 to 2 spaces
Felix Janda [Fri, 19 Apr 2013 19:29:36 +0000 (21:29 +0200)]
stat: Reindent from 4 to 2 spaces

11 years agoMore ifconfig cleanup.
Rob Landley [Sun, 21 Apr 2013 04:33:48 +0000 (23:33 -0500)]
More ifconfig cleanup.

11 years agoifconfig cleanup (Reorder functions to eliminate need for prototypes, put main at...
Rob Landley [Sat, 20 Apr 2013 18:43:55 +0000 (13:43 -0500)]
ifconfig cleanup (Reorder functions to eliminate need for prototypes, put main at end).

11 years agoCommit 818 simplified the license text in the source tarball, this gets the web copy.
Rob Landley [Sat, 20 Apr 2013 18:30:45 +0000 (13:30 -0500)]
Commit 818 simplified the license text in the source tarball, this gets the web copy.

11 years agofind: Improve operator processing
Felix Janda [Thu, 18 Apr 2013 20:37:09 +0000 (22:37 +0200)]
find: Improve operator processing

11 years agoAnother round of ifconfig cleanup.
Rob Landley [Sat, 20 Apr 2013 01:08:35 +0000 (20:08 -0500)]
Another round of ifconfig cleanup.

11 years agoAdd -f to chmod (just turns off -v).
Rob Landley [Wed, 17 Apr 2013 05:15:12 +0000 (00:15 -0500)]
Add -f to chmod (just turns off -v).

11 years agoMore ifconfig cleanup.
Rob Landley [Wed, 17 Apr 2013 04:49:47 +0000 (23:49 -0500)]
More ifconfig cleanup.

11 years agoFix the help commit I screwed up, and replace leading tabs with spaces.
Rob Landley [Wed, 17 Apr 2013 04:09:50 +0000 (23:09 -0500)]
Fix the help commit I screwed up, and replace leading tabs with spaces.

11 years agoMore ifconfig cleanup.
Rob Landley [Wed, 17 Apr 2013 04:01:22 +0000 (23:01 -0500)]
More ifconfig cleanup.

11 years agoIsaac Dunham's help string cleanup.
Rob Landley [Wed, 17 Apr 2013 03:55:14 +0000 (22:55 -0500)]
Isaac Dunham's help string cleanup.

11 years agoMake genconfig use CFLAGS because building against a libc that isn't installed on...
Rob Landley [Wed, 17 Apr 2013 03:45:47 +0000 (22:45 -0500)]
Make genconfig use CFLAGS because building against a libc that isn't installed on the host may need --static to run the results.

11 years agoAdd tests for find's expression parsing
Felix Janda [Sun, 14 Apr 2013 10:45:36 +0000 (12:45 +0200)]
Add tests for find's expression parsing

11 years agoMove guts of help command into show_help() in lib/help.c, with config TOYBOX_HELP...
Rob Landley [Mon, 15 Apr 2013 02:43:22 +0000 (21:43 -0500)]
Move guts of help command into show_help() in lib/help.c, with config TOYBOX_HELP controlling infrastructure.

11 years agoTweak help text.
Rob Landley [Sun, 14 Apr 2013 17:35:25 +0000 (12:35 -0500)]
Tweak help text.

11 years agoifconfig uses __caddr_t in one location; this is not guaranteed to work everywhere...
Isaac Dunham [Sun, 14 Apr 2013 07:58:12 +0000 (02:58 -0500)]
ifconfig uses __caddr_t in one location; this is not guaranteed to work everywhere. It does not compile OOB on musl, so I changed it to the portable equivalent, char *.  This compiles on musl, and should compile anywhere.

11 years agoConvert tabs to spaces.
Rob Landley [Sat, 13 Apr 2013 01:12:02 +0000 (20:12 -0500)]
Convert tabs to spaces.

11 years agoxzcat: more cleanup and some shrinking.
Isaac Dunham [Sat, 13 Apr 2013 01:08:47 +0000 (20:08 -0500)]
xzcat: more cleanup and some shrinking.

-drop __always_inline (c. 1.5k of binary size),
-remove the xz_dec_bcj_end and memzero macros
(memeq is left because of negative returns),
-disable XZ_DEC_SINGLE and XZ_DEC_PREALLOC, since we aren't using them.
(160 bytes)
-Merge xz_dec_lzma2_end into xz_dec_end
-Move xz_crc32 to where it's defined.
(That does not seem to be duplicated elsewhere in toybox.)

11 years agouuencode tweak: output a non-whitespace character for 0 in traditional mode.
Rob Landley [Fri, 12 Apr 2013 01:44:27 +0000 (20:44 -0500)]
uuencode tweak: output a non-whitespace character for 0 in traditional mode.

11 years agoMore ifconfig cleanup.
Rob Landley [Thu, 11 Apr 2013 22:32:01 +0000 (17:32 -0500)]
More ifconfig cleanup.

11 years agoMore xzcat cleanup.
Rob Landley [Thu, 11 Apr 2013 17:04:43 +0000 (12:04 -0500)]
More xzcat cleanup.

11 years agoMore of same.
Isaac Dunham [Thu, 11 Apr 2013 16:31:51 +0000 (11:31 -0500)]
More of same.
Actually, it's not quite the same:
-use crc_init(xz_crc32_table,1) -- I guessed on this one based on a match between magic constants, then tested it. First try was wrong, but this works.
(This is the sole difference in terms of actual _code_, as opposed to cleaning up defines and the like--here, it adds 48 bytes to final size if xzcat is the only toy, but drops 32 bytes if bzcat is also enabled...)
-Move some crc64 code to where the comments are. This puts them near the area where they're used.
-Remove some relics of separate files (we had half a dozen "this file is in the public domain" notices, a duplicate include, and used extern declarations for functions in the samefile)

11 years agoMore cleanup on find.
Rob Landley [Thu, 11 Apr 2013 03:30:02 +0000 (22:30 -0500)]
More cleanup on find.

11 years agoRedo find's indenting from tabs to two spaces.
Rob Landley [Thu, 11 Apr 2013 00:58:21 +0000 (19:58 -0500)]
Redo find's indenting from tabs to two spaces.

11 years agoPartial cleanup of find
Felix Janda [Wed, 10 Apr 2013 17:25:06 +0000 (19:25 +0200)]
Partial cleanup of find

- Remove unnecessary headers
- dump_node is not used anywhere
- exec_buf is unused
- Replace SUCCESS with 1 and simplify code accordingly
- a==0 -> !a
- Simplify an incremation pattern using pre-increments
- Add static keyword to functions
- Make error messages print to stderr

11 years agoSome xzcat cleanup by Isaac Dunham.
Rob Landley [Wed, 10 Apr 2013 06:48:24 +0000 (01:48 -0500)]
Some xzcat cleanup by Isaac Dunham.

11 years agoFix argument parsing so -- doesn't include itself in output.
Rob Landley [Sun, 7 Apr 2013 00:57:54 +0000 (19:57 -0500)]
Fix argument parsing so -- doesn't include itself in output.

11 years agoMore ifconfig cleanups, mostly removing unused code.
Rob Landley [Fri, 5 Apr 2013 05:35:05 +0000 (00:35 -0500)]
More ifconfig cleanups, mostly removing unused code.

11 years agoDrive-by cleanup on ifconfig.
Rob Landley [Fri, 5 Apr 2013 01:27:08 +0000 (20:27 -0500)]
Drive-by cleanup on ifconfig.

11 years agoAn ifconfig bugfix from the original submitter.
Rob Landley [Fri, 5 Apr 2013 00:39:44 +0000 (19:39 -0500)]
An ifconfig bugfix from the original submitter.