.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 1990-1991, The Regents of the University of California. .\" Copyright, the authors of the Linux man-pages project .\" .\" SPDX-License-Identifier: BSD-4-Clause-UC .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH fclose 3 "21 Septiembre 2025" "Páginas de Manual de Linux 6.17" .SH NOMBRE fclose \- cierra un flujo de datos .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP,\ \fI\-lc\fP) .SH SINOPSIS .nf \fB#include \fP .P \fBint fclose(FILE *\fP\fIstream\fP\fB);\fP .fi .SH DESCRIPCIÓN The \fBfclose\fP() function flushes the stream pointed to by \fIstream\fP (writing any buffered output data using \fBfflush\fP(3)) and closes the underlying file descriptor. .SH "VALOR DEVUELTO" Upon successful completion, 0 is returned. Otherwise, \fBEOF\fP is returned and \fIerrno\fP is set to indicate the error. In either case, any further access (including another call to \fBfclose\fP()) to the stream results in undefined behavior. .SH ERRORES .TP \fBEBADF\fP .\" This error cannot occur unless you are mixing ANSI C stdio operations and .\" low-level file operations on the same stream. If you do get this error, .\" you must have closed the stream's low-level file descriptor using .\" something like close(fileno(stream)). El descriptor de fichero subyacente a \fIflujo\fP no es válido. .P La función \fBfclose\fP() también puede fallar, y ponerse un valor en \fIerrno\fP, para cualquiera de los errores especificados para las rutinas \fBclose\fP(2), \fBwrite\fP(2) o \fBfflush\fP(3). .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interfaz Atributo Valor T{ .na .nh \fBfclose\fP() T} Seguridad del hilo Multi\-hilo seguro .TE .SH ESTÁNDARES C11, POSIX.1\-2008. .SH HISTORIAL C89, POSIX.1\-2001. .SH NOTAS Observe que \fBfclose\fP() sólo vacía los buffers del espacio de usuario suministrados por la biblioteca C. Para asegurar que los datos son almacenados físicamente en disco los buffers del núcleo deben ser vaciados también, p.e. con \fBsync\fP(2) o \fBfsync\fP(2). .SH "VÉASE TAMBIÉN" \fBclose\fP(2), \fBfcloseall\fP(3), \fBfflush\fP(3), \fBfileno\fP(3), \fBfopen\fP(3), \fBsetbuf\fP(3) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Gerardo Aburruzaga García y Juan Piernas . .PP 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. .PP 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 .