summaryrefslogtreecommitdiff
path: root/findutils/xargs.c
AgeCommit message (Collapse)Author
2006-08-03Remove xcalloc() and convert its callers to xzalloc(). About half of themRob Landley
were using "1" as one of the arguments anyway, and as for the rest a multiply and a push isn't noticeably bigger than pushing two arguments on the stack.
2006-08-03Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
2006-06-02- move #include busybox.h to the very top so we pull in the configBernhard Reutner-Fischer
and eventual platform specific includes in early.
2006-05-27- use the defines CURRENT_TTY and VC_1; also shrink xargs a tiny bit:Bernhard Reutner-Fischer
add/remove: 0/0 grow/shrink: 2/6 up/down: 5/-37 (-32) function old new delta static.add_interface 271 274 +3 static.glob3 36 38 +2 static.renice_main 409 408 -1 static.readcmd 1083 1081 -2 static.changepath 176 174 -2 static.parse_opts 56 51 -5 static.rx_main 1095 1088 -7 static.xargs_main 759 739 -20 ---------------------------------------------------------------- Result :-) -32
2006-01-30removed warning "comparison between signed and unsigned". Added ↵"Vladimir N. Oleynik"
ATTRIBUTE_UNUSED. My whitespace
2005-09-051) bb_opt_complementaly -> bb_opt_complementally"Vladimir N. Oleynik"
2) better support long options 3) new flag '!' for bb_opt_complementally: produce bb_show_usage() if BB_GETOPT_ERROR internally
2004-04-14Larry Doolittle writes:Eric Andersen
This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry
2004-03-15Remove trailing whitespace. Update copyright to include 2004.Eric Andersen
2003-10-31Try to make indent formatting less horribleEric Andersen
2003-10-30Add a comment with link to the SUSv3 standard for xargsGlenn L McGrath
2003-10-30run through indentGlenn L McGrath
2003-10-10Vods versions of xargsGlenn L McGrath
2003-10-09Bugfix for xargsGlenn L McGrath
2003-10-04Add the x, n, s and E options, remove -r as its expected behaviour.Glenn L McGrath
2003-10-03Dont mix xarg options with utility option, fixes example ofGlenn L McGrath
`echo "README" | xargs ls -al` Dont specify a path for the default behaviour of echo args allocated space for an extra ptr Use defines for the different options
2003-06-20last_patch89 from vodz:Eric Andersen
Manuel, I rewrite bb_getopt_ulflags() function for more universal usage. My version support now: - options with arguments (optional arg as GNU extension also) - complementaly and/or incomplementaly and/or incongruously and/or list options - long_opt (all applets may have long option, add supporting is trivial) This realisation full compatibile from your version. Code size grow 480 bytes, but only coreutils/* over compensate this size after using new function. Last patch reduced over 800 bytes and not full applied to all. "mkdir" and "mv" applets have long_opt now for demonstrate trivial addition support long_opt with usage new bb_getopt_ulflags(). Complementaly and/or incomplementaly and/or incongruously and/or list options logic is not trivial, but new "cut" and "grep" applets using this logic for examples with full demostrating. New "grep" applet reduced over 300 bytes. Mark, Also. I removed bug from "grep" applet. $ echo a b | busybox grep -e a b a b a b But right is printing one only. --w vodz
2003-03-19Major coreutils update.Manuel Novoa III
2002-11-10Rewrite of xargs by Vladimir N. OleynikGlenn L McGrath
2002-09-16last_patch55 from vodz:Eric Andersen
I found overflow problem in xargs applet (allocated not space for trailing '\0'). Last patch also reduce 22 bytes size. ;)
2002-08-03Fixed a bug in xarg: string data was strcat'ed to a malloc'ed buffer - andRobert Griebl
malloc does not clear memory by default (somehow this worked on x86, but not on arm)
2001-11-19Call xmalloc before reallocEric Andersen
2001-10-24Major rework of the directory structure and the entire build system.Eric Andersen
-Erik
2001-03-23xstrdup xargs cleanup from Jeff GarzikEric Andersen
2001-02-20It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen
header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik
2001-02-01Fix wget error message and add (and use) chomp library function.Matt Kraai
2001-01-27Fix up copyright msgs. Bump version to 0.49 in preparation for0_49Eric Andersen
a release. Update the website with release details. -Erik
2001-01-04Changed email address to codepoet.org, updated list of applets / docs IMark Whitley
maintain in AUTHORS.
2000-12-22Use busybox error handling functions wherever possible.Matt Kraai
2000-11-14Brand new version of xargs. Tested thoroughly by Kent Robotti. (Domo arigato,Mark Whitley
Mr. Robotti...) Closes bug #1065.
2000-09-26Yet more polish (thanks again to kent robotti for the bug reports).Eric Andersen
-Erik
2000-09-25Some more polish to make xargs act like GNU xargs (thanks to kent robottiEric Andersen
<robotti@metconnect.com> for testing and pointing out the differences) -Erik
2000-09-25Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen
-Erik
2000-09-25Final (I think) version of xargs. Throw away all that tedious stringEric Andersen
scrubbing, and quit using system. Instead, use fork() and exec(), which yields and smaller, simpler, and cleaner design. -Erik
2000-09-25Be ever so pedantic about escaping chars that the shell might not like...Eric Andersen
2000-09-24Fix up xargs so that things like 'cat cat.c | xargs echo' willEric Andersen
work properly. -Erik
2000-09-24Fix xargs option parsingEric Andersen
2000-09-23Fix memory problems, and make behavior correct.Eric Andersen
2000-09-23rewrite, so it should be firly clean nowEric Andersen
2000-09-22Use minix xargs instead, and update docs accordinglyEric Andersen
-Erik
2000-09-22Comment on xargs choice.Eric Andersen
2000-09-22Add in xargsEric Andersen