1170754Sdelphij/* Set a file descriptor's mode to binary or to text.
2170754Sdelphij
3170754Sdelphij   Copyright (C) 2001, 2004 Free Software Foundation, Inc.
4170754Sdelphij
5170754Sdelphij   This program is free software; you can redistribute it and/or modify
6170754Sdelphij   it under the terms of the GNU General Public License as published by
7170754Sdelphij   the Free Software Foundation; either version 2, or (at your option)
8170754Sdelphij   any later version.
9170754Sdelphij
10170754Sdelphij   This program is distributed in the hope that it will be useful,
11170754Sdelphij   but WITHOUT ANY WARRANTY; without even the implied warranty of
12170754Sdelphij   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13170754Sdelphij   GNU General Public License for more details.
14170754Sdelphij
15170754Sdelphij   You should have received a copy of the GNU General Public License
16170754Sdelphij   along with this program; see the file COPYING.
17170754Sdelphij   If not, write to the Free Software Foundation,
18170754Sdelphij   59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
19170754Sdelphij
20170754Sdelphij/* Written by Paul Eggert <eggert@twinsun.com>  */
21170754Sdelphij
22170754Sdelphij#ifndef set_binary_mode
23170754Sdelphijbool set_binary_mode (int, bool);
24170754Sdelphij# if ! HAVE_SETMODE_DOS
25170754Sdelphij#  define set_binary_mode(fd, mode) true
26170754Sdelphij# endif
27170754Sdelphij#endif
28