Paul Eggert
632f0144b2
Update copyright.
2004-08-02 22:47:00 +00:00
Paul Eggert
fd0ca86dd2
(errno): Remove decl; we now assume C89 or better.
2004-08-02 22:41:37 +00:00
Jim Meyering
9802c059ff
Likewise. Include "closeout.h" right after config.h,
...
to test that it can stand by itself. Include "exitfail.h".
Clients should set exit_failure instead.
(EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
2003-07-19 08:08:56 +00:00
Jim Meyering
f1b9a8744c
From gnulib, by Bruno Haible
...
* closeout.c: Include gettext.h instead of <libintl.h>.
2002-11-23 15:03:40 +00:00
Jim Meyering
8d83abaf89
(close_stdout_status): If ferror (stdout), do
...
not silently exit merely because the output buffer happens to
have nothing pending.
2001-12-20 10:01:25 +00:00
Jim Meyering
3eb2a22131
Include unlocked-io.h.
2001-11-17 13:29:42 +00:00
Jim Meyering
dc93e67305
Include "__fpending.h".
...
(close_stdout_status): Return right away if there's nothing to flush.
2000-08-26 12:05:50 +00:00
Jim Meyering
a4f0b7b42e
<sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
...
Remove; no longer needed.
"quotearg.h": Add include.
(file_name): Do not bother to explicitly initialize to NULL; it's less
efficient on some hosts.
(close_stdout_status): Remove test as to whether stdout was already
closed; it breaks for the case "echo x | sort >&-".
Quote file name colons.
Do not assume that _("write error") lacks format strings.
2000-05-16 14:36:55 +00:00
Jim Meyering
dba50eec49
(close_stdout_set_file_name): New function.
...
(close_stdout_status): Use new file-scoped global.
Return right away if fstat says the stdout file descriptor is invalid.
2000-05-15 10:21:25 +00:00
Jim Meyering
ebd41d46d8
[default_exit_status]: New file-scoped variable.
...
(close_stdout_set_status): New function.
2000-05-10 16:39:35 +00:00
Jim Meyering
42edc330ed
fix comments
...
add FIXME
1999-04-04 14:30:30 +00:00
Jim Meyering
8c5f91e5ad
Add comments.
1999-01-25 00:13:36 +00:00
Jim Meyering
bfbc3ce20c
Use #if, not #ifdef with HAVE_ macros
1998-03-15 11:09:10 +00:00
Jim Meyering
109b9c5f94
.
1998-01-04 21:48:30 +00:00