1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-06-09 19:26:28 +02:00
Commit Graph

3801 Commits

Author SHA1 Message Date
Jim Meyering a3c951764e (tsort): Fail if the input contains an odd number of tokens. 2003-04-24 13:48:54 +00:00
Jim Meyering 4c91ec1e02 add localedir.h 2003-04-24 09:09:23 +00:00
Jim Meyering 4247ffb57c (print_esc): Tweak spelling of new variable. 2003-04-21 18:02:00 +00:00
Jim Meyering 4bcefa6248 Fix printf POSIX compatibility bug reported by Ben Harris in
<http://mail.gnu.org/archive/html/bug-coreutils/2003-04/msg00070.html>.

* doc/coreutils.texi (printf invocation): It's \NNN in the format,
\0NNN in the %b operand.
* src/printf.c (usage): Likewise.
(print_esc): New arg OCTAL0 to specify whether \0NNN or \NNN
is desired.  All uses changed.  Behave like Bash printf if %b
operand uses \NNN where the initial N is not 0.
2003-04-21 17:59:21 +00:00
Jim Meyering 089e298e0c Remove uses of PROTOTYPE macro. 2003-04-17 07:36:24 +00:00
Jim Meyering be897d7f42 (is_empty_dir): Don't closedir (NULL). 2003-04-13 09:10:50 +00:00
Jim Meyering b62edfd3f9 Giving nl an invalid STYLE argument (in --header-numbering=STYLE (-h),
--body-numbering=STYLE (-b), or --footer-numbering=STYLE (-f)) or
FORMAT (--number-format=FORMAT (-n)) would not give a useful diagnostic.

(main): Fix those problems and remove literal quote marks
(e.g., "`%s'") from format string; instead use "%s" in each format
string and `quote (optarg)' as the corresponding argument.
Also, diagnose all invalid command line options before failing.
2003-04-12 19:51:36 +00:00
Jim Meyering d5fdbeda89 (proc_text): Fix a bug introduced on 2001-11-10,
for textutils-2.0.17, that would make nl output extra newlines
in some cases.
2003-04-12 18:44:53 +00:00
Jim Meyering d93d0c0ff4 Remove SPC in SPC-TAB sequence. 2003-04-11 12:46:24 +00:00
Jim Meyering 37bcb6853c Remove SPC in SPC-TAB sequence. 2003-04-11 12:44:41 +00:00
Jim Meyering 3cd987830d Remove SPC in SPC-TAB sequence. 2003-04-11 12:44:23 +00:00
Jim Meyering 0893227b13 Remove SPC in SPC-TAB sequence. 2003-04-11 12:42:39 +00:00
Jim Meyering 31df60a180 Remove SPC in SPC-TAB sequence. 2003-04-11 12:42:15 +00:00
Jim Meyering 930cda9304 Remove SPC in SPC-TAB sequence.
Remove trailing blanks.
filter though cppi
2003-04-11 12:41:44 +00:00
Jim Meyering e96ac732f5 Remove SPC in SPC-TAB sequence. 2003-04-11 12:39:58 +00:00
Jim Meyering 9f70372581 Remove SPC in SPC-TAB sequence. 2003-04-11 12:38:19 +00:00
Jim Meyering ab69f41a76 Remove SPC in SPC-TAB sequence. 2003-04-11 12:37:58 +00:00
Jim Meyering 3bd3492b1c Include <stdlib.h> unconditionally. 2003-04-11 12:36:31 +00:00
Jim Meyering 31af887efe duh 2003-04-11 11:49:23 +00:00
Jim Meyering 2033d5e885 Include error.h after system.h, not before. 2003-04-11 11:42:39 +00:00
Jim Meyering 6c93bdeeaa Remove anachronistic casts of xmalloc,
xrealloc, and xcalloc return values and of xrealloc's first argument.
2003-04-11 10:51:56 +00:00
Jim Meyering eaff43d5a8 include xalloc.h 2003-04-11 09:16:32 +00:00
Jim Meyering 912a810f6f do not cast xmalloc return value 2003-04-11 09:16:02 +00:00
Jim Meyering 179105b117 (wrapf): Declare with format attribute. 2003-04-10 21:41:03 +00:00
Jim Meyering 3d98688378 . 2003-04-10 19:33:03 +00:00
Jim Meyering f64c368593 (fs.h): New rule to generate fs.h from stat.c.
(BUILT_SOURCES): Add fs.h, now that it's generated.
(EXTRA_DIST): Add extract-magic.
2003-04-10 19:11:07 +00:00
Jim Meyering bac1785a6e add comment 2003-04-10 19:09:30 +00:00
Jim Meyering c1b5a21a84 (human_fstype) [__linux__]: Append each hex constant from
fs.h in a comment after the corresponding `case S_MAGIC_...:' statement.
2003-04-10 19:07:34 +00:00
Jim Meyering b6ac9a3aa5 now it's automatically generated 2003-04-10 19:06:22 +00:00
Jim Meyering d45d424ce1 New script to extract fs.h definitions from stat.c. 2003-04-10 19:05:43 +00:00
Jim Meyering 641cba7b3d (human_fstype): Handle Linux's devpts. 2003-04-10 18:06:56 +00:00
Jim Meyering 83aa79e26a (S_MAGIC_DEVPTS): New magic for Linux's devpts. 2003-04-10 18:06:23 +00:00
Jim Meyering f05ad08d19 (line_bytes_split): Arg is of type size_t, since
that's all that is supported for now.
(main): Check for overflow in obsolescent line count option.
2003-04-09 20:48:29 +00:00
Jim Meyering 78d8a32a1a (bytes_split): Use size_t temporary (rather than
uintmax_t original) in remaining computations.  From Paul Eggert.
2003-04-09 14:40:05 +00:00
Jim Meyering a69132e717 Handle command line option arguments larger than 2^31.
This allows e.g., splitting into files of size 2GB and larger,
and running split --lines=N with N=2^31 or more.
But for --line-bytes=N, the restriction that N <= SIZE_MAX
remains (for now), due to the way it is implemented.

Include "inttostr.h".
(bytes_split, lines_split, line_bytes_split, main):
Use uintmax_t, not size_t, for file sizes.
(main): Give a better diagnostic for option arguments == 0.
Use umaxtostr to print file sizes.
2003-04-09 14:37:47 +00:00
Jim Meyering 242dabb942 (lines_split): Rename local, nlines -> n_lines. 2003-04-09 13:25:48 +00:00
Jim Meyering 6c69e2f2cb (usage): Mention that --directory (-d) works only on some systems. 2003-04-08 12:53:53 +00:00
Jim Meyering ce5034feeb (main): Use STDIN_FILENO, not literal `0'. 2003-04-08 11:49:57 +00:00
Jim Meyering a7641fc8e8 (main): Rename local variable: s/accum/n_units/. 2003-04-08 09:50:50 +00:00
Jim Meyering 7eb9262da9 also change NCHARS, in comments, to N_BYTES 2003-04-08 09:39:08 +00:00
Jim Meyering 4752938d28 Rename local variables: nchars -> n_bytes. 2003-04-08 09:30:09 +00:00
Jim Meyering 8fd978c223 Add #include directives for Ultrix 4.4.
Based on a suggested change from Bert Deknuydt.
2003-04-07 18:11:39 +00:00
Jim Meyering 0622704dce . 2003-04-05 18:04:06 +00:00
Jim Meyering 4cfe78b8a0 *** empty log message *** 2003-04-05 18:03:47 +00:00
Jim Meyering ba2c242694 Make kill -t' output signal descriptions (not ?') on Tru64.
(sys_siglist): Also check for __sys_siglist.
2003-04-05 15:49:46 +00:00
Jim Meyering fed16f65ae (PERL): Remove unnecessary definition. 2003-04-04 21:54:30 +00:00
Jim Meyering fc6073d633 Because of inappropriate (but POSIX-mandated) behavior of rename,
`mv a b' would not remove `a' in some unusual cases.  Work around
this by unlinking `a' when necessary.

(same_file_ok): Add an output parameter.
Set it in the offending case.
(copy_internal): When necessary, unlink SRC_PATH and inform caller.
2003-04-04 21:53:27 +00:00
Jim Meyering 22ad36e73c Clean up rules for automatically generated sources:
(dircolors.h, wheel-size.h, wheel.h, false.c):
Make each generated file be read-only.
Add each file name to BUILT_SOURCES separately.
(MAINTAINERCLEANFILES): Set to $(BUILT_SOURCES).
2003-04-04 16:03:50 +00:00
Jim Meyering 82e0908b2c Put LOCALEDIR macro definition in new file: localedir.h.
(DEFS): Remove definition.
(localedir.h): New rule.
(BUILT_SOURCES, DISTCLEANFILES): Add localedir.h.
2003-04-04 15:50:05 +00:00
Jim Meyering c9f8890396 Include "localedir.h". 2003-04-04 15:49:48 +00:00