diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-14 10:09:57 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-14 10:09:57 +0000 |
commit | f5294e1f4c56afb377ada95a7757b28ad3c89086 (patch) | |
tree | 95a0c3632c8c2b20fa6b60f1e1a33e4fc4b24d4f /findutils | |
parent | 16abcd90aefae8bdb9f7d80a555982dba6ca59b5 (diff) | |
download | busybox-w32-f5294e1f4c56afb377ada95a7757b28ad3c89086.tar.gz busybox-w32-f5294e1f4c56afb377ada95a7757b28ad3c89086.tar.bz2 busybox-w32-f5294e1f4c56afb377ada95a7757b28ad3c89086.zip |
hush: use NOFORK applets as appropriate. Net reduction of code size.
Diffstat (limited to 'findutils')
-rw-r--r-- | findutils/xargs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/findutils/xargs.c b/findutils/xargs.c index a430e5f3d..b90f44ca4 100644 --- a/findutils/xargs.c +++ b/findutils/xargs.c | |||
@@ -176,7 +176,7 @@ set: | |||
176 | } | 176 | } |
177 | if (!eof_str_detected) { | 177 | if (!eof_str_detected) { |
178 | size_t length = (p - buf); | 178 | size_t length = (p - buf); |
179 | 179 | // TODO: smarter llist_t | |
180 | cur = xzalloc(sizeof(xlist_t) + length); | 180 | cur = xzalloc(sizeof(xlist_t) + length); |
181 | cur->data = memcpy(cur + 1, s, length); | 181 | cur->data = memcpy(cur + 1, s, length); |
182 | cur->length = length; | 182 | cur->length = length; |
@@ -247,6 +247,7 @@ static xlist_t *process_stdin(xlist_t *list_arg, | |||
247 | size_t length = (p - buf); | 247 | size_t length = (p - buf); |
248 | 248 | ||
249 | cur = xzalloc(sizeof(xlist_t) + length); | 249 | cur = xzalloc(sizeof(xlist_t) + length); |
250 | // TODO: smarter llist_t | ||
250 | cur->data = memcpy(cur + 1, s, length); | 251 | cur->data = memcpy(cur + 1, s, length); |
251 | cur->length = length; | 252 | cur->length = length; |
252 | /*cur->link = NULL;*/ | 253 | /*cur->link = NULL;*/ |
@@ -329,6 +330,7 @@ static xlist_t *process0_stdin(xlist_t *list_arg, | |||
329 | size_t length = (p - buf); | 330 | size_t length = (p - buf); |
330 | 331 | ||
331 | cur = xzalloc(sizeof(xlist_t) + length); | 332 | cur = xzalloc(sizeof(xlist_t) + length); |
333 | // TODO: smarter llist_t | ||
332 | cur->data = memcpy(cur + 1, s, length); | 334 | cur->data = memcpy(cur + 1, s, length); |
333 | cur->length = length; | 335 | cur->length = length; |
334 | /*cur->link = NULL;*/ | 336 | /*cur->link = NULL;*/ |