} while (0)
# define UNBUFFERED_P(S) ((S)->_IO_file_flags & _IO_UNBUFFERED)
# define flockfile(S) _IO_flockfile (S)
-# define fUNlockfile(S) _IO_funlockfile (S)
+# define funlockfile(S) _IO_funlockfile (S)
#else /* ! USE_IN_LIBIO */
/* This code is for use in the GNU C library. */
# include <stdio.h>
} \
while (0)
# define UNBUFFERED_P(s) ((s)->__buffer == NULL)
+# define flockfile(S) /* nothing */
+# define funlockfile(S) /* nothing */
#endif /* USE_IN_LIBIO */
/* Lock stream. */
flockfile (s);
-
+
/* Write the literal text before the first format. */
outstring ((const UCHAR_T *) format,
lead_str_end - (const UCHAR_T *) format);
/* Unlock stream. */
funlockfile (s);
-
+
/* We processed the whole format without any positional parameters. */
return done;
/* Unlock the stream. */
funlockfile (s);
-
+
return done;
}
#include <stdlib.h>
#include <string.h>
-
#ifdef __GNUC__
#define HAVE_LONGLONG
#define LONGLONG long long
return EOF; \
} \
} while (0)
+# define flockfile(S) _IO_flockfile (S)
+# define funlockfile(S) _IO_funlockfile (S)
#else
# define inchar() ((c = getc (s)), (void) ++read_in, c)
# define conv_error() do { \
return EOF; \
} \
} while (0)
+# define flockfile(S) /* nothing */
+# define funlockfile(S) /* nothing */
#endif
/* Lock the stream. */
flockfile (s);
-
+
c = inchar ();
/* Run through the format string. */
/* Unlock stream. */
funlockfile (s);
-
+
return ((void) (c == EOF || ungetc (c, s)), done);
}