PUTCHAR_UNLOCKED(3) NEWLIB PUTCHAR_UNLOCKED(3)NAME
4.47 `putchar_unlocked'--non-thread-safe version of putchar (macro)
SYNOPSIS
#include <stdio.h>
int putchar_unlocked(int CH);
DESCRIPTION
`putchar_unlocked' is a non-thread-safe version of `putchar' declared
in `stdio.h'. `putchar_unlocked' may only safely be used within a
scope protected by flockfile() (or ftrylockfile()) and funlockfile().
These functions may safely be used in a multi-threaded program if and
only if they are called while the invoking thread owns the ( FILE *)
object, as is the case after a successful call to the flockfile() or
ftrylockfile() functions. If threads are disabled, then
`putchar_unlocked' is equivalent to `putchar'.
RETURNS
See `putchar'.
PORTABILITY
POSIX 1003.1 requires `putchar_unlocked'. `putchar_unlocked' may be
implemented as a macro.
Supporting OS subroutines required: `close', `fstat', `isatty',
`lseek', `read', `sbrk', `write'.
SEE ALSOputchar_unlocked is part of the library. The full documentation for is
maintained as a Texinfo manual. If info and are properly installed at
your site, the command
info
will give you access to the complete manual.
NEWLIB April 2010 PUTCHAR_UNLOCKED(3)