Commit Graph
3693 Commits
Author SHA1 Message Date
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
Jim Meyering bd10536e76 . 2003-04-02 21:09:04 +00:00
Jim Meyering 8c14c2f53f . 2003-04-02 10:20:58 +00:00
Jim Meyering 206427cd38 (false.c): Change all occurrences of (EXIT_SUCCESS)' to (EXIT_FAILURE)'.
Reported by Paul Jarc,
2003-04-02 07:21:40 +00:00
Jim Meyering bb726ef20b (is_empty_dir): Don't let a failing closedir
clobber errno.  Spotted by Arnold Robbins.
2003-03-30 15:02:55 +00:00
Jim Meyering 2ec96a5e83 Fix typo in comment. 2003-03-30 12:11:50 +00:00
Jim Meyering 7c740a55c6 Remove Arnold Robbins' obsolete e-mail address
from `written by...' comment, at his request.
2003-03-27 22:40:37 +00:00
Jim Meyering cb392d1022 Fix buffer overrun problem reported by TAKAI Kousuke, along
with some other POSIX incompatibilities.

(print_esc): Do not treat \x specially if
POSIXLY_CORRECT.  Avoid buffer overrun if the format ends
in backslash.  Treat incomplete escape sequences as strings
of characters, as POSIX requires.
(print_formatted): Allow multiple flags.  Avoid buffer overrun
if the format is incomplete.
2003-03-27 14:59:26 +00:00
Jim Meyering dd12de8477 . 2003-03-27 09:08:37 +00:00