.\" -*- coding: UTF-8 -*- .\" Copyright (C) 2005 Robert Love .\" and Copyright (C) 2008, Michael Kerrisk .\" .\" %%%LICENSE_START(GPLv2+_DOC_FULL) .\" This is free documentation; you can redistribute it and/or .\" modify it under the terms of the GNU General Public License as .\" published by the Free Software Foundation; either version 2 of .\" the License, or (at your option) any later version. .\" .\" The GNU General Public License's references to "object code" .\" and "executables" are to be interpreted as the output of any .\" document formatting or typesetting system, including .\" intermediate and printed output. .\" .\" This manual is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public .\" License along with this manual; if not, see .\" . .\" %%%LICENSE_END .\" .\" 2005-07-19 Robert Love - initial version .\" 2006-02-07 mtk, minor changes .\" 2008-10-10 mtk: add description of inotify_init1() .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH INOTIFY_INIT 2 "11 avril 2020" Linux "Manuel du programmeur Linux" .SH NOM inotify_init, inotify_init1 \- Initialiser une instance inotify .SH SYNOPSIS .nf \fB#include \fP .PP \fBint inotify_init(void);\fP \fBint inotify_init1(int \fP\fIflags\fP\fB);\fP .fi .SH DESCRIPTION Pour un aperçu de l’interface de programmation inotify, consultez \fBinotify\fP(7). .PP \fBinotify_init\fP() initialise une nouvelle instance inotify et renvoie un descripteur de fichier associé à une nouvelle file d'événements inotify. .PP Si \fIflags\fP vaut\ 0, alors \fBinotify_init1\fP() est identique à \fBinotify_init\fP(). Les valeurs suivantes peuvent être combinées avec un OU binaire dans le paramètre \fIflags\fP pour obtenir différents comportements\ : .TP \fBIN_NONBLOCK\fP Placer l'attribut d'état de fichier \fBO_NONBLOCK\fP sur la description du fichier ouvert référencée par le nouveau descripteur de fichier (consulter \fBopen\fP(2)). Utiliser cet attribut économise des appels supplémentaires à \fBfcntl\fP(2) pour obtenir le même résultat. .TP \fBIN_CLOEXEC\fP Placer l'attribut «\ close\-on\-exec\ » (\fBFD_CLOEXEC\fP) sur le nouveau descripteur de fichier. Consultez la description de l'attribut \fBO_CLOEXEC\fP dans \fBopen\fP(2) pour savoir pourquoi cela peut être utile. .SH "VALEUR RENVOYÉE" S'ils réussissent, ces appels système renvoient un nouveau descripteur de fichier. En cas d'erreur, ils renvoient\ \-1 et remplissent \fIerrno\fP avec la valeur d'erreur. .SH ERREURS .TP \fBEINVAL\fP (\fBinotify_init1\fP()) Une valeur incorrecte a été indiquée dans \fIflags\fP. .TP \fBEMFILE\fP La limite du nombre total d'instances inotify par utilisateur a été atteinte. .TP \fBEMFILE\fP La limite du nombre de descripteurs de fichiers par processus a été atteinte. .TP \fBENFILE\fP La limite du nombre total de fichiers ouverts pour le système entier a été atteinte. .TP \fBENOMEM\fP Pas assez de mémoire pour le noyau. .SH VERSIONS \fBinotify_init\fP() est apparu dans Linux 2.6.13\ ; la glibc le gère depuis la version\ 2.4. \fBinotify_init1\fP() a été ajouté dans Linux\ 2.6.27\ ; la glibc le gère depuis la version\ 2.9. .SH CONFORMITÉ Ces appels système sont spécifiques à Linux. .SH "VOIR AUSSI" \fBinotify_add_watch\fP(2), \fBinotify_rm_watch\fP(2), \fBinotify\fP(7) .SH COLOPHON Cette page fait partie de la publication\ 5.10 du projet \fIman\-pages\fP Linux. Une description du projet et des instructions pour signaler des anomalies et la dernière version de cette page peuvent être trouvées à l'adresse \%https://www.kernel.org/doc/man\-pages/. .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 et David Prévot . 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. 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 .