Provided by: manpages-es-dev_4.15.0-9_all bug

NOMBRE

       updwtmp, logwtmp - añade una entrada al fichero wtmp

SINOPSIS

       #include <utmp.h>

       void updwtmp(const char *wtmp_file, const struct utmp *ut);
       void logwtmp(const char *line, const char *name, const char *host);

       Para logwtmp(), enlazar con -lutil.

DESCRIPCIÓN

       updwtmp() añade la estructura utmp ut al fichero wtmp.

       logwtmp()   constructs  a utmp structure using line, name, host, current time, and current
       process ID.  Then it calls updwtmp()  to append the structure to the wtmp file.

ARCHIVOS

       /var/log/wtmp
              base de datos de anteriores inicios de sesión de usuario

ATRIBUTOS

       Para obtener una explicación de los términos usados en esta sección, véase attributes(7).

       ┌─────────────────────────────────────────┬────────────────────┬──────────────────────────┐
       │InterfazAtributoValor                    │
       ├─────────────────────────────────────────┼────────────────────┼──────────────────────────┤
       │updwtmp(), logwtmp()                     │ Seguridad del hilo │ MT-Unsafe sig:ALRM timer │
       └─────────────────────────────────────────┴────────────────────┴──────────────────────────┘

CONFORME A

       Not in POSIX.1.  Present on Solaris, NetBSD, and perhaps other systems.

NOTAS

       For consistency with the other "utmpx" functions (see getutxent(3)), glibc provides (since
       version 2.1):

           #include <utmpx.h>
           void updwtmpx (const char *wtmpx_file, const struct utmpx *utx);

       This  function  performs  the same task as updwtmp(), but differs in that it takes a utmpx
       structure as its last argument.

VÉASE TAMBIÉN

       getutxent(3), wtmp(5)

COLOFÓN

       Esta página es parte de la versión 5.13 del proyecto Linux man-pages. 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/.

TRADUCCIÓN

       La traducción al español de esta página del  manual  fue  creada  por  Gerardo  Aburruzaga
       García <gerardo.aburruzaga@uca.es> y Juan Piernas <piernas@ditec.um.es>

       Esta  traducción  es  documentación  libre;  lea  la  GNU General Public License Version 3
       ⟨https://www.gnu.org/licenses/gpl-3.0.html⟩ 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 ⟨debian-l10n-spanish@lists.debian.org⟩.