.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" References consulted: .\" Linux libc source code .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 17:46:57 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified 2001-11-17, aeb .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH tmpfile 3 "20 ​​Julio 2023" "Páginas de manual de Linux 6.05.01" .SH NOMBRE tmpfile \- crea un fichero temporal .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP, \fI\-lc\fP) .SH SINOPSIS .nf \fB#include \fP .PP \fBFILE *tmpfile(void);\fP .fi .SH DESCRIPCIÓN The \fBtmpfile\fP() function opens a unique temporary file in binary read/write (w+b) mode. The file will be automatically deleted when it is closed or the program terminates. .SH "VALOR DEVUELTO" La función \fBtmpfile\fP() devuelve un descriptor de flujo, o bien NULL si no se puede generar un nombre único de fichero o el fichero único no se puede abrir. En el último caso, se modifica \fIerrno\fP para indicar el error. .SH ERRORES .TP \fBEACCES\fP Permiso de búsqueda denegado para el directorio correspondiente al prefijo de trayectoria del fichero. .TP \fBEEXIST\fP Imposible generar un nombre único de fichero. .TP \fBEINTR\fP La llamada fue interrumpida por una señal; vea \fBsignal\fP(7). .TP \fBEMFILE\fP Se ha alcanzado el límite de descriptores de archivo abiertos para cada proceso. .TP \fBENFILE\fP Se ha alcanzado el límite máximo de archivos abiertos para el conjunto del sistema. .TP \fBENOSPC\fP No hay espacio en el directorio para añadir el nuevo nombre de fichero. .TP \fBEROFS\fP Sistema de ficheros de sólo lectura. .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 \fBtmpfile\fP() T} Seguridad del hilo Multi\-hilo seguro .TE .sp 1 .SH VERSIONES The standard does not specify the directory that \fBtmpfile\fP() will use. glibc will try the path prefix \fIP_tmpdir\fP defined in \fI\fP, and if that fails, then the directory \fI/tmp\fP. .SH ESTÁNDARES C11, POSIX.1\-2008. .SH HISTORIAL POSIX.1\-2001, C89, SVr4, 4.3BSD, SUSv2. .SH NOTAS POSIX.1\-2001 specifies: an error message may be written to \fIstdout\fP if the stream cannot be opened. .SH "VÉASE TAMBIÉN" \fBexit\fP(3), \fBmkstemp\fP(3), \fBmktemp\fP(3), \fBtempnam\fP(3), \fBtmpnam\fP(3) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Miguel Pérez Ibars . .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 .