man.bsd.lv manual page server

Manual Page Search Parameters

LOGINX(3) Library Functions Manual LOGINX(3)

loginx, logoutx, logwtmpxlogin utility functions

library “libutil”

#include <sys/types.h>
#include <libutil.h>

void
loginx(const struct utmpx *ut);

int
logoutx(const char *line, int status, int type);

void
logwtmpx(const char *line, const char *name, const char *host, int status, int type);

The (), logoutx(), and logwtmpx() operate on the utmpx(5) database of currently logged in users, and the wtmpx(5) database of logins and logouts.

The () function updates the /var/run/utmpx and /var/log/wtmpx databases with the information from ut.

() updates the entry corresponding to line with the type and status from type and status.

() writes an entry filled with data from line, name, host, status, and type to the wtmpx(5) database.

logoutx() returns 1 on success, and 0 if no corresponding entry was found.

endutxent(3), utmpx(5)

September 26, 2002 DragonFly-5.6.1