Commit Graph
15278 Commits
Author SHA1 Message Date
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 6d73fdb3ef *** empty log message *** 2003-04-10 19:09:43 +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 322b0d2280 *** empty log message *** 2003-04-10 18:07:00 +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 97cab1d39b *** empty log message *** 2003-04-10 17:03:30 +00:00
Jim Meyering 31c3844239 (canonicalize_file_name): NUL-terminate the result. 2003-04-10 17:03:26 +00:00
Jim Meyering e02387ea57 (canonicalize_file_name): Always free `extra_buf' before returning. 2003-04-10 16:54:19 +00:00
Jim Meyering ef6c004648 (canonicalize_file_name): Return NULL immediately if resolvepath fails.
Otherwise, `readlink --canonical /no-such-file' would exhaust
virtual memory on some systems (e.g. Solaris).
2003-04-10 16:47:35 +00:00
Jim Meyering 6a5f07163f *** empty log message *** 2003-04-10 16:41:17 +00:00
Jim Meyering 7f3e23a189 (readlink invocation): Tweak description a little. 2003-04-10 16:41:14 +00:00
Jim Meyering 357066c663 *** empty log message *** 2003-04-10 15:57:56 +00:00
Jim Meyering 1b2123bba3 (canonicalize_file_name): Remove stray semicolon
that caused `readlink --canonical RELATIVE_NAME' to fail on e.g.,
Solaris systems.
2003-04-10 15:57:45 +00:00
Jim Meyering 9419ec8854 *** empty log message *** 2003-04-10 15:57:31 +00:00
Jim Meyering ab828ae6a1 Skip this test (don't fail) if creating a file with nominal length > 4GB fails. 2003-04-10 08:36:41 +00:00
Jim Meyering d4fa961a32 *** empty log message *** 2003-04-10 07:15:51 +00:00
Jim Meyering 56dada99d4 Add `SEE ALSO' reference to unexpand. 2003-04-10 07:15:38 +00:00
Jim Meyering 33a6eab7e6 Add `SEE ALSO' reference to expand. 2003-04-10 07:15:29 +00:00
Jim Meyering 160c7ab28e Make sure that a huge obsolete option evokes the right failure. 2003-04-09 20:55:17 +00:00
Jim Meyering 25b57f0014 *** empty log message *** 2003-04-09 20:54:56 +00:00
Jim Meyering 435c2829f8 *** empty log message *** 2003-04-09 20:48:54 +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 c3e1712629 Ensure that split --lines=N and --bytes=N work for N=2^32.
Currently (coreutils-5.0.1) split --line-bytes=M fails
with `invalid number of bytes' for M=2^32 or larger.  Test it.
2003-04-09 14:57:32 +00:00
Jim Meyering 934c4134ce *** empty log message *** 2003-04-09 14:45:12 +00:00
Jim Meyering 519a36594e *** empty log message *** 2003-04-09 14:43:33 +00:00
Jim Meyering c04eed33c4 *** empty log message *** 2003-04-09 14:40:10 +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 4bd5187248 tweak white-space to make backslashes line up 2003-04-09 13:38:39 +00:00
Jim Meyering 242dabb942 (lines_split): Rename local, nlines -> n_lines. 2003-04-09 13:25:48 +00:00
Jim Meyering 60334e21a8 also check obsolete option -0 2003-04-09 12:21:13 +00:00
Jim Meyering 40989ab484 *** empty log message *** 2003-04-08 12:53:58 +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 587d16d350 *** empty log message *** 2003-04-08 12:53:26 +00:00
Jim Meyering b5de6ff485 *** empty log message *** 2003-04-08 11:50:23 +00:00
Jim Meyering ce5034feeb (main): Use STDIN_FILENO, not literal `0'. 2003-04-08 11:49:57 +00:00
Jim Meyering 3ca2ab6ef4 *** empty log message *** 2003-04-08 11:46:05 +00:00
Jim Meyering 2869e1b2ff (TESTS): Add split-fail. 2003-04-08 11:45:58 +00:00
Jim Meyering 08f905aca2 *** empty log message *** 2003-04-08 11:45:44 +00:00
Jim Meyering c54ba76168 Run $PERL to see if it is available, rather than testing its value. 2003-04-08 10:55:01 +00:00
Jim Meyering 5d425f8eed . 2003-04-08 10:54:09 +00:00
Jim Meyering 3ae1676b87 *** empty log message *** 2003-04-08 10:14:19 +00:00
Jim Meyering e2f9e5953d *** empty log message *** 2003-04-08 09:51:57 +00:00
Jim Meyering 436b00ec6b *** empty log message *** 2003-04-08 09:51:17 +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