diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-30 01:30:39 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-30 01:30:39 +0000 |
commit | 9fc36919f9e590f05a4bc0963b6eb581db5b5d57 (patch) | |
tree | 7a894633a6e3e0fd48f32f6fc1eb9596b01477ee /coreutils/head.c | |
parent | 0757b333c6e950da7ca765ffd47249c5c654f7b8 (diff) | |
download | busybox-w32-9fc36919f9e590f05a4bc0963b6eb581db5b5d57.tar.gz busybox-w32-9fc36919f9e590f05a4bc0963b6eb581db5b5d57.tar.bz2 busybox-w32-9fc36919f9e590f05a4bc0963b6eb581db5b5d57.zip |
Move SUSv2 obsolete feature disabling to debug menu, invert meaning of
symbol (switched on to remove now: test your apps to make sure they _don't_
do this, because as some point we should just yank it), fixup head/tail/fold.
Also tweak "make allyesconfig" so anything starting with CONFIG_DEBUG gets
left switched off. Possibly other things we want to put in the debug menu?
git-svn-id: svn://busybox.net/trunk/busybox@13692 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/head.c')
-rw-r--r-- | coreutils/head.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/coreutils/head.c b/coreutils/head.c index eb0dcf212..17d3ef890 100644 --- a/coreutils/head.c +++ b/coreutils/head.c | |||
@@ -4,20 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (C) 2003 Manuel Novoa III <mjn3@codepoet.org> | 5 | * Copyright (C) 2003 Manuel Novoa III <mjn3@codepoet.org> |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify | 7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
15 | * General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program; if not, write to the Free Software | ||
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
20 | * | ||
21 | */ | 8 | */ |
22 | 9 | ||
23 | /* BB_AUDIT SUSv3 compliant */ | 10 | /* BB_AUDIT SUSv3 compliant */ |
@@ -56,7 +43,7 @@ int head_main(int argc, char **argv) | |||
56 | int c; | 43 | int c; |
57 | int retval = EXIT_SUCCESS; | 44 | int retval = EXIT_SUCCESS; |
58 | 45 | ||
59 | #if defined CONFIG_FEATURE_SUSv2 || ENABLE_FEATURE_FANCY_HEAD | 46 | #if !ENABLE_DEBUG_YANK_SUSv2 || ENABLE_FEATURE_FANCY_HEAD |
60 | /* Allow legacy syntax of an initial numeric option without -n. */ | 47 | /* Allow legacy syntax of an initial numeric option without -n. */ |
61 | if ((argc > 1) && (argv[1][0] == '-') | 48 | if ((argc > 1) && (argv[1][0] == '-') |
62 | /* && (isdigit)(argv[1][1]) */ | 49 | /* && (isdigit)(argv[1][1]) */ |
@@ -85,7 +72,7 @@ int head_main(int argc, char **argv) | |||
85 | #endif | 72 | #endif |
86 | case 'n': | 73 | case 'n': |
87 | p = optarg; | 74 | p = optarg; |
88 | #if defined CONFIG_FEATURE_SUSv2 || ENABLE_FEATURE_FANCY_HEAD | 75 | #if !ENABLE_DEBUG_YANK_SUSv2 || ENABLE_FEATURE_FANCY_HEAD |
89 | GET_COUNT: | 76 | GET_COUNT: |
90 | #endif | 77 | #endif |
91 | count = bb_xgetularg10(p); | 78 | count = bb_xgetularg10(p); |