xref: /netbsd-src/external/gpl2/xcvs/dist/lib/unistd-safer.h (revision a7c918477dd5f12c1da816ba05caf44eab2d06d6)
1*a7c91847Schristos /* Invoke unistd-like functions, but avoid some glitches.
2*a7c91847Schristos 
3*a7c91847Schristos    Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
4*a7c91847Schristos 
5*a7c91847Schristos    This program is free software; you can redistribute it and/or modify
6*a7c91847Schristos    it under the terms of the GNU General Public License as published by
7*a7c91847Schristos    the Free Software Foundation; either version 2, or (at your option)
8*a7c91847Schristos    any later version.
9*a7c91847Schristos 
10*a7c91847Schristos    This program is distributed in the hope that it will be useful,
11*a7c91847Schristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
12*a7c91847Schristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13*a7c91847Schristos    GNU General Public License for more details.
14*a7c91847Schristos 
15*a7c91847Schristos    You should have received a copy of the GNU General Public License
16*a7c91847Schristos    along with this program; if not, write to the Free Software Foundation,
17*a7c91847Schristos    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
18*a7c91847Schristos 
19*a7c91847Schristos /* Written by Paul Eggert.  */
20*a7c91847Schristos 
21*a7c91847Schristos int dup_safer (int);
22*a7c91847Schristos int fd_safer (int);
23*a7c91847Schristos int pipe_safer (int[2]);
24