From abc40bb2a78b358935a604451b7e7eb83d8d77c4 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 7 Mar 2016 17:05:06 +0100 Subject: libio: Clean up _IO_file_doallocate and _IO_wfile_doallocate No functional changes. --- libio/wfiledoalloc.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'libio/wfiledoalloc.c') diff --git a/libio/wfiledoalloc.c b/libio/wfiledoalloc.c index 28c10b6d0d..333b03635b 100644 --- a/libio/wfiledoalloc.c +++ b/libio/wfiledoalloc.c @@ -55,28 +55,10 @@ /* Modified for GNU iostream by Per Bothner 1991, 1992. */ -#ifndef _POSIX_SOURCE -# define _POSIX_SOURCE -#endif #include "libioP.h" -#include -#include #include -#include - -#ifdef _LIBC -# undef isatty -# define isatty(Fd) __isatty (Fd) -#endif - -/* - * Allocate a file buffer, or switch to unbuffered I/O. - * Per the ANSI C standard, ALL tty devices default to line buffered. - * - * As a side effect, we set __SOPT or __SNPT (en/dis-able fseek - * optimisation) right after the _fstat() that finds the buffer size. - */ +/* Allocate a file buffer, or switch to unbuffered I/O. */ int _IO_wfile_doallocate (_IO_FILE *fp) { -- cgit 1.4.1