summaryrefslogtreecommitdiff
path: root/lib/setmode.c
Commit message (Collapse)AuthorAgeFilesLines
* * src/cmp.c: Don't include <setmode.h>.Paul Eggert2006-01-051-53/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (specify_ignore_initial): Reword to avoid gcc -W warnings. (main): Use freopen instead of setmode, since freopen is in POSIX. * src/context.c: Revert most 2004-09-01 changes. Then: (TIMESPEC_NS): Remove. All uses replaced by get_stat_mtime_ns. Include stat-time.h, strftime.h. (nstrtime): Remove decl. * src/diff.c: Revert most 2004-09-01 changes. Then: Don't include <posixver.h>, <quotesys.h>, <setmode.h>. Include <sh-quote.h>, <stat-time.h>, <timespec.h>. All uses of quotesys replaced by sh-quote. (main, compare_files): Use freopen instead of setmode, since freopen is in POSIX. (main): Don't complain about "diff -NUM'. (main, set_mtime_to_now): Adjust to stat-time.h macros when accessing nanoseconds. * src/diff3.c: Include sh-quote.h rather than quotesys. All uses changed. * src/dir.c (dir_read): excluded_filename renamed to excluded_file_name. * src/io.c: Don't include <setmode.h>. (sip, read_files): Remove binary file stuff, leaving a FIXME behind. A DOS expert needs to look at this. * src/diff.c: Include sh-quote.h rather than quotesys.h. All uses changed. * src/system.h: Include verify.h. (verify): Remove. All uses changed to verify.h version. Include <intprops.h>. (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove. Now uses intprops.h versions. (O_BINARY): New defns, taken from coreutils. * src/util.c: Include sh-quote.h rather than quotesys.h. All uses changed.
* Don't include <stdbool.h>, since setmode.h now does this.Paul Eggert2004-06-301-24/+10
| | | | | Include setmode.h first, to catch interface errors. Assume HAVE_SETMODE_DOS is defined.
* (__attribute__): New macro.Paul Eggert2004-04-121-4/+9
| | | | | | (set_binary_mode): Define only if HAVE_SETMODE_DOS. Otherwise define a dummy static char, as C89 requires that we define something.
* [HAVE_FCNTL_H && HAVE_SETMODE_DOS]: Include <fcntl.h>.Paul Eggert2001-12-241-9/+13
| | | | | | [!HAVE_SETMODE_DOS]: Do not include <unistd.h>. (set_binary_mode): Return mode (not 1) if fd is a tty. Do not assume that O_TEXT is zero.
* Initial revisionPaul Eggert2001-12-111-0/+58