* sysconf.cc (sysconf): Return arbitrary values for _SC_GETGR_R_SIZE_MAX,

_SC_LOGIN_NAME_MAX, _SC_GETPW_R_SIZE_MAX.
* passwd.cc (getpwuid_r32): Add uid/gid fields to size check calculation.
This commit is contained in:
Christopher Faylor
2003-01-01 18:12:49 +00:00
parent 353549d744
commit 8619b42be7
3 changed files with 14 additions and 1 deletions

View File

@@ -47,6 +47,10 @@ sysconf (int in)
return NGROUPS_MAX;
case _SC_SAVED_IDS:
return _POSIX_SAVED_IDS;
case _SC_LOGIN_NAME_MAX:
case _SC_GETPW_R_SIZE_MAX:
case _SC_GETGR_R_SIZE_MAX:
return 16*1024;
case _SC_VERSION:
return _POSIX_VERSION;
#if 0 /* FIXME -- unimplemented */