From 64dac23af83b727e5f33d41dc5ecb1444c8c0c30 Mon Sep 17 00:00:00 2001 From: ache Date: Wed, 28 Oct 2015 14:40:02 +0000 Subject: Add _flags2 per jhb@ suggestion since no room left in _flags. Rewrite O_APPEND flag checking using new __S2OAP flag. MFC after: 3 weeks --- lib/libc/stdio/findfp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libc/stdio/findfp.c') diff --git a/lib/libc/stdio/findfp.c b/lib/libc/stdio/findfp.c index 0eabe82..b8bb5af 100644 --- a/lib/libc/stdio/findfp.c +++ b/lib/libc/stdio/findfp.c @@ -155,6 +155,7 @@ found: /* fp->_fl_mutex = NULL; */ /* once set always set (reused) */ fp->_orientation = 0; memset(&fp->_mbstate, 0, sizeof(mbstate_t)); + fp->_flags2 = 0; return (fp); } -- cgit v1.1