.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 1997 Nicolás Lichtmaier .\" Created Wed Jul 2 23:27:34 ART 1997 .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" .\" 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 "20 ​​Julio 2023" "Páginas de manual de Linux 6.05.01" .SH NOMBRE updwtmp, logwtmp \- añade una entrada al archivo wtmp .SH BIBLIOTECA Biblioteca de utilidades del sisteam (\fIlibutil\fP, \fI\-lutil\fP) .SH SINOPSIS .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\fIline\fP\fB, const char *\fP\fInombre\fP\fB, const char *\fP\fIequipo\fP\fB);\fP .fi .SH DESCRIPCIÓN \fBupdwtmp\fP() añade la estructura utmp \fIut\fP al fichero wtmp. .PP \fBlogwtmp\fP() crea una estructura utmp utilizando \fIlínea\fP, \fInombre\fP, \fIequipo\fP, instante de tiempo actual e identificador del proceso actual. A continuación, llama a \fBupdwtmp\fP() para añadir la estructura al fichero wtmp. .SH ARCHIVOS .TP \fI/var/log/wtmp\fP base de datos de anteriores inicios de sesión de usuario .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interfaz Atributo Valor T{ .na .nh \fBupdwtmp\fP(), \fBlogwtmp\fP() T} Seguridad del hilo MT\-Unsafe sig:ALRM timer .TE .sp 1 .SH VERSIONES For consistency with the other "utmpx" functions (see \fBgetutxent\fP(3)), glibc provides (since glibc 2.1): .PP .in +4n .EX \fB#define _GNU_SOURCE \fP/* See feature_test_macros(7) */ \fB#include \fP \fBvoid updwtmpx (const char *\fP\fIwtmpx_file\fP\fB, const struct utmpx *\fP\fIutx\fP\fB);\fP .EE .in .PP This function performs the same task as \fBupdwtmp\fP(), but differs in that it takes a \fIutmpx\fP structure as its last argument. .SH ESTÁNDARES None. .SH HISTORIAL Solaris, NetBSD. .SH "VÉASE TAMBIÉN" \fBgetutxent\fP(3), \fBwtmp\fP(5) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Gerardo Aburruzaga García , Juan Piernas y Marcos Fouces . .PP Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. .PP Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org .ME .