Commit Graph
24019 Commits
Author SHA1 Message Date
Jim Meyering d5cca2b3b2 *** empty log message *** 2005-04-16 06:38:22 +00:00
Jim Meyering 037421542d (S_TYPEISSHM): Remove definition.
Get the definition by including "stat-macros.h", instead.
2005-04-16 06:38:20 +00:00
Paul Eggert 776587cbea Fix test suite problems reported by Eric Blake on Cygwin. 2005-04-14 20:35:59 +00:00
Paul Eggert 9ca6f88366 (dot_mount_point): Use stat rather than df, as
it's more reliable.
(other_partition_tmpdir): Remove df from name as that would be
misleading now.
2005-04-14 20:35:34 +00:00
Paul Eggert b6820a451d Ignore chatter about when files are removed,
since POSIX doesn't require rename to fail across file systems.
2005-04-14 20:35:14 +00:00
Jim Meyering 181e78b2d6 *** empty log message *** 2005-04-14 12:13:26 +00:00
Jim Meyering 22abf053ca Correct typo, fchmod -> fchown, in a comment. 2005-04-14 12:09:00 +00:00
Paul Eggert 5e54cfb18b * getdate.y (zone): Allow relunit_snumber after tZONE. 2005-04-13 18:42:13 +00:00
Paul Eggert f3f4a9add0 (zone): Allow relunit_snumber after tZONE, so
that "UTC +1 second" continues to work.  Problem reported
by Dmitry V. Levin.
(relunit_snumber): New rule.
(relunit): Use it.
2005-04-13 18:42:00 +00:00
Paul Eggert a3cdfd525c src/ls.c (usage): "uid" -> "user ID". 2005-04-12 07:41:42 +00:00
Paul Eggert 54ba3e1287 (usage): uid -> user ID 2005-04-12 07:39:38 +00:00
Paul Eggert 94e747e3ac * getdate.y: Fix problem with parsing GMT time stamps during London summers. 2005-04-12 07:21:48 +00:00
Paul Eggert 1d6ad9ddf2 (universal_time_zone_table): New constant.
(time_zone_table): Remove GMT, UT, UTC entries; they're now in
universal_time_zone_table.
(lookup_zone): Prefer universal_time_zone_table to
local_time_zone_table, so that "GMT" time stamps are allowed in
London during the summer.  Problem reported by Ian Abbott.
2005-04-12 07:21:18 +00:00
Jim Meyering 21e982ed81 *** empty log message *** 2005-04-12 06:47:49 +00:00
Jim Meyering aa3d627011 (tsort): Use "%s" as the format string, rather than a diagnostic or a file name. 2005-04-12 06:47:44 +00:00
Jim Meyering 0510017888 (compare_files): Remove declaration of unused local. 2005-04-12 06:46:10 +00:00
Paul Eggert 19393fd886 For consistency, standardize on "user ID" rather than "uid". 2005-04-12 05:53:02 +00:00
Paul Eggert 7078f2f4bd Reword usage, man pages to use "user ID" rather than "uid" etc. 2005-04-12 05:52:37 +00:00
Paul Eggert 6fabf88aec (usage, main): Use "user ID", not "UID", and similarly for "group ID". 2005-04-12 05:44:47 +00:00
Paul Eggert 064c7a4273 (usage): Use "user ID", not "UID", and similarly
for "group ID".
2005-04-12 05:44:16 +00:00
Paul Eggert 369a314889 Reword to match coreutils.texi. 2005-04-12 05:43:36 +00:00
Paul Eggert 4b087b295a Reword to match user manual. 2005-04-12 05:43:19 +00:00
Paul Eggert 9149393134 For consistency, standardize on "user ID" rather
than "uid" or "UID" or "user id".  Similarly for "group ID".
2005-04-12 05:42:55 +00:00
Paul Eggert 3aeec3ceed Regenerate. 2005-04-11 20:21:07 +00:00
Paul Eggert d233b6b31e Add bulletproofing for cases where stdin, stdout, or stderr are closed. 2005-04-11 20:15:45 +00:00
Paul Eggert 348dfa3987 Add bulletproofing for cases where stdin, stdout, or stderr are closed. 2005-04-11 20:13:42 +00:00
Paul Eggert 786ebb2cec Include stdio_safer.h.
(check_file): Don't assume fopen cannot return stdin or stdout.
2005-04-11 20:13:26 +00:00
Paul Eggert 45e6c262b9 (next_file): Don't assume fopen cannot return stdin. 2005-04-11 20:13:10 +00:00
Paul Eggert 8e8520b0ba (have_read_stdin): Remove; no longer needed. All uses
removed.
(tsort): Do not assume fopen can't return stdin.
Close stdin before returning.  All uses changed.
2005-04-11 20:12:51 +00:00
Paul Eggert 39d496f075 Include unistd-safer.h.
(touch): Use fd_safer.
2005-04-11 20:12:32 +00:00
Paul Eggert 857b9db0e0 Include stdio-safer.h.
(tee): Use fopen_safer.
2005-04-11 20:12:17 +00:00
Paul Eggert 99eb6d3a02 Include unistd-safer.h rather than fcntl-safer.h.
(recheck, tail_file): Use fd_safer rather than open_safer.
2005-04-11 20:12:01 +00:00
Paul Eggert 9db4c89700 Include unistd-safer.h.
(copy_to_temp): Use fd_safer.
(tac_file): Don't assume fopen cannot return stdin.
2005-04-11 20:11:45 +00:00
Paul Eggert da5dc50751 (bsd_sum_file, sysv_sym_file):
Use same pattern as elsewhere for checking for stdin.
2005-04-11 20:11:27 +00:00
Paul Eggert a498869855 Include unistd-safer.h.
(cwrite): Use fd_safer.  Replace mystery constant 0666 with symbolic
version, as POSIX requires.
2005-04-11 20:11:08 +00:00
Paul Eggert 66729cdcd3 Include unistd-safer.h.
(create_temp_file): Use fd_safer.
(xfclose): Don't assume fileno (stdin) == STDIN_FILENO, etc.
2005-04-11 20:10:52 +00:00
Paul Eggert 0d49dd9de2 Include unistd-safer.h.
(wipename): Use fd_safer on directory file descriptor.
(wipefile): Remove special case for /dev/fd/* on older hosts.
It didn't work in general, and wasn't documented.
Use fd_safer.
2005-04-11 20:10:23 +00:00
Paul Eggert caca482cde (main): Don't assume fopen returns stdout after closing
stdout.  Use freopen instead.
2005-04-11 20:10:00 +00:00
Paul Eggert 02b7510866 Include stdio-safer.h.
(open_file): Use fopen_safer.
(close_file): Don't assume fopen does not return stdin.
2005-04-11 20:09:42 +00:00
Paul Eggert c2377708ec (paste_serial): Don't assume fopen does not return stdin. 2005-04-11 20:09:22 +00:00
Paul Eggert ab860aae65 (check_and_close): Don't assume fopen does not return stdin. 2005-04-11 20:09:01 +00:00
Paul Eggert 8e14d7ffbb Include unistd-safer.h.
(main): Don't dup stderr to stdin or stdout by mistake.
2005-04-11 20:08:30 +00:00
Paul Eggert e972b27d05 (digest_file, digest_check):
Don't assume that fopen does not return stdin.
2005-04-11 20:08:11 +00:00
Paul Eggert aba88afdce Include stdio-safer.h.
(main): Use fopen_safer.  Simplify the resulting code.
2005-04-11 20:07:54 +00:00
Paul Eggert ea778b6463 (head_file): Don't assume open does not return 0. 2005-04-11 20:07:37 +00:00
Paul Eggert cc4407f0fe (dc_parse_file): Don't assume fopen does not return stdin. 2005-04-11 20:07:22 +00:00
Paul Eggert 329448f75e Include stdio-safer.h.
(input_desc): Remove unnecessary static initialization.
(set_input_file): Use STDIN_FILENO, not 0.
(create_output_file): Use fopen_safer.
2005-04-11 20:07:00 +00:00
Paul Eggert 0b8c662cf2 Include unistd-safer.h.
(copy_reg): Use fd_safer.
2005-04-11 20:06:34 +00:00
Paul Eggert fd48557688 Include stdio-safer.h.
(compare_files): Exit right away on I/O error rather than continuing
and producing confusing output and error messages.
Return void, not int; all callers changed.
Use fopen_safer to avoid confusion with file descriptors.
2005-04-11 20:06:13 +00:00
Paul Eggert aaffac9b6a Add bulletproofing for cases where stdin, stdout, or stderr are closed. 2005-04-11 20:05:45 +00:00