Jim Meyering
b505087420
* src/tee.c (tee_files): Rename from tee, to avoid conflict with
...
the function in glibc's <fcntl.h>. Reported by Andreas Schwab.
2006-06-22 12:50:32 +00:00
Paul Eggert
a1170668ff
(tee): Avoid setmode; use POSIX-specified routines instead.
2005-07-11 18:26:52 +00:00
Paul Eggert
580d1e6d6d
Don't include stdio.h; no longer needed.
2005-07-09 22:10:38 +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
Jim Meyering
44d59bb168
Update FSF postal mail address.
2005-05-14 07:58:31 +00:00
Jim Meyering
c0c815af8d
Update FSF postal mail address.
2005-05-14 06:57:06 +00:00
Paul Eggert
857b9db0e0
Include stdio-safer.h.
...
(tee): Use fopen_safer.
2005-04-11 20:12:17 +00:00
Jim Meyering
dce4a77a99
(tee): When closing files, do not close stdout,
...
leave this job to close_stdout() instead.
From Dmitry V. Levin.
2005-04-05 11:40:53 +00:00
Paul Eggert
81ca57a91d
Remove unused "case 0".
2004-09-21 22:26:42 +00:00
Paul Eggert
8dafbe5806
(usage, tee): "tee -" writes to standard output, not
...
to a file named "-".
2004-08-10 22:08:58 +00:00
Paul Eggert
a74bfe2b9a
(tee, append, ignore_interrupts, main, tee):
...
Use bool for booleans.
(tee): Use ssize_t for read returns.
2004-08-03 20:06:29 +00:00
Jim Meyering
ed4778772c
(main): Do not ignore SIGPIPE, as POSIX 1003.1-2001
...
does not allow this. This undoes the 1996-10-24 patch.
2004-04-21 14:26:09 +00:00
Jim Meyering
d432ccecc8
(main) [!defined _POSIX_SOURCE]:
...
Use simpler "signal (sig, SIG_DFL)" rather than sigaction equivalent.
2004-04-20 15:10:07 +00:00
Jim Meyering
88a8689c36
(usage): Use EXIT_SUCCESS, not 0, for clarity.
2004-01-21 23:46:53 +00:00
Jim Meyering
c34f3b9959
(tee): Use xnmalloc rather than xmalloc.
2004-01-04 21:07:40 +00:00
Jim Meyering
cf4fdf373f
Most .c files (AUTHORS): Revert the WRITTEN_BY/AUTHORS change
...
of 2003-09-19. Now, AUTHORS is a comma-separated list of strings.
Update the call to parse_long_options so that `AUTHORS, NULL' are the
last parameters.
* src/true.c (main): Append NULL to version_etc argument list.
* src/sys2.h (case_GETOPT_VERSION_CHAR): Likewise.
2003-10-18 10:05:47 +00:00
Jim Meyering
c0042c884d
(tee): Adjust fwrite arguments so that the return
...
value is the number of bytes written.
2003-09-23 07:51:02 +00:00
Jim Meyering
09203489dd
(tee): Once a write failure has occurred, don't bother
...
writing anything more to that stream.
2003-09-22 16:00:49 +00:00
Jim Meyering
bafd927f03
(WRITTEN_BY): Rename from AUTHORS.
...
Begin each WRITTEN_BY string with `Written by ' and end it with `.'.
Mark each WRITTEN_BY string as translatable.
2003-09-18 22:19:03 +00:00
Jim Meyering
c6ec144494
revert previous change
2003-09-18 19:39:12 +00:00
Jim Meyering
3280bf4b55
Update AUTHORS definition to be a comma-separated list of strings and/or update
...
the call to parse_long_options so that `AUTHORS, NULL' are the last parameters.
2003-09-18 18:22:23 +00:00
Jim Meyering
4f4e9aa8e1
Don't include headers already included by system.h:
...
Don't include closeout.h.
2003-07-23 07:29:54 +00:00
Jim Meyering
6bcd4b08ba
(main): Call initialize_main.
2003-06-17 18:13:23 +00:00
Jim Meyering
6c93bdeeaa
Remove anachronistic casts of xmalloc,
...
xrealloc, and xcalloc return values and of xrealloc's first argument.
2003-04-11 10:51:56 +00:00
Jim Meyering
a5f14f167e
Remove all uses of `PARAMS'.
2002-12-15 20:54:29 +00:00
Jim Meyering
4006f4e672
Change exit (0)' to exit (EXIT_SUCCESS)',
...
`exit (1)' to `exit (EXIT_FAILURE)', and
`usage (1)' to `usage (EXIT_FAILURE)'.
2002-08-31 08:52:10 +00:00
Jim Meyering
7488703199
Change error (1, ...' to error (EXIT_FAILURE, ...'.
2002-08-30 23:04:53 +00:00
Jim Meyering
3124a4e393
(main): Close STDIN_FILENO rather than a literal `0'.
2002-08-25 14:32:02 +00:00
Jim Meyering
2ee11887cd
(usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it.
2002-07-02 09:09:10 +00:00
Jim Meyering
2fae9e5d26
Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION
...
instead of hard-coding --help and --version descriptions.
Split --help output into smaller pieces.
Use fputs, not printf.
2001-12-15 20:46:30 +00:00
Jim Meyering
3f25540d1e
(full_write): Remove decl; not needed.
2001-08-31 07:42:30 +00:00
Jim Meyering
1e4a6cbe1c
(AUTHORS): Mark string for translation, since it contains the English word `and'.
2001-08-14 07:10:10 +00:00
Jim Meyering
5f14914c49
remove incorrect FIXME comment.
2000-08-14 21:40:30 +00:00
Jim Meyering
cf04cc6ec2
(tee): Use SET_BINARY and SET_BINARY2.
...
From Prashant TR.
2000-08-01 07:10:57 +00:00
Jim Meyering
f1013a1535
Include "closeout.h".
...
(main): Call atexit with close_stdout.
Remove explicit close_stdout.
2000-05-07 14:46:11 +00:00
Jim Meyering
8ddf290477
(tee): Convert from open/fds to using fopen/streams for
...
output, in preparation for addition of new compression option.
1999-07-26 07:11:27 +00:00
Jim Meyering
fdd07e3d2b
No longer include long-options.h.
...
[long_options]: Add entries for --help and --version.
Remove parse_long_options call.
(main) [getopt switch]: Add a case for each of --help and --version.
1999-03-31 05:52:46 +00:00
Jim Meyering
03c1b8518c
(PROGRAM_NAME, AUTHORS): Define and use.
1999-03-31 04:16:08 +00:00
Jim Meyering
5b2aa1846b
Include long-options.h.
...
[long_options]: Remove the "help" and "version" entries.
Remove declarations of show_help and show_version.
(main): Use parse_long_options, including author name(s).
Remove the show_version and show_help blocks.
1999-03-06 15:28:54 +00:00
Jim Meyering
276d118b10
(usage): Remove static attribute.
1999-01-25 14:33:38 +00:00
Jim Meyering
da25811932
Include closeout.h. (main): Use close_stdout.
1999-01-14 15:37:04 +00:00
Jim Meyering
24a8bf2d3e
update bug-reporting address
1998-09-19 17:32:35 +00:00
Jim Meyering
2e308957d4
s/__P/PARAMS/
1997-12-21 22:30:30 +00:00
Jim Meyering
b3ab88e970
Remove old-style xmalloc and xrealloc decls.
1997-10-25 22:03:20 +00:00
Jim Meyering
5db3c9bdb4
update bug-reporting address
1997-10-07 23:51:39 +00:00
Jim Meyering
7eb03c4372
update copyrights for 1997
1997-02-09 04:54:16 +00:00
Jim Meyering
899a90bfd9
bracket bug address with <> and append a period
1997-02-01 04:23:31 +00:00
Jim Meyering
b8c82a8e39
Compare getopt_long return value against -1, not EOF. Use NULL, not '(int *) 0' as last parameter in getopt_long call.
1997-02-01 03:05:36 +00:00
Jim Meyering
5582e6dad3
change bug-reporting address
1996-11-03 03:16:27 +00:00
Jim Meyering
b8e689dc67
change bug-reporting address
1996-11-02 20:44:15 +00:00