diff options
author | ache <ache@FreeBSD.org> | 2015-10-28 14:40:02 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2015-10-28 14:40:02 +0000 |
commit | 64dac23af83b727e5f33d41dc5ecb1444c8c0c30 (patch) | |
tree | baa8aba8f21fff38237715019c7a521ac1e39e6a /lib/libc/stdio/findfp.c | |
parent | c641ee406283e8610464caba08dac1b0ffd2cfff (diff) | |
download | FreeBSD-src-64dac23af83b727e5f33d41dc5ecb1444c8c0c30.zip FreeBSD-src-64dac23af83b727e5f33d41dc5ecb1444c8c0c30.tar.gz |
Add _flags2 per jhb@ suggestion since no room left in _flags.
Rewrite O_APPEND flag checking using new __S2OAP flag.
MFC after: 3 weeks
Diffstat (limited to 'lib/libc/stdio/findfp.c')
-rw-r--r-- | lib/libc/stdio/findfp.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |