From 0a04075ed9766681c796dfe0f2e2fb81881f09ba Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 27 Mar 2001 00:16:51 +0000 Subject: Update. 2001-03-26 Ulrich Drepper * libio/Makefile (tests): Add tst-ext. * libio/tst-ext.c: New file. * libio/iosetvbuf.c (_IO_setvbuf): Clear line buffer flag for _IONBF. --- libio/iosetvbuf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libio/iosetvbuf.c') diff --git a/libio/iosetvbuf.c b/libio/iosetvbuf.c index 673677191a..bff286b028 100644 --- a/libio/iosetvbuf.c +++ b/libio/iosetvbuf.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 96, 97, 98, 99, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1993,96,97,98,99,2000,2001 Free Software Foundation, Inc. This file is part of the GNU IO Library. This library is free software; you can redistribute it and/or @@ -82,6 +82,8 @@ _IO_setvbuf (fp, buf, mode, size) } break; case _IONBF: + fp->_IO_file_flags &= ~_IO_LINE_BUF; + fp->_IO_file_flags |= _IO_UNBUFFERED; buf = NULL; size = 0; break; -- cgit v1.2.3