Age | Commit message (Collapse) | Author | |
---|---|---|---|
2001-03-04 | (output_char): Reformat so each statement is on a separate line. | Jim Meyering | |
2001-03-04 | . | Jim Meyering | |
2001-03-04 | . | Jim Meyering | |
2001-03-03 | *** empty log message *** | Jim Meyering | |
2001-03-03 | (die): New function. | Jim Meyering | |
(create_temp_file, xfopen, xfclose, write_bytes, sort_buffer_size, fillbuf, main): Use it to regularize error messages. The only change in behavior is that write_bytes and the final close used to say "write error" but now give just the output file name, which should be enough. | |||
2001-03-03 | *** empty log message *** | Jim Meyering | |
2001-03-03 | (xfclose): Add FILE arg, and report the file name | Jim Meyering | |
on error. All callers changed. | |||
2001-03-03 | *** empty log message *** | Jim Meyering | |
2001-03-03 | (main): When fclose (stdin) fails, do not mention | Jim Meyering | |
the output file in the error message; mention "-" instead. | |||
2001-03-03 | *** empty log message *** | Jim Meyering | |
2001-03-03 | (xfopen): Set have_read_stdin to 1 only if file is "-". | Jim Meyering | |
Use fopen_safer, not fopen, to avoid subtle bugs when fopen returns stdin, stdout, or stderr. (xfclose): stdout is no longer a special case. (main): Close output file, don't just flush it; there might be an error on the close. | |||
2001-03-03 | (libfetish_a_SOURCES): Add dup-safer.c, fopen-safer.c. | Jim Meyering | |
(noinst_HEADERS): Add stdio-safer.h, unistd-safer.h. | |||
2001-03-03 | *** empty log message *** | Jim Meyering | |
2001-03-03 | from Paul Eggert | Jim Meyering | |
2001-03-03 | *** empty log message *** | Jim Meyering | |
2001-03-03 | (initbuf): If the desired size cannot be | Jim Meyering | |
allocated, repeatedly halve it until allocation succeeds. | |||
2001-03-03 | (parse_field_count): Comment fix. | Jim Meyering | |
2001-03-03 | . | Jim Meyering | |
2001-03-03 | *** empty log message *** | Jim Meyering | |
2001-03-03 | Tune allocation and comparison of nodes | Jim Meyering | |
representing temp files. This improved CPU performance of 'sort -S 1 *.[ch]' by 17% on my host. (struct tempnode): name member now uses struct hack. (temphead): Now a pointer, not a structure. All uses changed. (create_temp_file): Allocate node using struct hack. (zaptemp): Free node using struct hack. Use pointer comparison, not string comparison. | |||
2001-03-02 | (eolchar, trim_trailing_blanks): Now static. | Jim Meyering | |
2001-03-02 | *** empty log message *** | Jim Meyering | |
2001-03-02 | *** empty log message *** | Jim Meyering | |
2001-03-02 | (jm_MACROS): Use mkstemp replacement if the system | Jim Meyering | |
lacks mkstemp. Compile our own tempname.c if we compile our own mkstemp.c, as mkstemp relies on tempname. | |||
2001-03-02 | from GNU libc | Jim Meyering | |
2001-03-02 | from GNU libc | Jim Meyering | |
2001-03-02 | *** empty log message *** | Jim Meyering | |
2001-03-02 | . | Jim Meyering | |
2001-03-02 | *** empty log message *** | Jim Meyering | |
2001-03-02 | 'sort' race condition fixes. | Jim Meyering | |
Defend against a DoS attack where someone else creates a temporary file with the same name as ours. Use mkstemp to do this, supplying our own mkstemp if the system doesn't have one. Also, fix a race condition during cleanup on hosts without sigaction. (NAME_MAX_IN_DIR): Remove. (sigprocmask, sigset_t): New macros, defined only on older hosts. (caught_signals): New var. (xtmpfopen, tempname): Removed. (create_temp_file): New function, combining the functions of the old xtmpfopen and tempname. All callers changed. Use mkstemp to create the file. (sighandler): On hosts without sigaction, ignore signals while cleaning up, instead of letting them interrupt cleanup. (main): Initialize caught_signals. On hosts with sigaction, block all caught signals while handling one. Remove duplicate code. | |||
2001-03-01 | *** empty log message *** | Jim Meyering | |
2001-03-01 | (jm_AC_DOS): Remove extra backslashes, now that | Jim Meyering | |
AH_VERBATIM really does output its argument verbatim. | |||
2001-02-25 | *** empty log message *** | Jim Meyering | |
2001-02-25 | Fix typo: '-d=1may' -> '-d 1may'. | Jim Meyering | |
Fix and clarify time zone usage in 'date' examples. | |||
2001-02-23 | *** empty log message *** | Jim Meyering | |
2001-02-22 | (keycompare): Move declarations of locals, lena and lenb, | Jim Meyering | |
into the inner scope where they are used. | |||
2001-02-21 | (main): Remove assignment-in-if-expression. | Jim Meyering | |
In fact, remove t_errno altogether. | |||
2001-02-21 | *** empty log message *** | Jim Meyering | |
2001-02-21 | Add two tests of existing behavior -- both will | Jim Meyering | |
have to be changed (soon after release), once ls is fixed. | |||
2001-02-20 | . | Jim Meyering | |
2001-02-20 | test for existing behavior | Jim Meyering | |
2001-02-20 | . | Jim Meyering | |
2001-02-20 | *** empty log message *** | Jim Meyering | |
2001-02-20 | (FULL_TIME_OPTION): Renamed from FULL_TIME, for | Jim Meyering | |
consistency with the other enum values. | |||
2001-02-20 | (SI_OPTION): New enum value. | Jim Meyering | |
(long_options): Use it instead of 'H' for --si. (decode_switches): Warn that -H will change soon. (usage): Likewise. | |||
2001-02-20 | revert last change, until after release | Jim Meyering | |
2001-02-20 | *** empty log message *** | Jim Meyering | |
2001-02-20 | revert last change, until after the release | Jim Meyering | |
2001-02-20 | `ls -Fd symlink-to-directory' would print a trailing `/' | Jim Meyering | |
Now it prints a trailing `@'. (gobble_file): Don't clobber lstat stats of command line arguments when using -d and -F (--directory and --classify) options. | |||
2001-02-19 | *** empty log message *** | Jim Meyering | |