.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 1995, James R. Van Zandt .\" Copyright 2006-2014, Michael Kerrisk .\" Copyright, the authors of the Linux man-pages project .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH mkfifo 3 "8 février 2026" "Pages du manuel de Linux 6.18" .SH NOM mkfifo, mkfifoat \- Créer un fichier spécial FIFO (un tube nommé) .SH BIBLIOTHÈQUE Bibliothèque C standard (\fIlibc\fP,\ \fI\-lc\fP) .SH SYNOPSIS .nf \fB#include \fP \fB#include \fP .P \fBint mkfifo(const char *\fP\fIpath\fP\fB, mode_t \fP\fImode\fP\fB);\fP .P \fB#include \fP/* Définition des constantes AT_* */ \fB#include \fP .P \fBint mkfifoat(int \fP\fIdirfd\fP\fB, const char *\fP\fIpath\fP\fB, mode_t \fP\fImode\fP\fB);\fP .fi .P .RS -4 Exigences de macros de test de fonctionnalités pour la glibc (consulter \fBfeature_test_macros\fP(7)) : .RE .P \fBmkfifoat\fP() : .nf Depuis la glibc 2.10 : _POSIX_C_SOURCE >= 200809L avant la glibc 2.10 : _ATFILE_SOURCE .fi .SH DESCRIPTION \fBmkfifo\fP() makes a FIFO special file with name \fIpath\fP. \fImode\fP specifies the FIFO's permissions. It is modified by the process's \fBumask\fP in the usual way: the permissions of the created file are \fI(mode\ &\ \[ti]umask)\fP. .P Un fichier spécial FIFO est semblable à un tube (pipe), sauf qu'il est créé différemment. Plutôt qu'un canal de communication anonyme, un fichier FIFO est inséré dans le système de fichiers en appelant \fBmkfifo\fP(). .P Une fois qu'un fichier FIFO est créé, n'importe quel processus peut l'ouvrir en lecture ou écriture, comme tout fichier ordinaire. En fait, il faut ouvrir les deux extrémités simultanément avant de pouvoir effectuer une opération d'écriture ou de lecture. L'ouverture d'un FIFO en lecture est généralement bloquante, jusqu'à ce qu'un autre processus ouvre le même FIFO en écriture, et inversement. Consultez \fBfifo\fP(7) pour la gestion non bloquante d'une FIFO. .SS mkfifoat() La fonction \fBmkfifoat\fP() opère exactement de la même façon que la fonction \fBmkfifo\fP(), à une différence près (décrite ci\-dessous). .P If \fIpath\fP is relative, then it is interpreted relative to the directory referred to by the file descriptor \fIdirfd\fP (rather than relative to the current working directory of the calling process, as is done by \fBmkfifo\fP() for a relative pathname). .P If \fIpath\fP is relative and \fIdirfd\fP is the special value \fBAT_FDCWD\fP, then \fIpath\fP is interpreted relative to the current working directory of the calling process (like \fBmkfifo\fP()). .P Si \fIpath\fP est absolu, alors \fIdirfd\fP est ignoré. .P Consultez \fBopenat\fP(2) pour une explication sur la nécessité de \fBmkfifoat\fP(). .SH "VALEUR RENVOYÉE" La valeur renvoyée par \fBmkfifo\fP() et par \fBmkfifoat\fP() lorsqu'elles réussissent est \fB0\fP. Si elles échouent, ces fonctions renvoient \fB\-1\fP et \fIerrno\fP est défini pour préciser l'erreur. .SH ERREURS .TP \fBEACCES\fP One of the directories in \fIpath\fP did not allow search (execute) permission. .TP \fBEBADF\fP (\fBmkfifoat\fP()) \fIpath\fP is relative but \fIdirfd\fP is neither \fBAT_FDCWD\fP nor a valid file descriptor. .TP \fBEDQUOT\fP Le quota de blocs de disque ou d'inœuds de l'utilisateur sur le système de fichiers a été atteint. .TP \fBEEXIST\fP \fIpath\fP already exists. This includes the case where \fIpath\fP is a symbolic link, dangling or not. .TP \fBENAMETOOLONG\fP Either the total size of \fIpath\fP is greater than \fBPATH_MAX\fP, or an individual filename component has a length greater than \fBNAME_MAX\fP. In the GNU system, there is no imposed limit on overall filename length, but some filesystems may place limits on the length of a component. .TP \fBENOENT\fP Un des répertoires du chemin d'accès \fIchemin\fP n'existe pas ou est un lien symbolique pointant nulle part. .TP \fBENOSPC\fP Le répertoire, ou le système de fichiers, n'a pas assez de place pour un nouveau fichier. .TP \fBENOTDIR\fP Un élément, utilisé comme répertoire, du chemin d'accès \fIchemin\fP n'est pas en fait un répertoire. .TP \fBENOTDIR\fP (\fBmkfifoat\fP()) \fIpath\fP is relative and \fIdirfd\fP is a file descriptor referring to a file other than a directory. .TP \fBEROFS\fP \fIpath\fP refers to a read\-only filesystem. .SH ATTRIBUTS Pour une explication des termes utilisés dans cette section, consulter \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interface Attribut Valeur T{ .na .nh \fBmkfifo\fP(), \fBmkfifoat\fP() T} Sécurité des threads MT\-Safe .TE .SH VERSIONS Elle est implémentée au moyen de \fBmknodat\fP(2) .SH NORMES POSIX.1\-2008. .SH HISTORIQUE .TP \fBmkfifo\fP() POSIX.1\-2001. .TP \fBmkfifoat\fP() : glibc 2.4. POSIX.1\-2008. .SH "VOIR AUSSI" \fBmkfifo\fP(1), \fBclose\fP(2), \fBopen\fP(2), \fBread\fP(2), \fBstat\fP(2), \fBumask\fP(2), \fBwrite\fP(2), \fBfifo\fP(7) .PP .SH TRADUCTION La traduction française de cette page de manuel a été créée par Christophe Blaess , Stéphan Rafin , Thierry Vignaud , François Micaux, Alain Portal , Jean-Philippe Guérard , Jean-Luc Coulon (f5ibh) , Julien Cristau , Thomas Huriaux , Nicolas François , Florentin Duneau , Simon Paillard , Denis Barbier , David Prévot , Cédric Boutillier , Frédéric Hantrais et Jean-Pierre Giraud . .PP Cette traduction est une documentation libre ; veuillez vous reporter à la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 .UE concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE. .PP Si vous découvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message à .MT debian-l10n-french@lists.debian.org .ME .