.\" -*- coding: UTF-8 -*- .\" Copyright 1997 Nicolás Lichtmaier .\" Created Wed Jul 2 23:27:34 ART 1997 .\" .\" %%%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 .\" .\" Added info on availability, aeb, 971207 .\" Added -lutil remark, 030718 .\" 2008-07-02, mtk, document updwtmpx() .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH UPDWTMP 3 "15 septembre 2017" GNU "Manuel du programmeur Linux" .SH NOM updwtmp, logwtmp \- Ajouter une entrée dans le fichier wtmp .SH SYNOPSIS .nf \fB#include \fP .PP \fBvoid updwtmp(const char *\fP\fIwtmp_file\fP\fB, const struct utmp *\fP\fIut\fP\fB);\fP \fBvoid logwtmp(const char *\fP\fIligne\fP\fB, const char *\fP\fInom\fP\fB, const char *\fP\fIhôte\fP\fB);\fP .fi .PP Pour \fBlogwtmp\fP(), effectuez l'édition des liens avec l'option \fI\-lutil\fP. .SH DESCRIPTION \fBupdwtmp\fP() ajoute une structure utmp \fIut\fP dans le fichier wtmp. .PP \fBlogwtmp\fP() construit une structure utmp en utilisant les valeurs \fIligne\fP, \fInom\fP, \fIhôte\fP, l'heure actuelle et le numéro de processus appelant. Ensuite, il appelle \fBupdwtmp\fP() pour ajouter cette structure au fichier wtmp. .SH FICHIERS .TP \fI/var/log/wtmp\fP base de données des connexions passées. .SH ATTRIBUTS Pour une explication des termes utilisés dans cette section, consulter \fBattributes\fP(7). .TS allbox; lb lb lbw24 l l l. Interface Attribut Valeur T{ \fBupdwtmp\fP(), .br \fBlogwtmp\fP() T} Sécurité des threads MT\-Unsafe sig:ALRM timer .TE .sp 1 .SH CONFORMITÉ Pas dans POSIX.1. Présente sur Solaris, NetBSD et peut\-être sur d'autres systèmes. .SH NOTES Pour cohérence avec les autres fonctions «\ utmpx\ » (consultez \fBgetutxent\fP(3)), la glibc fournit (depuis la version\ 2.1)\ : .PP .in +4n .EX \fB#include \fP \fBvoid updwtmpx (const char *\fP\fIwtmpx_file\fP\fB, const struct utmpx *\fP\fIutx\fP\fB);\fP .EE .in .PP Cette fonction effectue les mêmes tâches que \fBupdwtmp\fP(), mais en diffère en ce qu'elle prend une structure \fIutmpx\fP comme dernier paramètre. .SH "VOIR AUSSI" \fBgetutxent\fP(3), \fBwtmp\fP(5) .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 , David Prévot , Jean-Baptiste Holcroft et Grégoire Scano . 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 .