Commit Graph
3661 Commits
Author SHA1 Message Date
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
Jim Meyering 2cd4a7d3cd (struct cp_options): Add a comment. 2003-03-26 18:47:49 +00:00
Jim Meyering 92b524013b D'oh. 2003-03-22 22:32:12 +00:00
Jim Meyering 1bf7ea8fd1 Don't include <sys/sysmacros.h>.
That is already done via system.h.  Otherwise, the multiple
inclusion would evoke redefinition warnings from Cray's /bin/cc
(Cray Standard C Version 4.0.3  (057126) Mar 22 2003  22:02:28).
(human_fstype): Factor some directives `up', out of this function.
Cast away `const' to avoid error from Cray's /bin/cc.
2003-03-22 21:32:22 +00:00
Jim Meyering 0568c4e2d4 (valid_format): Also accept ' and '' as valid
format flag characters.
Do not require that a field width be specified.
Do not fail when given a field width of `0'.
2003-03-20 13:49:39 +00:00
Jim Meyering 991e476b56 . 2003-03-20 10:11:45 +00:00
Jim Meyering bb6e39dc48 (all-local): Append $(EXEEXT) to use of `su'
(install-root): Likewise.
(install-exec-local): Likewise.
2003-03-19 23:17:12 +00:00
Jim Meyering 1564be8f74 . 2003-03-19 09:10:07 +00:00
Jim Meyering ba84092326 [struct Word] (paren, period, punct, final): Change the
type of each member from bool <MEMBER>:1 to unsigned int <MEMBER>:1.
AIX 5.1's xlc could not compile the former.
2003-03-18 08:43:57 +00:00
Jim Meyering 5151ce79b2 (rm): Put two local variables in static storage,
so they can't be clobbered by the potential longjmp.
2003-03-16 10:16:14 +00:00
Jim Meyering a32544a77f . 2003-03-15 10:41:10 +00:00
Jim Meyering b9fa45f2b0 remove ansi2knr junk 2003-03-14 20:23:12 +00:00
Jim Meyering f406bff3f9 . 2003-03-14 20:10:15 +00:00
Jim Meyering 52ebb61da8 . 2003-03-14 13:54:36 +00:00
Jim Meyering f69ed27d62 . 2003-03-14 13:16:21 +00:00
Jim Meyering 2506805702 . 2003-03-12 23:14:15 +00:00
Jim Meyering a988982b19 (longopts): Don't hard-code `2' here.
Instead, just specify `&verbose', and ...
(main): ... remove the `case 2:' block for --verbose.
2003-03-11 20:48:36 +00:00
Jim Meyering 257b85ca8e Don't segfault for a negative field width or precision in format string.
(UNSPECIFIED): Define.
(print_direc): Use the special value, UNSPECIFIED, to indicate
that field_width or precision has not been specified.
(print_formatted): Fail if field_width or precision is the
special value, UNSPECIFIED.
2003-03-11 20:25:18 +00:00
Jim Meyering b44a6e8565 (INT_MIN): Define, if necessary. 2003-03-10 10:41:24 +00:00
Jim Meyering 79cb935030 fix typo in comment 2003-03-09 07:56:29 +00:00
Jim Meyering 25697ff274 (AD_stack_pop): Cast sizeof... to int before changing its sign.
This avoids a warning from gcc on 64-bit systems.
(pop_dir): Reverse order of sign change and cast, to be consistent
with the above.
2003-03-09 07:14:19 +00:00
Jim Meyering 34a6d6e2dd Before, when using shred on a device, one had to specify --exact,
or be careful to choose a size that would not be rounded up and
exceed the maximum value;  that could result in a failure of
the final write.

(do_wipefd): --exact is now the default for non-regular
files.  Suggestion from Ben Elliston.
(usage): Say it.
2003-03-08 16:57:55 +00:00
Jim Meyering 3e9e352991 Remove now-unused #include and #define directives. 2003-03-08 14:30:28 +00:00
Jim Meyering 79065539dd (check-misc): Check for use of `defined' in #define directives.
Change to $(srcdir) before running grep.
2003-03-08 14:30:14 +00:00
Jim Meyering 9d7d671604 . 2003-03-08 10:27:19 +00:00
Jim Meyering 66bada849b (process_file): If a file's size is not being counted
e.g., because it's a hard link to a file we've already counted,
then don't print a line for it.
2003-03-08 10:21:19 +00:00
Jim Meyering 6c1a78b5d6 `du -S' didn't work
Revert most of the `reorganization' change of 2003-02-20,
and make the two-array approach work.
2003-03-08 10:18:19 +00:00
Jim Meyering 8f683f9314 *** empty log message *** 2003-03-08 10:14:33 +00:00
Jim Meyering 0da302c05a *** empty log message *** 2003-03-08 10:10:59 +00:00
Jim Meyering d53c43f440 *** empty log message *** 2003-03-08 09:50:12 +00:00
Jim Meyering 3ba019fec5 . 2003-03-08 09:48:27 +00:00
Jim Meyering 684f41944e . 2003-03-07 23:37:10 +00:00
Jim Meyering a1134e1eb6 (print_it): Use putchar, not fputs, to output a single character. 2003-03-07 23:24:53 +00:00