Change HAVE_UTMPX_H to HAVE_UTMPX.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@625 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -50,13 +50,13 @@ RCSID("$Id$");
|
|||||||
#include <initreq.h>
|
#include <initreq.h>
|
||||||
int utmp_len = MaxHostNameLen; /* sizeof(init_request.host) */
|
int utmp_len = MaxHostNameLen; /* sizeof(init_request.host) */
|
||||||
#else /* NEWINIT*/
|
#else /* NEWINIT*/
|
||||||
# ifdef HAVE_UTMPX_H
|
# ifdef HAVE_UTMPX
|
||||||
# include <utmpx.h>
|
# include <utmpx.h>
|
||||||
struct utmpx wtmp;
|
struct utmpx wtmp;
|
||||||
# else
|
# else
|
||||||
# include <utmp.h>
|
# include <utmp.h>
|
||||||
struct utmp wtmp;
|
struct utmp wtmp;
|
||||||
# endif /* HAVE_UTMPX_H */
|
# endif /* HAVE_UTMPX */
|
||||||
|
|
||||||
int utmp_len = sizeof(wtmp.ut_host);
|
int utmp_len = sizeof(wtmp.ut_host);
|
||||||
# ifndef PARENT_DOES_UTMP
|
# ifndef PARENT_DOES_UTMP
|
||||||
@@ -372,7 +372,7 @@ static char *ptsname(int fd)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_UTMPX_H
|
#ifdef HAVE_UTMPX
|
||||||
static char utid[32]; /* XXX larger than ut_id */
|
static char utid[32]; /* XXX larger than ut_id */
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -1500,14 +1500,14 @@ void start_login(char *host, int autologin, char *name)
|
|||||||
struct arg_val argv;
|
struct arg_val argv;
|
||||||
extern char *getenv(const char *);
|
extern char *getenv(const char *);
|
||||||
|
|
||||||
#ifdef HAVE_UTMPX_H
|
#ifdef HAVE_UTMPX
|
||||||
char id_buf[3];
|
char id_buf[3];
|
||||||
int ptynum;
|
int ptynum;
|
||||||
register int pid = getpid();
|
register int pid = getpid();
|
||||||
struct utmpx utmpx;
|
struct utmpx utmpx;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_UTMPX_H
|
#ifdef HAVE_UTMPX
|
||||||
/*
|
/*
|
||||||
* Create utmp entry for child
|
* Create utmp entry for child
|
||||||
*/
|
*/
|
||||||
@@ -1758,7 +1758,7 @@ int addarg(struct arg_val *argv, char *val)
|
|||||||
* remove the utmp entry for this person.
|
* remove the utmp entry for this person.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_UTMPX_H
|
#ifdef HAVE_UTMPX
|
||||||
static
|
static
|
||||||
void
|
void
|
||||||
rmut(void)
|
rmut(void)
|
||||||
@@ -1793,7 +1793,7 @@ rmut(void)
|
|||||||
} /* end of rmut */
|
} /* end of rmut */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(HAVE_UTMPX_H) && !(defined(CRAY) || defined(__hpux)) && BSD <= 43
|
#if !defined(HAVE_UTMPX) && !(defined(CRAY) || defined(__hpux)) && BSD <= 43
|
||||||
static
|
static
|
||||||
void
|
void
|
||||||
rmut(void)
|
rmut(void)
|
||||||
@@ -1969,7 +1969,7 @@ extern void rmut(void);
|
|||||||
void
|
void
|
||||||
cleanup(int sig)
|
cleanup(int sig)
|
||||||
{
|
{
|
||||||
#if defined(HAVE_UTMPX_H) || !defined(HAVE_LOGWTMP)
|
#if defined(HAVE_UTMPX) || !defined(HAVE_LOGWTMP)
|
||||||
rmut();
|
rmut();
|
||||||
#ifdef HAVE_VHANGUP
|
#ifdef HAVE_VHANGUP
|
||||||
vhangup(); /* XXX */
|
vhangup(); /* XXX */
|
||||||
|
Reference in New Issue
Block a user