summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2005-07-03Include "lstat.h" rather than rolling our own.Paul Eggert
2005-07-03(verify_numeric): Rename from verify.Jim Meyering
Update caller.
2005-07-03Regenerate.Paul Eggert
2005-07-03Include fcntl--.h, not unistd-safer.h.Paul Eggert
(touch): Don't call fd_safer; no longer needed now that we include fcntl--.h.
2005-07-03Include stdio--.h, not stdio-safer.h.Paul Eggert
(tee): Don't call fopen_safer; no longer needed now that we include stdio--.h.
2005-07-03Include fcntl--.h, not unistd-safer.h.Paul Eggert
(recheck, tail_file): Don't call fd_safer; no longer needed now that we include fcntl--.h.
2005-07-03Include stdlib--.h rather than unistd-safer.h.Paul Eggert
(copy_to_temp): Don't call fd_safer; no longer needed now that we include stdlib--.h.
2005-07-03Include fd-reopen.h.Paul Eggert
(display_all, display_settings, display_window_size, set_window_size): Remove fd arg, since we now assume stdin. All callers changed. (main): Reuse stdin rather than opening a new one. This saves a file descriptor.
2005-07-03Include fcntl--.h rather than unistd-safer.h.Paul Eggert
Include fd-reopen.h. (input_desc): Remove. All uses replaced by STDIN_FILENO. (cwrite): Don't call fd_safer; no longer needed now that we include fcntl--.h. (main): Reuse stdin rather than opening a new one. This saves a file descriptor.
2005-07-03Include stdio--.h rather than stdio-safer.h.Paul Eggert
Include stdlib--.h. Do not include unistd-safer.h. (create_temp_file): Don't call fd_safer; no longer needed now that we include *--.h files. (xfopen): Don't call fopen_safer, for similar reasons.
2005-07-03Include fcntl--.h, not unistd-safer.h.Paul Eggert
(wipename, wipe_file): Don't use fd_safer; no longer needed now that we include fcntl--.h.
2005-07-03Include stdio--.h, not stdio-safer.h.Paul Eggert
(open_file): Invoke fopen, not fopen_safer.
2005-07-03Include fd-reopen.h.Paul Eggert
Include unistd--.h, not unistd-safer.h. (main): Use fd_reopen to simplify code. When replacing stdin, use "/dev/null" not "/", as that's less likely to go wrong these days. (main): Use dup, not dup_safer.
2005-07-03Include stdio--.h.Paul Eggert
(digest_check): Don't try to read both checksums and data from stdin.
2005-07-03Include stdio--.h, not stdio-safer.h.Paul Eggert
(main): Use fopen, not fopen_safer.
2005-07-03Include fd-reopen.h.Paul Eggert
(open_fd): Remove. All callers changed to use fd_reopen instead.
2005-07-03Include fd-reopen.h.Paul Eggert
Include stdio--.h, not stdio-safer.h. (input_desc): Remove. All uses changed to STDIN_FILENO. (set_input_file): Reopen stdin, to simplify code. (create_output_file): Use fopen, not fopen_safer.
2005-07-03Include fcntl--.h, not unistd-safer.h.Paul Eggert
(copy_reg): Don't call fd_safer; no longer needed now that we include fcntl--.h.
2005-07-03Include stdio--.h, not stdio-safer.h.Paul Eggert
(compare_files): Use fopen, not fopen_safer.
2005-07-03Don't include stdio-safer.h; no longer needed.Paul Eggert
(writeline): Remove stream arg; we now always output to stdout. All callers changed. (check_file): Reuse stdout rather than opening a new stream. This saves a file descriptor.
2005-07-03(main): Reuse stdin rather than opening a new stream.Paul Eggert
This saves a file descriptor.
2005-07-02.Jim Meyering
2005-07-01Assume HAVE_UNISTD_H.Jim Meyering
2005-07-01Assume HAVE_FCNTL_H (i.e., include <fcntl.h>Jim Meyering
unconditionally, and don't include <sys/file.h>).
2005-06-30.Jim Meyering
2005-06-30Add uses of ARGMATCH_VERIFY to ensure thatJim Meyering
corresponding option string and value arrays are consistent.
2005-06-30Add uses of ARGMATCH_VERIFY to ensure thatJim Meyering
corresponding option string and value arrays are consistent. Remove a harmless trailing `, 0' from a value list.
2005-06-30Add uses of ARGMATCH_VERIFY to ensure thatJim Meyering
corresponding option string and value arrays are consistent. Remove a harmless trailing `, 0' from a value list.
2005-06-30(VERIFY): Guard definition with #ifndef.Jim Meyering
(VERIFY_EXPR): Undef before defining.
2005-06-29Use one fewer helper macro.Jim Meyering
2005-06-29(main): Use X2REALLOC rather than x2realloc.Jim Meyering
2005-06-29(fillbuf): Use X2REALLOC rather than x2realloc.Jim Meyering
2005-06-29(show_date): Use X2REALLOC rather than x2realloc.Jim Meyering
2005-06-29(main, store_char): Use X2REALLOC rather than x2realloc.Jim Meyering
2005-06-29Update sole use of VERIFY.Jim Meyering
Use X2REALLOC, rather than x2realloc.
2005-06-29(VERIFY): Rewrite to use string-concatenationJim Meyering
and __LINE__ so as not to require a struct name parameter. (GL_CONCAT, GL_CONCAT2, GL_LINE_CONCAT): Define helper macros.
2005-06-29(gobble_file): Use stat.st_author, not stat.st_uidJim Meyering
when computing the --author column width. This bug might have resulted in misaligned columns when using the --author option on the Hurd. Spotted by Arnold Robbins. The bug was introduced on 2003-12-03.
2005-06-28split long line in copyright commentJim Meyering
2005-06-28(fillbuf): Use x2realloc on 1-byte base types, not x2nrealloc.Jim Meyering
2005-06-28(dump_strings): Use x2realloc on 1-byte base types, not x2nrealloc.Jim Meyering
2005-06-28(show_date): Use x2realloc on 1-byte base types, not x2nrealloc.Jim Meyering
2005-06-28(main, store_char): Use x2realloc on 1-byte base types, not x2nrealloc.Jim Meyering
2005-06-27.Jim Meyering
2005-06-24.Jim Meyering
2005-06-24(usage): Clarify how --reply=no works.Jim Meyering
2005-06-23Do not include hard-locale.h.Paul Eggert
(struct duinfo): Remove 'valid' member. All uses changed to use negative nsec instead. (DUIINFO_INI, DUINFO_SET, DUINFO_ADD): Remove. (duinfo_init, duinfo_set, duinfo_add): New functions, taking the role of the removed macros. (opt_time): Renamed from opt_last_time. All uses changed. (TIME_OPTION): Renamed from LAST_TIME_OPTION. All uses changed. (long_options, usage): Rename --last-time to --time. (locale_time_style): Remove. (time_style_args, time_style_types, usage): Remove support for --time-style=locale. (show_date): Now returns void, since nobody looked at the result. Assume FORMAT is not null. An empty FORMAT now outputs an empty time. Simplify nstrftime invocation. (main): Put in ls compatibility workarounds only for TIME_STYLE, not for --time-style. Omit unnecessary space in iso time style.
2005-06-23whoops: use puts, not fputsJim Meyering
2005-06-23(time_format): Add `const' attribute.Jim Meyering
2005-06-23(show_date): Use fputs rather than printf ("%s\n",.Jim Meyering
2005-06-23(show_date): Add a FIXME comment.Jim Meyering