Jim Meyering
f63845ae12
*** empty log message ***
2005-07-12 16:48:12 +00:00
Jim Meyering
40db6abec1
(X2NREALLOC): Define.
2005-07-12 16:47:37 +00:00
Jim Meyering
95550da8d3
.
2005-07-12 16:44:52 +00:00
Jim Meyering
eb3e6a0569
replace leading spaces with a TAB
2005-07-12 15:36:07 +00:00
Paul Eggert
7c97d643b9
(verify_expr): Use ((verify_type__ (R) *) 0), not
...
sizeof (verify_type__ (R)), to pacify C++ compilers.
2005-07-11 23:28:09 +00:00
Paul Eggert
6a406d5d8b
Reword copyright notices to conform to current GNU coding standards.
2005-07-11 21:59:08 +00:00
Paul Eggert
51ae476ad8
Parameterize the copyright symbol and the year.
2005-07-11 21:58:50 +00:00
Paul Eggert
8fb97bd54a
(COPYRIGHT_YEAR): New constant.
...
(version_etc_va): Use parameterized copyright notice.
Reword to conform to the current GNU coding standards.
2005-07-11 21:58:32 +00:00
Paul Eggert
b6f3f54730
Binary input and output are now implemented more consistently.
2005-07-11 18:31:36 +00:00
Paul Eggert
edfb9f5ba8
Updates for cat and md5sum, for text vs binary.
2005-07-11 18:31:10 +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
bc4268f8d6
(cat invocation): Remove -B or --binary option
...
(available on MS-DOS-like platforms only). Explain when text and
binary mode are used now.
(md5sum invocation): -b actually does have an effect on Unix: it
causes "*" to be output. Explain when text and binary mode are
used now.
2005-07-11 18:20:34 +00:00
Paul Eggert
1ee7165eba
Binary input and output are now implemented more consistently.
...
These changes affect only platforms like MS-DOS that distinguish
between binary and text files.
2005-07-11 18:20:05 +00:00
Paul Eggert
580d1e6d6d
Don't include stdio.h; no longer needed.
2005-07-09 22:10:38 +00:00
Paul Eggert
531b803d83
Regenerate.
2005-07-09 07:40:15 +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
9e9532c8ff
strtopt.h -> stropts.h
2005-07-09 07:37:19 +00:00
Paul Eggert
b4a47a0cf3
strtopt.h -> stropts.h
2005-07-09 07:36:54 +00:00
Paul Eggert
21def2abc0
Undo previous change, and remove AC_HEADER_TIOCGWINSZ.
2005-07-09 07:36:33 +00:00
Paul Eggert
d2cdd805c4
Update to Eric Blake porting problems.
2005-07-09 07:36:03 +00:00
Paul Eggert
d3fdc82a4e
(getloadavg) [__CYGWIN__]: Port to cygwin.
...
[__linux__]: Allocate a big enough buffer for /proc/loadavg.
[!LDAV_DONE]: Avoid unused variable warning.
2005-07-08 23:41:43 +00:00
Paul Eggert
37c6631081
Regenerate.
2005-07-08 22:57:38 +00:00
Paul Eggert
1d0de4ba95
Fix porting problems reported by Eric Blake.
2005-07-08 22:57:09 +00:00
Paul Eggert
648e937e89
(gl_CHECK_ALL_HEADERS): Check for stropt.h.
2005-07-08 22:56:17 +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
cb59a7d3d0
Add check for HAVE_FIONREAD_IN_SYS_IOCTL.
2005-07-08 22:53:50 +00:00
Paul Eggert
64890758cf
(init_dfa, build_range_exp): Store __btowc value
...
in wint_t, not wchar_t. Remove now-unnecessary cast.
2005-07-08 17:58:35 +00:00
Paul Eggert
0e5aafc45a
backupfile.m4, same.m4 cleanup.
2005-07-08 07:09:20 +00:00
Paul Eggert
63449616ae
(gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on pathconf.
2005-07-08 07:08:56 +00:00
Paul Eggert
0561231d58
(gl_SAME): Use AC_CHECK_FUNCS_ONCE on pathconf.
...
Require AC_SYS_LONG_FILE_NAMES.
2005-07-08 07:08:41 +00:00