195b7b453SJohn Marino /* Close standard output and standard error. 295b7b453SJohn Marino 3*09d4459fSDaniel Fojt Copyright (C) 1998, 2000, 2003-2004, 2006, 2008-2020 Free Software 495b7b453SJohn Marino Foundation, Inc. 595b7b453SJohn Marino 695b7b453SJohn Marino This program is free software: you can redistribute it and/or modify 795b7b453SJohn Marino it under the terms of the GNU General Public License as published by 895b7b453SJohn Marino the Free Software Foundation; either version 3 of the License, or 995b7b453SJohn Marino (at your option) any later version. 1095b7b453SJohn Marino 1195b7b453SJohn Marino This program is distributed in the hope that it will be useful, 1295b7b453SJohn Marino but WITHOUT ANY WARRANTY; without even the implied warranty of 1395b7b453SJohn Marino MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1495b7b453SJohn Marino GNU General Public License for more details. 1595b7b453SJohn Marino 1695b7b453SJohn Marino You should have received a copy of the GNU General Public License 17*09d4459fSDaniel Fojt along with this program. If not, see <https://www.gnu.org/licenses/>. */ 1895b7b453SJohn Marino 1995b7b453SJohn Marino #ifndef CLOSEOUT_H 2095b7b453SJohn Marino # define CLOSEOUT_H 1 2195b7b453SJohn Marino 2295b7b453SJohn Marino # include <stdbool.h> 2395b7b453SJohn Marino 2495b7b453SJohn Marino # ifdef __cplusplus 2595b7b453SJohn Marino extern "C" { 2695b7b453SJohn Marino # endif 2795b7b453SJohn Marino 2895b7b453SJohn Marino void close_stdout_set_file_name (const char *file); 2995b7b453SJohn Marino void close_stdout_set_ignore_EPIPE (bool ignore); 3095b7b453SJohn Marino void close_stdout (void); 3195b7b453SJohn Marino 3295b7b453SJohn Marino # ifdef __cplusplus 3395b7b453SJohn Marino } 3495b7b453SJohn Marino # endif 3595b7b453SJohn Marino 3695b7b453SJohn Marino #endif 37