26RCSIDH(sysutmp_h,
"$Id: 1b236ef092acb77dff503ae33a8dbc594abd382e $")
28#include <freeradius-devel/autoconf.h>
34#if !defined(__sun) && !defined(sgi) && !defined(hpux)
40#if defined(HAVE_UTMP_H) || defined(HAVE_UTMPX_H)
45# include <sys/fcntl.h>
47# define UT_NAMESIZE 32
48# define UT_LINESIZE 32
49# define UT_HOSTSIZE 257
50#if defined(hpux) || defined(__FreeBSD__)
51# define ut_name ut_user
53#if defined(__FreeBSD__)
65# define UT_NAMESIZE 32
66# define UT_LINESIZE 32
67# define UT_HOSTSIZE 64
70#if (defined(__FreeBSD__) && !defined(HAVE_UTMPX_H)) || defined(__NetBSD__) || defined(bsdi) || defined(__OpenBSD__) || defined(__APPLE__)
72# define UTMP_FILE "/var/run/utmp"
74# define ut_user ut_name
86#define UT_LINESIZE sizeof(((struct utmp *) NULL)->ut_line)
90#define UT_NAMESIZE sizeof(((struct utmp *) NULL)->ut_user)
94#define UT_HOSTSIZE sizeof(((struct utmp *) NULL)->ut_host)
102#define UT_LINESIZE 16
103#define UT_NAMESIZE 16
104#define UT_HOSTSIZE 16
106#define USER_PROCESS 7
107#define DEAD_PROCESS 8
109#define UTMP_FILE "/var/run/utmp"
110#define ut_name ut_user
char ut_line[UT_LINESIZE]
char ut_host[UT_HOSTSIZE]
char ut_user[UT_NAMESIZE]