POSIX.1-2001 and POSIX.1-2008, following SUSv1,
does not have any of these functions, but instead uses
.PP
-.in +4n
+.RS 4
.EX
.B #include <utmpx.h>
.PP
.B void setutxent(void);
.B void endutxent(void);
.EE
-.in
+.RE
.PP
These functions are provided by glibc,
and perform the same task as their equivalents without the "x", but use
The above functions are not thread-safe.
Glibc adds reentrant versions
.PP
-.in +4n
-.EX
+.nf
.B #include <utmp.h>
-.PP
+
.BI "int getutent_r(struct utmp *" ubuf ", struct utmp **" ubufp );
-.PP
.BI "int getutid_r(struct utmp *" ut ,
.BI " struct utmp *" ubuf ", struct utmp **" ubufp );
-.PP
.BI "int getutline_r(struct utmp *" ut ,
.BI " struct utmp *" ubuf ", struct utmp **" ubufp );
.EE
-.in
+.fi
.PP
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):