+#else
+#define NDYNAMIC 1 /* add one at a time on embedded */
+#endif
+
+#define std(flags, file) { \
+ ._flags = (flags), \
+ ._file = (file), \
+ ._cookie = __sF + (file), \
+ ._close = __sclose, \
+ ._read = __sread, \
+ ._seek = __sseek, \
+ ._write = __swrite, \
+ ._extra = __sFX + file, \
+}
+ /* set counted */
+#define __sFXInit3 {.fl_mutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER, .counted = 1}
+
+static int __scounted; /* streams counted against STREAM_MAX */
+static int __stream_max;