| updwtmp(3) | Library Functions Manual | updwtmp(3) |
NOM
updwtmp, logwtmp - Ajouter une entrée dans le fichier wtmp
BIBLIOTHÈQUE
Bibliothèque d'utilitaires système (libutil, -lutil)
SYNOPSIS
#include <utmp.h>
void updwtmp(const char *wtmp_path, const struct utmp *ut); void logwtmp(const char *line, const char *user, const char *host);
DESCRIPTION
updwtmp() ajoute une structure utmp ut dans le fichier wtmp.
logwtmp() constructs a utmp structure using line, user, host, current time, and current process ID. Then it calls updwtmp() to append the structure to the wtmp file.
FICHIERS
- /var/log/wtmp
- base de données des connexions passées.
ATTRIBUTS
Pour une explication des termes utilisés dans cette section, consulter attributes(7).
| Interface | Attribut | Valeur |
| updwtmp(), logwtmp() | Sécurité des threads | MT-Unsafe sig:ALRM timer |
VERSIONS
Pour cohérence avec les autres fonctions « utmpx » (consultez getutxent(3)), la glibc fournit (depuis la glibc 2.1) :
#define _GNU_SOURCE /* See feature_test_macros(7) */ #include <utmpx.h> void updwtmpx (const char *wtmpx_path, const struct utmpx *utx);
Cette fonction effectue les mêmes tâches que updwtmp(), mais en diffère en ce qu'elle prend une structure utmpx comme dernier paramètre.
NORMES
Aucun.
HISTORIQUE
Solaris, NetBSD.
VOIR AUSSI
TRADUCTION
La traduction française de cette page de manuel a été créée par Christophe Blaess https://www.blaess.fr/christophe/, Stéphan Rafin <stephan.rafin@laposte.net>, Thierry Vignaud <tvignaud@mandriva.com>, François Micaux, Alain Portal <aportal@univ-montp2.fr>, Jean-Philippe Guérard <fevrier@tigreraye.org>, Jean-Luc Coulon (f5ibh) <jean-luc.coulon@wanadoo.fr>, Julien Cristau <jcristau@debian.org>, Thomas Huriaux <thomas.huriaux@gmail.com>, Nicolas François <nicolas.francois@centraliens.net>, Florentin Duneau <fduneau@gmail.com>, Simon Paillard <simon.paillard@resel.enst-bretagne.fr>, Denis Barbier <barbier@debian.org>, David Prévot <david@tilapin.org>, Jean-Baptiste Holcroft <jean-baptiste@holcroft.fr> et Grégoire Scano <gregoire.scano@malloc.fr>
Cette traduction est une documentation libre ; veuillez vous reporter à la GNU General Public License version 3 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 à debian-l10n-french@lists.debian.org.
| 8 février 2026 | Linux man-pages 6.18 |