aboutsummaryrefslogtreecommitdiff
path: root/findutils
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-06-02 20:56:16 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-06-02 20:56:16 +0000
commite15d7573a1263fb364d1678c3a46be47a8b5e5ea (patch)
tree09e7b482b38ac571a01e936fb91df16dd1eeef42 /findutils
parentecae66ac16338d8cddb55e1782ebd8c5f670ff53 (diff)
downloadbusybox-w32-e15d7573a1263fb364d1678c3a46be47a8b5e5ea.tar.gz
busybox-w32-e15d7573a1263fb364d1678c3a46be47a8b5e5ea.tar.bz2
busybox-w32-e15d7573a1263fb364d1678c3a46be47a8b5e5ea.zip
- move #include busybox.h to the very top so we pull in the config
and eventual platform specific includes in early.
Diffstat (limited to 'findutils')
-rw-r--r--findutils/find.c17
-rw-r--r--findutils/grep.c2
-rw-r--r--findutils/xargs.c17
3 files changed, 6 insertions, 30 deletions
diff --git a/findutils/find.c b/findutils/find.c
index 17a1a5656..f8bcccaf5 100644
--- a/findutils/find.c
+++ b/findutils/find.c
@@ -7,22 +7,10 @@
7 * Reworked by David Douthitt <n9ubh@callsign.net> and 7 * Reworked by David Douthitt <n9ubh@callsign.net> and
8 * Matt Kraai <kraai@alumni.carnegiemellon.edu>. 8 * Matt Kraai <kraai@alumni.carnegiemellon.edu>.
9 * 9 *
10 * This program is free software; you can redistribute it and/or modify 10 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 *
24 */ 11 */
25 12
13#include "busybox.h"
26#include <stdio.h> 14#include <stdio.h>
27#include <unistd.h> 15#include <unistd.h>
28#include <dirent.h> 16#include <dirent.h>
@@ -31,7 +19,6 @@
31#include <fnmatch.h> 19#include <fnmatch.h>
32#include <time.h> 20#include <time.h>
33#include <ctype.h> 21#include <ctype.h>
34#include "busybox.h"
35 22
36//XXX just found out about libbb/messages.c . maybe move stuff there ? - ghoz 23//XXX just found out about libbb/messages.c . maybe move stuff there ? - ghoz
37static const char msg_req_arg[] = "option `%s' requires an argument"; 24static const char msg_req_arg[] = "option `%s' requires an argument";
diff --git a/findutils/grep.c b/findutils/grep.c
index fac296941..a24be248b 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -16,12 +16,12 @@
16 * precompiled regex 16 * precompiled regex
17*/ 17*/
18 18
19#include "busybox.h"
19#include <stdio.h> 20#include <stdio.h>
20#include <stdlib.h> 21#include <stdlib.h>
21#include <getopt.h> 22#include <getopt.h>
22#include <string.h> 23#include <string.h>
23#include <errno.h> 24#include <errno.h>
24#include "busybox.h"
25#include "xregex.h" 25#include "xregex.h"
26 26
27 27
diff --git a/findutils/xargs.c b/findutils/xargs.c
index ec6d99cac..c3a892695 100644
--- a/findutils/xargs.c
+++ b/findutils/xargs.c
@@ -1,3 +1,4 @@
1/* vi: set sw=4 ts=4: */
1/* 2/*
2 * Mini xargs implementation for busybox 3 * Mini xargs implementation for busybox
3 * Options are supported: "-prtx -n max_arg -s max_chars -e[ouf_str]" 4 * Options are supported: "-prtx -n max_arg -s max_chars -e[ouf_str]"
@@ -9,25 +10,14 @@
9 * - Mike Rendell <michael@cs.mun.ca> 10 * - Mike Rendell <michael@cs.mun.ca>
10 * and David MacKenzie <djm@gnu.ai.mit.edu>. 11 * and David MacKenzie <djm@gnu.ai.mit.edu>.
11 * 12 *
12 * This program is free software; you can redistribute it and/or modify 13 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 * 14 *
26 * xargs is described in the Single Unix Specification v3 at 15 * xargs is described in the Single Unix Specification v3 at
27 * http://www.opengroup.org/onlinepubs/007904975/utilities/xargs.html 16 * http://www.opengroup.org/onlinepubs/007904975/utilities/xargs.html
28 * 17 *
29 */ 18 */
30 19
20#include "busybox.h"
31#include <stdio.h> 21#include <stdio.h>
32#include <stdlib.h> 22#include <stdlib.h>
33#include <string.h> 23#include <string.h>
@@ -37,7 +27,6 @@
37#include <fcntl.h> 27#include <fcntl.h>
38#include <sys/types.h> 28#include <sys/types.h>
39#include <sys/wait.h> 29#include <sys/wait.h>
40#include "busybox.h"
41 30
42/* COMPAT: SYSV version defaults size (and has a max value of) to 470. 31/* COMPAT: SYSV version defaults size (and has a max value of) to 470.
43 We try to make it as large as possible. */ 32 We try to make it as large as possible. */