aboutsummaryrefslogtreecommitdiffstats
path: root/include/stdio.h
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2015-10-28 14:40:02 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2015-10-28 14:40:02 +0000
commit8b63538d89ef0b1b1d38532c6ff15b4f0676d7d5 (patch)
treebaa8aba8f21fff38237715019c7a521ac1e39e6a /include/stdio.h
parent4648ee9525203b985a3e6b8ee0faf7a70c78ddfc (diff)
downloadsrc-8b63538d89ef0b1b1d38532c6ff15b4f0676d7d5.tar.gz
src-8b63538d89ef0b1b1d38532c6ff15b4f0676d7d5.zip
Add _flags2 per jhb@ suggestion since no room left in _flags.
Rewrite O_APPEND flag checking using new __S2OAP flag. MFC after: 3 weeks
Notes
Notes: svn path=/head/; revision=290110
Diffstat (limited to 'include/stdio.h')
-rw-r--r--include/stdio.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 5a5b82bc665e..f55aaf7c7274 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -144,6 +144,7 @@ struct __sFILE {
int _fl_count; /* recursive lock count */
int _orientation; /* orientation for fwide() */
__mbstate_t _mbstate; /* multibyte conversion state */
+ int _flags2; /* additional flags */
};
#ifndef _STDFILE_DECLARED
#define _STDFILE_DECLARED
@@ -176,6 +177,8 @@ __END_DECLS
#define __SALC 0x4000 /* allocate string space dynamically */
#define __SIGN 0x8000 /* ignore this file in _fwalk */
+#define __S2OAP 0x0001 /* O_APPEND mode is set */
+
/*
* The following three definitions are for ANSI C, which took them
* from System V, which brilliantly took internal interface macros and