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:
Ben Gras
2011-09-30 10:18:10 +00:00
parent cedeabb357
commit 5c00743626
96 changed files with 10891 additions and 1220 deletions

View File

@@ -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
*/

View File

@@ -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 */

View File

@@ -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_

View File

@@ -18,6 +18,7 @@ struct dirent { /* Largest entry (8 slots) */
};
#if defined(_NETBSD_SOURCE)
#define MAXNAMLEN 511
#define d_fileno d_ino
#endif