.\" -*- 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 Septiembre 2017" GNU "Manual del Programador de Linux" .SH NOMBRE updwtmp, logwtmp \- añade una entrada al fichero wtmp .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\fIname\fP\fB, const char *\fP\fIhost\fP\fB);\fP .fi .PP Para \fBlogwtmp\fP(), enlazar con \fI\-lutil\fP. .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, \fIhost\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; lb lb lbw24 l l l. Interfaz Atributo Valor T{ \fBupdwtmp\fP(), .br \fBlogwtmp\fP() T} Seguridad del hilo MT\-Unsafe sig:ALRM timer .TE .sp 1 .SH "CONFORME A" Not in POSIX.1. Present on Solaris, NetBSD, and perhaps other systems. .SH NOTAS For consistency with the other "utmpx" functions (see \fBgetutxent\fP(3)), glibc provides (since 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 This function performs the same task as \fBupdwtmp\fP(), but differs in that it takes a \fIutmpx\fP structure as its last argument. .SH "VÉASE TAMBIÉN" \fBgetutxent\fP(3), \fBwtmp\fP(5) .SH COLOFÓN Esta página es parte de la versión 5.10 del proyecto Linux \fIman\-pages\fP. Puede encontrar una descripción del proyecto, información sobre cómo informar errores y la última versión de esta página en \%https://www.kernel.org/doc/man\-pages/. .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Gerardo Aburruzaga García y Juan Piernas . 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. 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 .