Paul Eggert
df066e2695
(dd_LDADD, shred_LDADD): Add $(LIB_GETHRXTIME).
...
(nanosec_libs): Add $(LIB_XNANOSLEEP). Needed for newer GNU/Linux
hosts with clock_gettime.
2005-02-22 07:10:07 +00:00
Paul Eggert
7244117ba2
Regenerate.
2005-02-21 08:26:21 +00:00
Paul Eggert
3178b01865
(time): Remove obsolete decl.
...
(main): Gettime now returns void.
2005-02-21 08:17:00 +00:00
Paul Eggert
2ec39c3ada
Include gethrxtime.h.
...
(isaac_seed): Use gethrxtime rather than a mishmash.
2005-02-21 08:15:45 +00:00
Paul Eggert
70c98ff92d
(time): Remove obsolete decl.
...
(get_current_time): gettimeofday always returns 0, so don't
check its result.
2005-02-21 08:15:10 +00:00
Paul Eggert
c339d6843e
Include gethrxtime.h, xtime.h.
...
(start_time): Now of type xtime_t, not struct timespec.
(print_stats, main): Use gethrxtime rather than gettime.
2005-02-21 08:14:40 +00:00
Paul Eggert
1b29344371
(main): gettime now returns void.
2005-02-21 08:14:13 +00:00
Paul Eggert
7fd8ef9cc1
(dd_LDADD, shred_LDADD, nanosec_libs):
...
Remove $(LIB_CLOCK_GETTIME). These functions now use
gethrxtime instead.
2005-02-21 08:13:12 +00:00
Paul Eggert
e0cc736489
(enum RCH_status): Remove trailing comma,
...
as it's not valid in standard C89.
2005-02-21 06:57:45 +00:00
Jim Meyering
384e3830bc
.
2005-02-17 20:28:22 +00:00
Jim Meyering
4e49c3974f
regenerate
2005-02-15 12:29:22 +00:00
Jim Meyering
3695d0212a
(human_fstype): Add case/definition for S_MAGIC_JFS
...
so that file systems of type `jfs' are recognized as such.
2005-02-15 12:23:40 +00:00
Jim Meyering
b353489b18
regen for XFS
2005-02-15 09:01:34 +00:00
Jim Meyering
9fea5777f3
(human_fstype): Add case/definition for S_MAGIC_XFS
...
so that file systems of type `xfs' are recognized as such.
2005-02-15 08:57:59 +00:00
Jim Meyering
83f00235d7
(NZERO) [NZERO == 0]: Undefine and define to 20,
...
to work around the invalid definition from Darwin 7.7.0.
2005-02-15 08:20:49 +00:00
Paul Eggert
47a3ba5c45
(mergefps): Use binary search rather than linear one
...
when comparing new line to lines already in main memory.
2005-02-14 18:04:22 +00:00
Jim Meyering
017b3436b8
.
2005-02-13 08:15:24 +00:00
Jim Meyering
4738975f66
.
2005-02-09 09:58:07 +00:00
Jim Meyering
045fbb6d7c
* src/copy.c (valid_options): Add an assertion that
...
not both hard_link and symbolic_link are set.
2005-02-09 09:01:44 +00:00
Paul Eggert
058d7358ed
(STATFS_FRSIZE): New macro.
...
(print_statfs): Use it to implement %S.
(do_statfs): Change default formats to include %S.
(usage): Document %S (versus %s).
2005-02-08 21:38:53 +00:00
Paul Eggert
9440e98dd4
(usage): Normalize terminology, capitalization, and sort order to
...
match manual. Say that %s is the "Fundamental block size", since that
is what POSIX says.
2005-02-08 20:45:03 +00:00
Paul Eggert
2b9a84b4dc
Include "memrchr.h".
...
(memrchr) [!HAVE_DECL_MEMRCHR]: Remove decl.
2005-02-03 21:34:34 +00:00
Jim Meyering
708cc3e146
(elide_tail_bytes_pipe): Correct wording in diagnostic.
2005-01-30 17:57:24 +00:00
Jim Meyering
f63d36ff61
Remove unnecessary parentheses in #if directives.
2005-01-30 14:58:11 +00:00
Jim Meyering
9c3cb2ad2e
[VSWTCH]: Some systems, like Cygwin, use VSWTC
...
instead of VSWTCH, for use with CSWTCH.
2005-01-30 14:50:22 +00:00
Jim Meyering
a13d89b58f
.
2005-01-29 14:45:17 +00:00
Jim Meyering
1f1da5a429
.
2005-01-29 00:21:24 +00:00
Paul Eggert
14c329a60c
Regenerate.
2005-01-25 00:51:05 +00:00
Paul Eggert
1d2ff68204
(usage): Add comma after "-P" to fix typo in previous patch.
2005-01-25 00:41:36 +00:00
Jim Meyering
570fe7948b
Use S_BLKSIZE value for ST_NBLOCKSIZE where available.
2005-01-24 08:27:15 +00:00
Jim Meyering
b46e3e42eb
(all_programs.list): Strip $(EXEEXT) and remove duplicates.
2005-01-24 08:22:06 +00:00
Jim Meyering
c8b7f2bb9c
(usage): Merge the descriptions of --no-dereference and -P.
2005-01-24 08:10:53 +00:00
Jim Meyering
e824a871b4
.
2005-01-20 22:57:36 +00:00
Jim Meyering
c994637901
.
2005-01-15 21:34:18 +00:00
Jim Meyering
6d003dd014
(isaac_seed) [HAVE_GETHRTIME]: #if-0 this block,
...
because just calling gethrtime evokes an `illegal instruction'
failure when compiled with Sun's c89 on Solaris 8 and 9.
2005-01-15 17:19:47 +00:00
Jim Meyering
6d638576d4
(isaac_seed) [HAVE_GETHRTIME]: Don't call ISAAC_SEED
...
twice with the same value of `t'.
Replace nested #if-#else blocks with #if-#elif-#elif chain.
2005-01-15 17:13:03 +00:00
Jim Meyering
85d111b3be
The test, tests/tail/f-1, failed on powerpc-apple-darwin7.7.0.
...
(IS_TAILABLE_FILE_TYPE): Adjust definition also to include
sockets, since that's what you get when reading from a command-line-
supplied pipe on Darwin 7.7.
(IS_PIPE_LIKE_FILE_TYPE): Define.
(main): Use new IS_PIPE_LIKE_FILE_TYPE rather than simply S_ISFIFO.
This same change is also required on NetBSD/sparc-1.5.
Reported by Adrian Bunk.
2005-01-14 16:30:15 +00:00
Jim Meyering
7eff5901c4
(toarith): Rewrite to detect/diagnose integer overflow,
...
rather than suffering silently.
Before, expr would silently overflow and wrap around:
$ expr 9223372036854775808 = 0 # $(echo 2^63|bc)
1
Now it detects the problem and exits nonzero:
$ ./expr $(echo 2^63|bc) = 0
./expr: 9223372036854775808: integer is too large
2005-01-14 14:15:25 +00:00
Jim Meyering
24158efbdf
(is_int): Don't overflow when evaluating integer constants.
...
Before, ./test $(echo 2^64|bc) -eq 0 && echo FAIL would print `FAIL'.
2005-01-13 23:27:34 +00:00
Jim Meyering
6c639064c0
.
2005-01-11 21:40:36 +00:00
Jim Meyering
c8756077c3
(main): Check for overflow in tabstop values
...
specified via the obsolete form. E.g., now this command fails:
_POSIX2_VERSION=1 ./expand -$(echo '2^64+1'|bc)
Before it would act like `_POSIX2_VERSION=1 ./expand -1'.
2005-01-11 16:54:02 +00:00
Jim Meyering
c2fed1cc19
(main): Check for overflow in tabstop values
...
specified via the obsolete form. E.g., now this command fails:
_POSIX2_VERSION=1 ./unexpand -$(echo '2^64+1'|bc)
Before it would act like `_POSIX2_VERSION=1 ./unexpand -1'.
2005-01-11 16:53:24 +00:00
Jim Meyering
1377220ccf
(add_tab_stop): Properly diagnose a tabstop list with decreasing values.
2005-01-11 16:52:47 +00:00
Jim Meyering
d2360a394b
(check-README, check-AUTHORS): Account for $(EXEEXT).
2005-01-11 16:50:27 +00:00
Paul Eggert
f0f5a2708a
Update copyright date.
2005-01-10 18:11:57 +00:00
Paul Eggert
b4e248dea9
(PORTABILITY_OPTION): New constant.
...
(longopts, usage, main, validate_file_name):
Add support for new -P option.
Reject empty file names (unless -p is not specified and the
current system allows empty file names).
Change --portability so that is now equivalent to -p -P.
Don't test whether file name is too long, if it is known to exist.
(no_leading_hyphen): New function.
2005-01-10 18:09:02 +00:00
Jim Meyering
91fefc7f0d
pr --columns=N' was not equivalent to pr -N' when also using
...
either -s or -w.
(main): Set `explicit_columns' for --columns=N,
not just for -N. This bug has existed since the introduction
of the --columns=N option on 1998-08-15.
2005-01-08 12:01:40 +00:00
Jim Meyering
aa7f16bda6
(main): Check for column count overflow with usages like "pr -2147483648".
2005-01-08 12:00:54 +00:00
Jim Meyering
7536049fb0
(init_fps): Use xnmalloc, rather than xmalloc.
2005-01-07 17:16:50 +00:00
Jim Meyering
0262163b13
(process_file): Evaluate exclusion rules against
...
the entire file name, not just the last component.
2005-01-05 07:47:45 +00:00