.\" -*- coding: UTF-8 -*- .\" Copyright (C) 2001 Andries Brouwer . .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH UNLOCKED_STDIO 3 "15 Septiembre 2017" "" "Manual del Programador de Linux" .SH NOMBRE getc_unlocked, getchar_unlocked, putc_unlocked, putchar_unlocked \- nonlocking stdio functions .SH SINOPSIS .nf \fB#include \fP .PP \fBint getc_unlocked(FILE *\fP\fIstream\fP\fB);\fP \fBint getchar_unlocked(void);\fP \fBint putc_unlocked(int \fP\fIc\fP\fB, FILE *\fP\fIstream\fP\fB);\fP \fBint putchar_unlocked(int \fP\fIc\fP\fB);\fP .PP \fBvoid clearerr_unlocked(FILE *\fP\fIstream\fP\fB);\fP \fBint feof_unlocked(FILE *\fP\fIstream\fP\fB);\fP \fBint ferror_unlocked(FILE *\fP\fIstream\fP\fB);\fP \fBint fileno_unlocked(FILE *\fP\fIstream\fP\fB);\fP \fBint fflush_unlocked(FILE *\fP\fIstream\fP\fB);\fP \fBint fgetc_unlocked(FILE *\fP\fIstream\fP\fB);\fP \fBint fputc_unlocked(int \fP\fIc\fP\fB, FILE *\fP\fIstream\fP\fB);\fP \fBsize_t fread_unlocked(void *\fP\fIptr\fP\fB, size_t \fP\fIsize\fP\fB, size_t \fP\fIn\fP\fB,\fP \fB FILE *\fP\fIstream\fP\fB);\fP \fBsize_t fwrite_unlocked(const void *\fP\fIptr\fP\fB, size_t \fP\fIsize\fP\fB, size_t \fP\fIn\fP\fB,\fP \fB FILE *\fP\fIstream\fP\fB);\fP .PP \fBchar *fgets_unlocked(char *\fP\fIs\fP\fB, int \fP\fIn\fP\fB, FILE *\fP\fIstream\fP\fB);\fP \fBint fputs_unlocked(const char *\fP\fIs\fP\fB, FILE *\fP\fIstream\fP\fB);\fP \fB#include \fP .PP \fBwint_t getwc_unlocked(FILE *\fP\fIstream\fP\fB);\fP \fBwint_t getwchar_unlocked(void);\fP \fBwint_t fgetwc_unlocked(FILE *\fP\fIstream\fP\fB);\fP \fBwint_t fputwc_unlocked(wchar_t \fP\fIwc\fP\fB, FILE *\fP\fIstream\fP\fB);\fP \fBwint_t putwc_unlocked(wchar_t \fP\fIwc\fP\fB, FILE *\fP\fIstream\fP\fB);\fP \fBwint_t putwchar_unlocked(wchar_t \fP\fIwc\fP\fB);\fP \fBwchar_t *fgetws_unlocked(wchar_t *\fP\fIws\fP\fB, int \fP\fIn\fP\fB, FILE *\fP\fIstream\fP\fB);\fP \fBint fputws_unlocked(const wchar_t *\fP\fIws\fP\fB, FILE *\fP\fIstream\fP\fB);\fP .fi .PP .RS -4 Requisitos de Macros de Prueba de Características para glibc (véase \fBfeature_test_macros\fP(7)): .ad l .RE .PP \fBgetc_unlocked\fP(), \fBgetchar_unlocked\fP(), \fBputc_unlocked\fP(), \fBputchar_unlocked\fP(): .RS 4 /* Since glibc 2.24: */ _POSIX_C_SOURCE\ >=\ 199309L || /* Glibc versions <= 2.23: */ _POSIX_C_SOURCE || /* Glibc versions <= 2.19: */ _SVID_SOURCE || _BSD_SOURCE .RE .PP \fBclearerr_unlocked\fP(), \fBfeof_unlocked\fP(), \fBferror_unlocked\fP(), \fBfileno_unlocked\fP(), \fBfflush_unlocked\fP(), \fBfgetc_unlocked\fP(), \fBfputc_unlocked\fP(), \fBfread_unlocked\fP(), \fBfwrite_unlocked\fP(): .RS 4 /* Glibc since 2.19: */ _DEFAULT_SOURCE || /* Glibc versions <= 2.19: */ _SVID_SOURCE || _BSD_SOURCE .RE .PP \fBfgets_unlocked\fP(), \fBfputs_unlocked\fP(), \fBgetwc_unlocked\fP(), \fBgetwchar_unlocked\fP(), \fBfgetwc_unlocked\fP(), \fBfputwc_unlocked\fP(), \fBputwchar_unlocked\fP(), \fBfgetws_unlocked\fP(), \fBfputws_unlocked\fP(): .RS 4 _GNU_SOURCE .RE .ad b .SH DESCRIPCIÓN Cada una de estas funciones tiene el mismo comportamiento que sus homólogas sin el sufijo "_unlocked", salvo que no emplean bloqueo (no establecen bloqueos por sí mismas, y no comprueban la presencia de bloqueos establecidos por otros) y, por lo tanto, no son seguras en un entorno con hilos. Véase \fBflockfile\fP(3). .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .ad l .TS allbox; lbw20 lb lb l l l. Interfaz Atributo Valor T{ \fBgetc_unlocked\fP(), \fBputc_unlocked\fP(), \fBclearerr_unlocked\fP(), \fBfflush_unlocked\fP(), \fBfgetc_unlocked\fP(), \fBfputc_unlocked\fP(), \fBfread_unlocked\fP(), \fBfwrite_unlocked\fP(), \fBfgets_unlocked\fP(), \fBfputs_unlocked\fP(), \fBgetwc_unlocked\fP(), \fBfgetwc_unlocked\fP(), \fBfputwc_unlocked\fP(), \fBputwc_unlocked\fP(), \fBfgetws_unlocked\fP(), \fBfputws_unlocked\fP() T} Seguridad del hilo MT\-Safe race:stream T{ \fBgetchar_unlocked\fP(), \fBgetwchar_unlocked\fP() T} Seguridad del hilo MT\-Unsafe race:stdin T{ \fBputchar_unlocked\fP(), \fBputwchar_unlocked\fP() T} Seguridad del hilo MT\-Unsafe race:stdout T{ \fBfeof_unlocked\fP(), \fBferror_unlocked\fP(), \fBfileno_unlocked\fP() T} Seguridad del hilo Multi\-hilo seguro .TE .ad .SH "CONFORME A" The four functions \fBgetc_unlocked\fP(), \fBgetchar_unlocked\fP(), \fBputc_unlocked\fP(), \fBputchar_unlocked\fP() are in POSIX.1\-2001 and POSIX.1\-2008. .PP .\" E.g., in HP-UX 10.0. In HP-UX 10.30 they are called obsolescent, and .\" moved to a compatibility library. .\" Available in HP-UX 10.0: clearerr_unlocked, fclose_unlocked, .\" feof_unlocked, ferror_unlocked, fflush_unlocked, fgets_unlocked, .\" fgetwc_unlocked, fgetws_unlocked, fileno_unlocked, fputs_unlocked, .\" fputwc_unlocked, fputws_unlocked, fread_unlocked, fseek_unlocked, .\" ftell_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked, .\" getw_unlocked, getwc_unlocked, getwchar_unlocked, putc_unlocked, .\" putchar_unlocked, puts_unlocked, putws_unlocked, putw_unlocked, .\" putwc_unlocked, putwchar_unlocked, rewind_unlocked, setvbuf_unlocked, .\" ungetc_unlocked, ungetwc_unlocked. Las variantes no estándar de \fB*_unlocked\fP() están presentes en unos pocos sistemas UNIX, y están desponibles en versiones recientes de glibc. No deberían ser utilizadas. .SH "VÉASE TAMBIÉN" \fBflockfile\fP(3), \fBstdio\fP(3) .SH COLOFÓN Esta página es parte de la versión 5.10 del proyecto Linux \fIman\-pages\fP. Puede encontrar una descripción del proyecto, información sobre cómo informar errores y la última versión de esta página en \%https://www.kernel.org/doc/man\-pages/. .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Miguel Pérez Ibars . Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org>. .ME .