Paul Eggert
ef5043084f
(main): Don't worry about POSIXLY_CORRECT.
2005-07-15 21:55:13 +00:00
Paul Eggert
9cfc51e083
Remove FESETROUND_LIBM; no longer needed.
2005-07-14 00:03:08 +00:00
Jim Meyering
95550da8d3
.
2005-07-12 16:44:52 +00:00
Paul Eggert
15a1aede78
(setmode, fileno): Remove; no longer needed, we think.
...
(SET_MODE, SET_BINARY, SET_BINARY2): Remove.
[defined __DJGPP__]: Don't include <io.h> or <sys/exceptn.h>.
2005-07-11 18:30:26 +00:00
Paul Eggert
bdc138f474
(wipefile): Always use binary mode. Clearly this
...
never worked right on DOS!
2005-07-11 18:30:02 +00:00
Paul Eggert
aa43a635c1
(usage): Clarify whether text or binary is the default.
...
(split_3, main): BINARY is now a 3-way value. All uses changed.
(digest_file): Likewise. Clear *BINARY if we determine the file
to be text. All uses changed.
(main): Don't report a file to be binary if we actually read it
as text in MS-DOS, because it was a terminal.
2005-07-11 18:29:44 +00:00
Paul Eggert
d045e55b7c
(unexpand): Always copy in text mode. POSIX says
...
the input and output must be text.
2005-07-11 18:29:21 +00:00
Paul Eggert
44f0501d4f
(expand): Always copy in text mode. POSIX says
...
the input and output must be text.
2005-07-11 18:28:53 +00:00
Paul Eggert
8831c9589a
(copy_reg): Always copy in binary mode.
2005-07-11 18:28:19 +00:00
Paul Eggert
f3946fbee9
(wc): Avoid setmode; use POSIX-specified routines instead.
...
(wc_file): FILE might be null now.
(main): Simplify code a bit, so that fewer places need the setmode fixes.
2005-07-11 18:27:49 +00:00
Paul Eggert
07fc234838
(main): Avoid setmode; use POSIX-specified routines instead.
2005-07-11 18:27:10 +00:00
Paul Eggert
a1170668ff
(tee): Avoid setmode; use POSIX-specified routines instead.
2005-07-11 18:26:52 +00:00
Paul Eggert
9839325ad5
(tail_bytes, tail_lines, tail_file, main):
...
Avoid setmode; use POSIX-specified routines instead.
2005-07-11 18:26:28 +00:00
Paul Eggert
b91eec6bb2
(copy_to_temp, tac_file, main):
...
Avoid setmode; use POSIX-specified routines instead.
2005-07-11 18:25:56 +00:00
Paul Eggert
ed0dda33d5
(bsd_sum_file, sysv_sym_file):
...
Avoid setmode; use POSIX-specified routines instead.
2005-07-11 18:25:23 +00:00
Paul Eggert
b2b2956e01
(main): Avoid setmode; use POSIX-specified routines instead.
2005-07-11 18:24:42 +00:00
Paul Eggert
a40f69da68
(open_next_file): Avoid setmode; use POSIX-specified routines instead.
2005-07-11 18:24:14 +00:00
Paul Eggert
6560de0b04
(head_lines, head_file): Avoid setmode; use POSIX-specified routines instead.
...
(elide_tail_bytes_file, elide_tail_lines_file, head_bytes):
(head_lines, head_file): Always use binary mode except for std tty.
2005-07-11 18:23:23 +00:00
Paul Eggert
9824112cfa
(cksum): Avoid setmode; use POSIX-specified routines instead.
2005-07-11 18:21:54 +00:00
Paul Eggert
8770c00ef4
(usage, main, long_options) [O_BINARY]:
...
Remove support for -B. Use same rules as other programs to decide
whether to use binary I/O, except that the -bensAE options always
select text mode.
(main): Avoid setmode; use POSIX-specified routines instead.
2005-07-11 18:21:11 +00:00
Paul Eggert
580d1e6d6d
Don't include stdio.h; no longer needed.
2005-07-09 22:10:38 +00:00
Paul Eggert
d94b54ec17
Use only HAVE_SYS_IOCTL_H to decide whether to include sys/ioctl.h.
...
stropt.h -> stropts.h
2005-07-09 07:39:04 +00:00
Paul Eggert
8d51efbab1
Use only HAVE_SYS_IOCTL_H to decide whether to include sys/ioctl.h.
...
stropt.h -> stropts.h
2005-07-09 07:38:28 +00:00
Paul Eggert
8bf75032ee
Use only HAVE_SYS_IOCTL_H to decide whether to include sys/ioctl.h.
2005-07-09 07:37:58 +00:00
Paul Eggert
6a0a1919c7
(print_user): Don't assume uid fits in unsigned int.
...
(print_group): Likewise, for gid.
2005-07-08 22:55:44 +00:00
Paul Eggert
137c1c2208
Include stropt.h if available.
2005-07-08 22:54:40 +00:00
Paul Eggert
db7d10bd9d
Include stropt.h if available.
...
Use HAVE_FIONREAD_IN_SYS_IOCTL instead of _POSIX_SOURCE
to decide whether to include <sys/ioctl.h>.
2005-07-08 22:54:15 +00:00
Paul Eggert
060594db56
Regenerate.
2005-07-08 00:35:04 +00:00
Jim Meyering
52c7a92b85
.
2005-07-07 17:59:05 +00:00
Jim Meyering
f68e25dc8f
remove stray `=' from comment
2005-07-06 09:34:09 +00:00
Paul Eggert
fce3dd9870
(DECIMAL_DIGIT_ACCUMULATE): Generate a hard error
...
(not just a warning) if GCC is used and the types don't match.
2005-07-05 22:20:17 +00:00
Paul Eggert
3ca74b36f5
Adjust to the change to DECIMAL_DIGIT_ACCUMULATE: its last arg is now
...
a type, not a value.
2005-07-05 06:32:54 +00:00
Paul Eggert
413a45b973
(VERIFY_W_TYPEOF): Remove; no longer needed.
...
(DECIMAL_DIGIT_ACCUMULATE): Change last arg from T's maximum value
to T itself. All callers changed. Check that T is unsigned, and
that Accum is of type T. This fixes a bug in the unlikely case
where SIZE_MAX <= INT_MAX, and it no longer requires typeof to do
the proper validity checks.
2005-07-05 06:31:46 +00:00
Paul Eggert
971c8d4c1f
Adjust to verify.h change.
2005-07-05 05:17:10 +00:00
Paul Eggert
aeecb8f89f
(VERIFY_W_TYPEOF): Adjust to verify.h change.
2005-07-05 05:16:57 +00:00
Jim Meyering
bd6ce95891
rename: s/verify_dcl/verify_decl/
2005-07-04 17:40:37 +00:00
Jim Meyering
3b0e00ba4e
Include "verify.h".
2005-07-04 16:06:41 +00:00
Jim Meyering
746f032f31
Reflect name change: s/VERIFY/verify_dcl/.
2005-07-04 13:59:54 +00:00
Jim Meyering
fbdee4c720
(verify): Rename from VERIFY_EXPR, to be lower case,
...
like assert. Use sizeof, rather than equivalent ((...)0), for
it's slightly simpler syntax. Suggestions from Paul Eggert.
(verify_decl): Rename from VERIFY.
2005-07-04 13:56:18 +00:00
Jim Meyering
5610a8734d
(main): Using --reply now evokes a warning.
...
(usage): Remove description of --reply.
2005-07-03 16:49:15 +00:00
Jim Meyering
85ddb64559
.
2005-07-03 11:58:11 +00:00
Paul Eggert
a6e5563cef
Include "lstat.h" rather than rolling our own.
2005-07-03 09:31:19 +00:00
Jim Meyering
6dc3ffd8b6
(verify_numeric): Rename from verify.
...
Update caller.
2005-07-03 08:46:05 +00:00
Paul Eggert
de0cf8356f
Regenerate.
2005-07-03 07:28:38 +00:00
Paul Eggert
dd6f2c49db
Include fcntl--.h, not unistd-safer.h.
...
(touch): Don't call fd_safer; no longer needed now that
we include fcntl--.h.
2005-07-03 07:23:18 +00:00
Paul Eggert
9509ae9a8c
Include stdio--.h, not stdio-safer.h.
...
(tee): Don't call fopen_safer; no longer needed now that we
include stdio--.h.
2005-07-03 07:22:50 +00:00
Paul Eggert
4decb49032
Include fcntl--.h, not unistd-safer.h.
...
(recheck, tail_file): Don't call fd_safer; no longer needed
now that we include fcntl--.h.
2005-07-03 07:21:49 +00:00
Paul Eggert
7b1780d5cc
Include stdlib--.h rather than unistd-safer.h.
...
(copy_to_temp): Don't call fd_safer; no longer needed now
that we include stdlib--.h.
2005-07-03 07:21:31 +00:00
Paul Eggert
b6be15eaca
Include fd-reopen.h.
...
(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-03 07:21:03 +00:00
Paul Eggert
c030201e6d
Include fcntl--.h rather than unistd-safer.h.
...
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-03 07:20:33 +00:00