fflush(3) Library Functions Manual fflush(3) NOMBRE fflush - vuelca los datos de un flujo a disco BIBLIOTECA Biblioteca Estandar C (libc, -lc) SINOPSIS #include int fflush(FILE *_Nullable stream); DESCRIPCION For output streams, fflush() forces a write of all user-space buffered data for the given output or update stream via the stream's underlying write function. For input streams associated with seekable files (e.g., disk files, but not pipes or terminals), fflush() discards any buffered data that has been fetched from the underlying file, but has not been consumed by the application. El estado de apertura del flujo no se ve afectado. Si el argumento flujo es NULL, fflush() hace un volcado a disco de todos los flujos de salida que esten abiertos. Para la version no-bloqueante, vease unlocked_stdio(3). VALOR DEVUELTO Upon successful completion 0 is returned. Otherwise, EOF is returned and errno is set to indicate the error. ERRORES EBADF El argumento flujo no es un flujo abierto, o no esta abierto para escritura. La funcion fflush() puede fallar tambien, y poner un valor en errno, para cualquiera de los errores especificados para write(2). ATRIBUTOS Para obtener una explicacion de los terminos usados en esta seccion, vease attributes(7). +-----------------------------+--------------------+-------------------+ |Interfaz | Atributo | Valor | +-----------------------------+--------------------+-------------------+ |fflush() | Seguridad del hilo | Multi-hilo seguro | +-----------------------------+--------------------+-------------------+ ESTANDARES C11, POSIX.1-2008. HISTORIAL C89, POSIX.1-2001, POSIX.1-2008. POSIX.1-2001 did not specify the behavior for flushing of input streams, but the behavior is specified in POSIX.1-2008. NOTAS Observe que fflush() solo vacia los buffers del espacio de usuario suministrados por la biblioteca C. Para asegurar que los datos son almacenados fisicamente en disco los buffers del nucleo deben ser vaciados tambien, p.e. con sync(2) o fsync(2). VEASE TAMBIEN fsync(2), sync(2), write(2), fclose(3), fileno(3), fopen(3), fpurge(3), setbuf(3), unlocked_stdio(3) TRADUCCION La traduccion al espanol de esta pagina del manual fue creada por Gerardo Aburruzaga Garcia Esta traduccion es documentacion libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. Si encuentra algun error en la traduccion de esta pagina del manual, envie un correo electronico a . Paginas de manual de Linux 6.06 31 Octubre 2023 fflush(3)