Manpage of GETC_UNLOCKED
GETC_UNLOCKED
Section: NEWLIB (3)
Updated: 2005 Feb 23
Index
Return to Main Contents
NAME
3.22 `getc_unlocked'--non-thread-safe version of getc (macro)
DESCRIPTION
`getc_unlocked' is a non-thread-safe version of `getc' declared in
`stdio.h'. `getc_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
`getc_unlocked' is equivalent to `getc'.
RETURNS
See `getc'.
PORTABILITY
POSIX 1003.1 requires `getc_unlocked'. `getc_unlocked' may be
implemented as a macro, so arguments should not have side-effects.
Supporting OS subroutines required: `close', `fstat', `isatty',
`lseek', `read', `sbrk', `write'.
SEE ALSO
getc_unlocked
is part of the
libc
library.
The full documentation for
libc
is maintained as a Texinfo manual. If
info
and
libc
are properly installed at your site, the command
-
info libc
will give you access to the complete manual.
Index
- NAME
-
- DESCRIPTION
-
- RETURNS
-
- PORTABILITY
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 21:25:17 GMT, May 16, 2005
www.fiveanddime.net