add utmpx/wtmpx processing routines
This commit is contained in:
parent
51de4d82f7
commit
d857e8ec8a
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: util.h,v 1.22 2002/05/22 07:31:40 itojun Exp $ */
|
/* $NetBSD: util.h,v 1.23 2002/07/27 23:49:00 christos Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1995
|
* Copyright (c) 1995
|
||||||
@ -43,6 +43,7 @@
|
|||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <utmp.h>
|
#include <utmp.h>
|
||||||
|
#include <utmpx.h>
|
||||||
|
|
||||||
#define PIDLOCK_NONBLOCK 1
|
#define PIDLOCK_NONBLOCK 1
|
||||||
#define PIDLOCK_USEHOSTNAME 2
|
#define PIDLOCK_USEHOSTNAME 2
|
||||||
@ -66,9 +67,12 @@ const char *getbootfile(void);
|
|||||||
int getmaxpartitions(void);
|
int getmaxpartitions(void);
|
||||||
int getrawpartition(void);
|
int getrawpartition(void);
|
||||||
void login(const struct utmp *);
|
void login(const struct utmp *);
|
||||||
|
void loginx(const struct utmpx *);
|
||||||
int login_tty(int);
|
int login_tty(int);
|
||||||
int logout(const char *);
|
int logout(const char *);
|
||||||
|
int logoutx(const char *, int, int);
|
||||||
void logwtmp(const char *, const char *, const char *);
|
void logwtmp(const char *, const char *, const char *);
|
||||||
|
void logwtmpx(const char *, const char *, const char *, int, int);
|
||||||
int opendisk(const char *, int, char *, size_t, int);
|
int opendisk(const char *, int, char *, size_t, int);
|
||||||
int openpty(int *, int *, char *, struct termios *,
|
int openpty(int *, int *, char *, struct termios *,
|
||||||
struct winsize *);
|
struct winsize *);
|
||||||
|
Loading…
Reference in New Issue
Block a user