/* Set a file descriptor's mode to binary or to text.12Copyright (C) 2001, 2004 Free Software Foundation, Inc.34This program is free software; you can redistribute it and/or modify5it under the terms of the GNU General Public License as published by6the Free Software Foundation; either version 2, or (at your option)7any later version.89This program is distributed in the hope that it will be useful,10but WITHOUT ANY WARRANTY; without even the implied warranty of11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12GNU General Public License for more details.1314You should have received a copy of the GNU General Public License15along with this program; see the file COPYING.16If not, write to the Free Software Foundation,1759 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */1819/* Written by Paul Eggert <[email protected]> */2021#ifndef set_binary_mode22bool set_binary_mode (int, bool);23# if ! HAVE_SETMODE_DOS24# define set_binary_mode(fd, mode) true25# endif26#endif272829