Jim Meyering
71aa3ea880
Update all copyright notices to use the newer form.
2007-07-23 14:35:58 +02:00
Jim Meyering
33342c1a0a
Change "version 2" to "version 3" in all copyright notices.
2007-07-10 13:35:56 +02:00
Jim Meyering
a0faff1a58
Help translators include translation team's web or email address.
...
* src/system.h (emit_bug_reporting_address): New function.
* src/base64.c: Use it rather than a literal printf.
* src/basename.c, src/cat.c, src/chgrp.c, src/chmod.c:
* src/chown.c, src/chroot.c, src/cksum.c, src/comm.c, src/cp.c:
* src/csplit.c, src/cut.c, src/date.c, src/dd.c, src/df.c:
* src/dircolors.c, src/dirname.c, src/du.c, src/echo.c, src/env.c:
* src/expand.c, src/expr.c, src/factor.c, src/fmt.c, src/fold.c:
* src/head.c, src/hostid.c, src/hostname.c, src/id.c, src/install.c:
* src/join.c, src/kill.c, src/link.c, src/ln.c, src/logname.c:
* src/ls.c, src/md5sum.c, src/mkdir.c, src/mkfifo.c, src/mknod.c:
* src/mv.c, src/nice.c, src/nl.c, src/nohup.c, src/od.c:
* src/paste.c, src/pathchk.c, src/pinky.c, src/pr.c, src/printenv.c:
* src/printf.c, src/ptx.c, src/pwd.c, src/readlink.c, src/rm.c:
* src/rmdir.c, src/seq.c, src/setuidgid.c, src/shred.c, src/shuf.c:
* src/sleep.c, src/sort.c, src/split.c, src/stat.c, src/stty.c:
* src/su.c, src/sum.c, src/sync.c, src/system.h, src/tac.c:
* src/tail.c, src/tee.c, src/test.c, src/touch.c, src/tr.c:
* src/true.c, src/tsort.c, src/tty.c, src/uname.c, src/unexpand.c:
* src/uniq.c, src/unlink.c, src/uptime.c, src/users.c, src/wc.c:
* src/who.c, src/whoami.c, src/yes.c: Likewise.
2007-03-28 08:50:29 +02:00
Jim Meyering
8d550c12b8
* src/system.h (SETVBUF): Remove definition, now that the
...
autoconf macro, AC_FUNC_SETVBUF_REVERSED, does nothing.
* src/tee.c (tee_files): s/SETVBUF/setvbuf/.
* src/od.c (open_next_file): Likewise.
2006-12-12 14:34:23 +01:00
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