Jim Meyering
e39102faca
adjust long lines
2005-08-12 07:10:22 +00:00
Jim Meyering
bdb22d1235
(main): Cosmetic: use '\0' in place of 0.
2005-08-12 07:09:47 +00:00
Jim Meyering
0508157932
.
2005-08-02 21:15:19 +00:00
Jim Meyering
ef1fad923f
Include "xanstrftime.h".
...
(show_date): Use xanstrftime instead of open-coding it.
2005-08-02 20:53:32 +00:00
Jim Meyering
7a44d1f860
Include "xanstrftime.h".
...
(show_date): Use xanstrftime instead of open-coding it.
2005-08-02 20:52:44 +00:00
Jim Meyering
eed7b13805
(show_date): Remove now-unnecessary code that
...
treated an empty format string as a special case.
2005-08-02 20:44:38 +00:00
Jim Meyering
27cc9e65d2
(usage): Adjust printf argument list to match new format string.
2005-07-19 11:10:35 +00:00
Paul Eggert
eb3bd006a1
(usage, main): --check now accepts multiple input files.
2005-07-19 07:34:55 +00:00
Paul Eggert
d58ce6b09c
(EXIT_STATUS): New macro.
...
(PROGRAM_NAME, usage): Behave like "false" if EXIT_STATUS indicates.
(usage): Remove "These option names may not be abbreviated."
2005-07-18 07:53:05 +00:00
Paul Eggert
983ce81d94
Initial revision.
2005-07-18 07:52:37 +00:00
Paul Eggert
cc5f57603d
(BUILT_SOURCES): Remove false.c.
...
(false.c): Remove; it's now a source file.
2005-07-18 07:52:18 +00:00
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