xref: /dflybsd-src/contrib/grep/lib/closeout.h (revision 95b7b45377d922df3f9cbf9a1f160c77aa3555fa)
1*95b7b453SJohn Marino /* Close standard output and standard error.
2*95b7b453SJohn Marino 
3*95b7b453SJohn Marino    Copyright (C) 1998, 2000, 2003-2004, 2006, 2008-2010 Free Software
4*95b7b453SJohn Marino    Foundation, Inc.
5*95b7b453SJohn Marino 
6*95b7b453SJohn Marino    This program is free software: you can redistribute it and/or modify
7*95b7b453SJohn Marino    it under the terms of the GNU General Public License as published by
8*95b7b453SJohn Marino    the Free Software Foundation; either version 3 of the License, or
9*95b7b453SJohn Marino    (at your option) any later version.
10*95b7b453SJohn Marino 
11*95b7b453SJohn Marino    This program is distributed in the hope that it will be useful,
12*95b7b453SJohn Marino    but WITHOUT ANY WARRANTY; without even the implied warranty of
13*95b7b453SJohn Marino    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14*95b7b453SJohn Marino    GNU General Public License for more details.
15*95b7b453SJohn Marino 
16*95b7b453SJohn Marino    You should have received a copy of the GNU General Public License
17*95b7b453SJohn Marino    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
18*95b7b453SJohn Marino 
19*95b7b453SJohn Marino #ifndef CLOSEOUT_H
20*95b7b453SJohn Marino # define CLOSEOUT_H 1
21*95b7b453SJohn Marino 
22*95b7b453SJohn Marino # include <stdbool.h>
23*95b7b453SJohn Marino 
24*95b7b453SJohn Marino # ifdef __cplusplus
25*95b7b453SJohn Marino extern "C" {
26*95b7b453SJohn Marino # endif
27*95b7b453SJohn Marino 
28*95b7b453SJohn Marino void close_stdout_set_file_name (const char *file);
29*95b7b453SJohn Marino void close_stdout_set_ignore_EPIPE (bool ignore);
30*95b7b453SJohn Marino void close_stdout (void);
31*95b7b453SJohn Marino 
32*95b7b453SJohn Marino # ifdef __cplusplus
33*95b7b453SJohn Marino }
34*95b7b453SJohn Marino # endif
35*95b7b453SJohn Marino 
36*95b7b453SJohn Marino #endif
37