diff options
author | Bruno Haible <bruno@clisp.org> | 2006-09-29 13:44:52 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2006-09-29 13:44:52 +0000 |
commit | 9347e00e6c9092517edc8e3aa101a6b76a92a99c (patch) | |
tree | efe1d0118a5badf606ef8c8da93c359bacb48c19 /lib/fwriteerror.h | |
parent | 7f9ddd0478b3ac43d120da5899cc6db754ada813 (diff) | |
download | gnulib-9347e00e6c9092517edc8e3aa101a6b76a92a99c.tar.gz |
New function fwriteerror_no_ebadf.
Diffstat (limited to 'lib/fwriteerror.h')
-rw-r--r-- | lib/fwriteerror.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/fwriteerror.h b/lib/fwriteerror.h index c823ef7f25..ebbe1be6c9 100644 --- a/lib/fwriteerror.h +++ b/lib/fwriteerror.h @@ -1,5 +1,5 @@ /* Detect write error on a stream. - Copyright (C) 2003, 2005 Free Software Foundation, Inc. + Copyright (C) 2003, 2005-2006 Free Software Foundation, Inc. Written by Bruno Haible <bruno@clisp.org>, 2003. This program is free software; you can redistribute it and/or modify @@ -49,3 +49,7 @@ For any given stream FP other than stdout, fwriteerror (FP) may only be called once. */ extern int fwriteerror (FILE *fp); + +/* Likewise, but don't consider it an error if FP has an invalid file + descriptor and no output was done to FP. */ +extern int fwriteerror_no_ebadf (FILE *fp); |