Add two new passwd file update functions:
- The pw_setprefix() function defines the root directory used for passwd file updates. If the prefix is set to /newroot pw_lock() will operate on /newroot/etc/ptmp afterwards. The default prefix is an empty string. - The pw_getprefix() function returns the root directory which is currently used for passwd file updates.
This commit is contained in:
parent
a7aeb277d4
commit
7af73c0cfd
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: util.h,v 1.18 2000/09/18 16:37:23 ad Exp $ */
|
||||
/* $NetBSD: util.h,v 1.19 2000/12/06 13:47:10 tron Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995
|
||||
@ -60,32 +60,35 @@ struct termios;
|
||||
struct utmp;
|
||||
struct winsize;
|
||||
|
||||
pid_t forkpty(int *, char *, struct termios *, struct winsize *);
|
||||
char *fparseln(FILE *, size_t *, size_t *, const char[3], int);
|
||||
int getmaxpartitions(void);
|
||||
int getrawpartition(void);
|
||||
void login(const struct utmp *);
|
||||
int login_tty(int);
|
||||
int logout(const char *);
|
||||
void logwtmp(const char *, const char *, const char *);
|
||||
int opendisk(const char *, int, char *, size_t, int);
|
||||
int openpty(int *, int *, char *, struct termios *, struct winsize *);
|
||||
void pidfile(const char *);
|
||||
int pidlock(const char *, int, pid_t *, const char *);
|
||||
int pw_abort(void);
|
||||
void pw_copy(int, int, struct passwd *, struct passwd *);
|
||||
void pw_edit(int, const char *);
|
||||
void pw_error(const char *, int, int);
|
||||
void pw_getconf(char *, size_t, const char *, const char *);
|
||||
void pw_init(void);
|
||||
int pw_lock(int);
|
||||
int pw_mkdb(void);
|
||||
void pw_prompt(void);
|
||||
int secure_path(const char *);
|
||||
int ttyaction(const char *, const char *, const char *);
|
||||
int ttylock(const char *, int, pid_t *);
|
||||
char *ttymsg(struct iovec *, int, const char *, int);
|
||||
int ttyunlock(const char *);
|
||||
pid_t forkpty(int *, char *, struct termios *, struct winsize *);
|
||||
char *fparseln(FILE *, size_t *, size_t *, const char[3], int);
|
||||
int getmaxpartitions(void);
|
||||
int getrawpartition(void);
|
||||
void login(const struct utmp *);
|
||||
int login_tty(int);
|
||||
int logout(const char *);
|
||||
void logwtmp(const char *, const char *, const char *);
|
||||
int opendisk(const char *, int, char *, size_t, int);
|
||||
int openpty(int *, int *, char *, struct termios *,
|
||||
struct winsize *);
|
||||
void pidfile(const char *);
|
||||
int pidlock(const char *, int, pid_t *, const char *);
|
||||
int pw_abort(void);
|
||||
void pw_copy(int, int, struct passwd *, struct passwd *);
|
||||
void pw_edit(int, const char *);
|
||||
void pw_error(const char *, int, int);
|
||||
void pw_getconf(char *, size_t, const char *, const char *);
|
||||
const char *pw_getprefix(void);
|
||||
void pw_init(void);
|
||||
int pw_lock(int);
|
||||
int pw_mkdb(void);
|
||||
void pw_prompt(void);
|
||||
int pw_setprefix(const char *);
|
||||
int secure_path(const char *);
|
||||
int ttyaction(const char *, const char *, const char *);
|
||||
int ttylock(const char *, int, pid_t *);
|
||||
char *ttymsg(struct iovec *, int, const char *, int);
|
||||
int ttyunlock(const char *);
|
||||
__END_DECLS
|
||||
|
||||
#endif /* !_UTIL_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user