UNLOCKED_STDIO
NAMESYNOPSIS
DESCRIPTION
CONFORMING TO
SEE ALSO
COLOPHON
NAME
getc_unlocked, getchar_unlocked, putc_unlocked, putchar_unlocked − nonlocking stdio functions
SYNOPSIS
#include <stdio.h>
int
getc_unlocked(FILE *stream);
int getchar_unlocked(void);
int putc_unlocked(int c, FILE
*stream);
int putchar_unlocked(int c);
void
clearerr_unlocked(FILE *stream);
int feof_unlocked(FILE *stream);
int ferror_unlocked(FILE *stream);
int fileno_unlocked(FILE *stream);
int fflush_unlocked(FILE *stream);
int fgetc_unlocked(FILE *stream);
int fputc_unlocked(int c, FILE
*stream);
size_t fread_unlocked(void *ptr, size_t
size, size_t n,
FILE *stream);
size_t fwrite_unlocked(const void *ptr,
size_t size, size_t n,
FILE *stream);
char
*fgets_unlocked(char *s, int n,
FILE *stream);
int fputs_unlocked(const char *s, FILE
*stream);
#include <wchar.h>
wint_t
getwc_unlocked(FILE *stream);
wint_t getwchar_unlocked(void);
wint_t fgetwc_unlocked(FILE *stream);
wint_t fputwc_unlocked(wchar_t wc, FILE
*stream);
wint_t putwc_unlocked(wchar_t wc, FILE
*stream);
wint_t putwchar_unlocked(wchar_t wc);
wchar_t *fgetws_unlocked(wchar_t *ws, int
n, FILE *stream);
int fputws_unlocked(const wchar_t *ws, FILE
*stream);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
getc_unlocked(), getchar_unlocked(), putc_unlocked(), putchar_unlocked():
_POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _POSIX_SOURCE || _BSD_SOURCE || _SVID_SOURCE
clearerr_unlocked(), feof_unlocked(), ferror_unlocked(), fileno_unlocked(), fflush_unlocked(), fgetc_unlocked(), fputc_unlocked(), fread_unlocked(), fwrite_unlocked():
_BSD_SOURCE || _SVID_SOURCE
fgets_unlocked(), fputs_unlocked(), getwc_unlocked(), getwchar_unlocked(), fgetwc_unlocked(), fputwc_unlocked(), putwchar_unlocked(), fgetws_unlocked(), fputws_unlocked():
_GNU_SOURCE
DESCRIPTION
Each of these functions has the same behavior as its counterpart without the "_unlocked" suffix, except that they do not use locking (they do not set locks themselves, and do not test for the presence of locks set by others) and hence are thread-unsafe. See flockfile(3).
CONFORMING TO
The four functions getc_unlocked(), getchar_unlocked(), putc_unlocked(), putchar_unlocked() are in POSIX.1-2001.
The nonstandard *_unlocked() variants occur on a few UNIX systems, and are available in recent glibc. They should probably not be used.
SEE ALSO
COLOPHON
This page is part of release 3.69 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at http://www.kernel.org/doc/man−pages/.
More Linux Commands
manpages/pdffonts.1.html
pdffonts(1) - Portable Document Format (PDF) font analyzer (
Pdffonts lists the fonts used in a Portable Document Format (PDF) file along with various information for each font. The following information is listed for eac
manpages/makedeltarpm.8.html
makedeltarpm(8) - create a deltarpm from two rpms (ManPage)
makedeltarpm creates a deltarpm from two rpms. The deltarpm can later be used to recreate the new rpm from either filesystem data or the old rpm. Use the -v opt
manpages/form_page.3form.html
form_page(3form) - set and get form page number (Man Page)
The function set_current field sets the current field of the given form; current_field returns the current field of the given form. The function set_form_page s
manpages/gnutls_cipher_encrypt2.3.html
gnutls_cipher_encrypt2(3) - API function - Linux man page...
This function will encrypt the given data using the algorithm specified by the context. RETURNS Zero or a negative error code on error. SINCE 2.12.0 REPORTING B
manpages/flex.1.html
flex(1) - the fast lexical analyser generator (Man Page)....
Generates programs that perform pattern-matching on text. Table Compression: -Ca, --align trade off larger tables for better memory alignment -Ce, --ecs constru
manpages/gpgparsemail.1.html
gpgparsemail(1) - Parse a mail message into an annotated for
The gpgparsemail is a utility currently only useful for debugging. It parses a mail message into an annotated format. Run it with --help for usage information.
manpages/XF86MiscQueryExtension.3.html
XF86MiscQueryExtension(3) - Extension library for the XFree8
These functions provide an interface to the XFree86-Misc extension which allows various server settings to be queried and changed dynamically. Applications that
manpages/XmbDrawImageString.3.html
XmbDrawImageString(3) - draw image text using a single font
The XmbDrawImageString, XwcDrawImageString and Xutf8DrawImageString functions fill a destination rectangle with the background pixel defined in the GC and then
manpages/python.1.html
python(1) - an interpreted, interactive, object-oriented pro
python.1 - Python is an interpreted, interactive, object-oriented programming language that combines remarkable power with very clear syntax. For an introductio
manpages/pgmcrater.1.html
pgmcrater(1) - create cratered terrain by fractal forgery...
This program is part of Netpbm(1) pgmcrater is obsolete. All it does now is invoke pamcrater, pamshadedrelief, and pamtopnm. You should use those programs in an
manpages/pkeyparam.1ssl.html
pkeyparam(1ssl) public key algorithm parameter processing to
The pkey command processes public or private keys. They can be converted between various forms and their components printed out. COMMAND OPTIONS -in filename Th
manpages/exec.3.html
exec(3) - execute a file (Library - Linux man page).........
The exec() family of functions replaces the current process image with a new process image. The functions described in this manual page are front-ends for execv
