diff lib/closeout.h @ 10595:37b949ffd096

Add an option for ignoring EPIPE during close_stdout.
author Bruno Haible <bruno@clisp.org>
date Mon, 06 Oct 2008 02:38:03 +0200
parents bbbbbf4cd1c5
children b5e42ef33b49
line wrap: on
line diff
--- a/lib/closeout.h
+++ b/lib/closeout.h
@@ -1,6 +1,7 @@
 /* Close standard output and standard error.
 
-   Copyright (C) 1998, 2000, 2003, 2004, 2006 Free Software Foundation, Inc.
+   Copyright (C) 1998, 2000, 2003, 2004, 2006, 2008 Free Software Foundation,
+   Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -18,11 +19,14 @@
 #ifndef CLOSEOUT_H
 # define CLOSEOUT_H 1
 
+# include <stdbool.h>
+
 # ifdef __cplusplus
 extern "C" {
 # endif
 
 void close_stdout_set_file_name (const char *file);
+void close_stdout_set_ignore_EPIPE (bool ignore);
 void close_stdout (void);
 
 # ifdef __cplusplus