summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2001-03-09(Date directives): Likewise.Jim Meyering
2001-03-09.Jim Meyering
2001-03-09*** empty log message ***Jim Meyering
2001-03-09Reflect change in location of input-tty.Jim Meyering
2001-03-09moved from stty/~Jim Meyering
2001-03-09moved from stty/~Jim Meyering
2001-03-09(EXTRA_DIST): Remove input-tty.Jim Meyering
2001-03-09Ensure that /dev/full is a character deviceJim Meyering
(using test -c) as well as being writable, before trying to write to it. Otherwise, the test could mistakenly append a newline to an existing, regular, writable, /dev/full file. Suggested by Ulrich Drepper.
2001-03-08*** empty log message ***Jim Meyering
2001-03-08Insert the `--text' argument for each test.Jim Meyering
2001-03-06(locale_charset): Don't use setlocale(LC_CTYPE,NULL).Jim Meyering
Don't return NULL.
2001-03-06(print_unicode_char): Simplify accordingly.Jim Meyering
2001-03-06*** empty log message ***Jim Meyering
2001-03-06Update for FreeBSD 4.2 and OSF/1 5.1. Add support for DOS/DJGPP.Jim Meyering
2001-03-06(S_TYPEISSHM): Rename parameter to reflect its type.Jim Meyering
(main): Pass a `struct stat *', not stat.st_mode to S_TYPEISSHM.
2001-03-04*** empty log message ***Jim Meyering
2001-03-04(alpha): Use $(PACKAGE)-$(VERSION), not $(distdir),Jim Meyering
since the latter now has a `$(top_distdir)/' prefix.
2001-03-04*** empty log message ***Jim Meyering
2001-03-04*** empty log message ***Jim Meyering
2001-03-04.Jim Meyering
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 nameJim Meyering
on error. All callers changed.
2001-03-03*** empty log message ***Jim Meyering
2001-03-03(main): When fclose (stdin) fails, do not mentionJim 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-03from Paul EggertJim Meyering
2001-03-03*** empty log message ***Jim Meyering
2001-03-03(initbuf): If the desired size cannot beJim 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-03Tune allocation and comparison of nodesJim 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 systemJim Meyering
lacks mkstemp. Compile our own tempname.c if we compile our own mkstemp.c, as mkstemp relies on tempname.
2001-03-02from GNU libcJim Meyering
2001-03-02from GNU libcJim 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.