diff options
author | Florian Weimer <fweimer@redhat.com> | 2016-03-07 17:05:06 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2016-03-07 17:05:06 +0100 |
commit | abc40bb2a78b358935a604451b7e7eb83d8d77c4 (patch) | |
tree | 21bc403d5d3b0110f62ed172d8a0fc5da3725ce4 /libio/wfiledoalloc.c | |
parent | 3c0f7407eedb524c9114bb675cd55b903c71daaa (diff) | |
download | glibc-abc40bb2a78b358935a604451b7e7eb83d8d77c4.zip glibc-abc40bb2a78b358935a604451b7e7eb83d8d77c4.tar.gz glibc-abc40bb2a78b358935a604451b7e7eb83d8d77c4.tar.bz2 |
libio: Clean up _IO_file_doallocate and _IO_wfile_doallocate
No functional changes.
Diffstat (limited to 'libio/wfiledoalloc.c')
-rw-r--r-- | libio/wfiledoalloc.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/libio/wfiledoalloc.c b/libio/wfiledoalloc.c index 28c10b6..333b036 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 <sys/types.h> -#include <sys/stat.h> #include <stdlib.h> -#include <unistd.h> - -#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) { |