Commit Graph
22888 Commits
Author SHA1 Message Date
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
Paul Eggert 060594db56 Regenerate. 2005-07-08 00:35:04 +00:00
Paul Eggert ce3bb28d95 Switch to Isamu Hasegawa's implementation of regex, which is
now in gnulib.
2005-07-08 00:23:15 +00:00
Paul Eggert 36a263effc Add regcomp.c, regex_internal.c, regex_internal.h. 2005-07-08 00:22:14 +00:00
Paul Eggert 88ca28f3d7 (libcoreutils_a_SOURCES): Remove regex.h; gnulib
now does this automatically for us.
2005-07-08 00:14:05 +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
Jim Meyering e74c15dd5a fix typo in comment 2005-07-05 07:33:50 +00:00
Paul Eggert a7a648d4d4 Remove the need for typeof. 2005-07-05 06:33:24 +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 fed2b7273d Remove typeof test; no longer needed. 2005-07-05 06:30:57 +00:00
Paul Eggert 85eb851bef (gl_PREREQ): Don't require gl_TYPEOF; no longer needed. 2005-07-05 06:30:27 +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
Paul Eggert 6ef09ecf57 verify.h improvements. 2005-07-05 05:16:29 +00:00
Paul Eggert 5ad307bfc0 * verify.h (GL_CONCAT0, GL_CONCAT): Define unconditionally; don't
depend on whether verify_decl is defined.
(verify): Renamed from verify_decl.  All uses changed.
Use an extern function decl, as it can't possibly collide with other
decls.
(verify_expr): Renamed from verify.  All uses changed.
(verify_type__): New private macro.
(verify, verify_expr): Use it.
2005-07-05 05:16:08 +00:00
Jim Meyering bd6ce95891 rename: s/verify_dcl/verify_decl/ 2005-07-04 17:40:37 +00:00
Jim Meyering e2b7434615 rename: s/verify_dcl/verify_decl/ 2005-07-04 17:39:48 +00:00
Jim Meyering 14ad8a2da7 *** empty log message *** 2005-07-04 16:09:10 +00:00
Jim Meyering 302c7df271 (libcoreutils_a_SOURCES): Add verify.h here, temporarily.
Eventually, it'll be pulled in via AC_LIBSOURCES.
2005-07-04 16:09:03 +00:00
Jim Meyering 1fd49f4452 *** empty log message *** 2005-07-04 16:06:43 +00:00