Switch to NetBSD passwd format
Based on work by Vivek Prakash and Gianluca Guida. See UPDATING about caveats on currently existing accounts. . restores netbsd libc pwcache functions
This commit is contained in:
@@ -62,6 +62,10 @@
|
||||
#define PGOFSET (NBPG-1) /* byte offset into page */
|
||||
#define NPTEPG (NBPG/(sizeof (pt_entry_t)))
|
||||
|
||||
#ifndef MAXPHYS
|
||||
#define MAXPHYS (64 * 1024) /* max raw I/O transfer size */
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Mach derived conversion macros
|
||||
*/
|
||||
|
||||
@@ -43,7 +43,9 @@
|
||||
#define _PATH_LOGIN_CONF "/etc/login.conf"
|
||||
|
||||
#define LOGIN_OSETGROUP 0x0001 /* Obsolete setgroup */
|
||||
#ifndef __minix
|
||||
#define LOGIN_SETLOGIN 0x0002 /* Set login */
|
||||
#endif
|
||||
#define LOGIN_SETPATH 0x0004 /* Set path */
|
||||
#define LOGIN_SETPRIORITY 0x0008 /* Set priority */
|
||||
#define LOGIN_SETRESOURCES 0x0010 /* Set resource limits */
|
||||
|
||||
@@ -61,14 +61,6 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#if defined(__minix) && defined(_MINIX_COMPAT)
|
||||
#include <compat/pwd.h>
|
||||
/* Avoid inclusion of the rest of the header. */
|
||||
#ifndef _PWD_H_
|
||||
#define _PWD_H_
|
||||
#endif
|
||||
#endif /* __minix && _MINIX_COMPAT */
|
||||
|
||||
#ifndef _PWD_H_
|
||||
#define _PWD_H_
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@ struct dirent { /* Largest entry (8 slots) */
|
||||
};
|
||||
|
||||
#if defined(_NETBSD_SOURCE)
|
||||
#define MAXNAMLEN 511
|
||||
#define d_fileno d_ino
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user