updwtmp(3) Library Functions Manual updwtmp(3) NOM updwtmp, logwtmp - Ajouter une entree dans le fichier wtmp BIBLIOTHEQUE Bibliotheque d'utilitaires systeme (libutil, -lutil) SYNOPSIS #include 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 donnees des connexions passees. ATTRIBUTS Pour une explication des termes utilises dans cette section, consulter attributes(7). +----------------+--------------------------+--------------------------+ |Interface | Attribut | Valeur | +----------------+--------------------------+--------------------------+ |updwtmp(), | Securite des threads | MT-Unsafe sig:ALRM timer | |logwtmp() | | | +----------------+--------------------------+--------------------------+ VERSIONS Pour coherence 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 void updwtmpx (const char *wtmpx_path, const struct utmpx *utx); Cette fonction effectue les memes taches que updwtmp(), mais en differe en ce qu'elle prend une structure utmpx comme dernier parametre. NORMES Aucun. HISTORIQUE Solaris, NetBSD. VOIR AUSSI getutxent(3), wtmp(5) TRADUCTION La traduction francaise de cette page de manuel a ete creee par Christophe Blaess , Stephan Rafin , Thierry Vignaud , Francois Micaux, Alain Portal , Jean-Philippe Guerard , Jean-Luc Coulon (f5ibh) , Julien Cristau , Thomas Huriaux , Nicolas Francois , Florentin Duneau , Simon Paillard , Denis Barbier , David Prevot , Jean-Baptiste Holcroft et Gregoire Scano Cette traduction est une documentation libre ; veuillez vous reporter a la GNU General Public License version 3 concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITE LEGALE. Si vous decouvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message a . Pages du manuel de Linux 6.18 8 fevrier 2026 updwtmp(3)