Node:XPG Functions, Next:Logging In and Out, Previous:Manipulating the Database, Up:User Accounting Database
These functions, described in the X/Open Portability Guide, are declared
in the header file utmpx.h
.
struct utmpx | Data Type |
The utmpx data structure contains at least the following members:
struct utmpx is identical to struct
utmp except for the fact that including utmpx.h does not make
visible the declaration of struct exit_status .
|
ut_type
member of the utmpx
structure. The values are
integer constants and are, on the GNU system, identical to the
definitions in utmp.h
.
EMPTY
RUN_LVL
BOOT_TIME
OLD_TIME
NEW_TIME
INIT_PROCESS
LOGIN_PROCESS
USER_PROCESS
DEAD_PROCESS
ut_line
, ut_id
and ut_user
arrays
can be found using the sizeof
operator.
void setutxent (void) | Function |
This function is similar to setutent . On the GNU system it is
simply an alias for setutent .
|
struct utmpx * getutxent (void) | Function |
The getutxent function is similar to getutent , but returns
a pointer to a struct utmpx instead of struct utmp . On
the GNU system it simply is an alias for getutent .
|
void endutxent (void) | Function |
This function is similar to endutent . On the GNU system it is
simply an alias for endutent .
|
struct utmpx * getutxid (const struct utmpx *id) | Function |
This function is similar to getutid , but uses struct utmpx
instead of struct utmp . On the GNU system it is simply an alias
for getutid .
|
struct utmpx * getutxline (const struct utmpx *line) | Function |
This function is similar to getutid , but uses struct utmpx
instead of struct utmp . On the GNU system it is simply an alias
for getutline .
|
struct utmpx * pututxline (const struct utmpx *utmp) | Function |
The pututxline function is functionally identical to
pututline , but uses struct utmpx instead of struct
utmp . On the GNU system, pututxline is simply an alias for
pututline .
|
int utmpxname (const char *file) | Function |
The utmpxname function is functionally identical to
utmpname . On the GNU system, utmpxname is simply an
alias for utmpname .
|
struct utmp
and an XPG
struct utmpx
with the following functions. On the GNU system,
these functions are merely copies, since the two structures are
identical.
int getutmp (const struct utmpx *utmpx, struct utmp *utmp) | Function |
getutmp copies the information, insofar as the structures are
compatible, from utmpx to utmp.
|
int getutmpx (const struct utmp *utmp, struct utmpx *utmpx) | Function |
getutmpx copies the information, insofar as the structures are
compatible, from utmp to utmpx.
|