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/sha512sum.1.html
sha512sum(1) - compute and check SHA512 message digest......
Print or check SHA512 (512-bit) checksums. With no FILE, or when FILE is -, read standard input. -b, --binary read in binary mode -c, --check read SHA512 sums f
manpages/bind.n.html
bind(n) - Arrange for X events to invoke Tcl scripts........
The bind command associates Tcl scripts with X events. If all three arguments are specified, bind will arrange for script (a Tcl script) to be evaluated wheneve
manpages/ExtUtils::Installed.3pm.html
ExtUtils::Installed(3pm) - Inventory management of installed
ExtUtils::Installed provides a standard way to find out what core and module files have been installed. It uses the information stored in .packlist files create
manpages/postcat.1.html
postcat(1) - show Postfix queue file contents (Man Page)....
The postcat(1) command prints the contents of the named files in human-readable form. The files are expected to be in Postfix queue file format. If no files are
manpages/gnutls_pkcs12_deinit.3.html
gnutls_pkcs12_deinit(3) - API function - Linux manual page
This function will deinitialize a PKCS12 structure. REPORTING BUGS Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page: http://www.gnu.org/software/gnutls/ Ge
manpages/Encode::Unicode.3pm.html
Encode::Unicode(3pm) - Various Unicode Transformation Format
xmlgraphics-fop - Formatter for Printing XSLT Processed XML Files Classname: org.apache.fop.cli.Main xmlgraphicsfop [fo | xml] infile [xsl file] [awt | ....
manpages/glutExtensionSupported.3.html
glutExtensionSupported(3) - helps to easily determine whethe
glutExtensionSupported helps to easily determine whether a given OpenGL extension is supported or not. The extension parameter names the extension to query. The
manpages/wcscpy.3.html
wcscpy(3) - copy a wide-character string - Linux man page...
The wcscpy() function is the wide-character equivalent of the strcpy(3) function. It copies the wide-character string pointed to by src, including the terminati
manpages/ifcfg-bonding.5.html
ifcfg-bonding(5) - interface bonding configuration (ManPage)
To setup a bonding interface you need a configuration file ifcfg-bond<X> with the usual network settings. But you must add additional variables BONDING_MASTER..
manpages/libc.7.html
libc(7) - Overview of standard C libraries on Linux.........
libc.7 - The term libc is commonly used as a shorthand for the standard C library, a library of standard functions that can be used by all C programs (and somet
manpages/gnutls_compression_get_id.3.html
gnutls_compression_get_id(3) - API function - Linux man page
The names are compared in a case insensitive way. RETURNS an id of the specified in a string compression method, or GNUTLS_COMP_UNKNOWN on error. REPORTING BUGS
manpages/kismet_drone.conf.5.html
kismet_drone.conf(5) Wireless sniffing and monitoring drone
kismet_drone uses a minimalized configuration file, similar in options to the main kismet server configuration file. By default, the drone config is in /usr/loc
