aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-01-01 18:16:44 +0000
committerChristopher Faylor <me@cgf.cx>2003-01-01 18:16:44 +0000
commite33a22682d0665206c932e501572440530e0a401 (patch)
tree32fe4cff073760c033422b3af6f48f4ac9736546
parent47cb595af1560869b63a17fea91a1a2adca075df (diff)
downloadnewlib-github/unlabeled-1.24.16.zip
newlib-github/unlabeled-1.24.16.tar.gz
newlib-github/unlabeled-1.24.16.tar.bz2
* sysconf.cc (sysconf): Return arbitrary values for _SC_GETGR_R_SIZE_MAX,github/unlabeled-1.24.16unlabeled-1.24.16
_SC_LOGIN_NAME_MAX, _SC_GETPW_R_SIZE_MAX. * passwd.cc (getpwuid_r32): Add uid/gid fields to size check calculation. * exceptions.cc (events_init): Display name of mutex on failure. * windows.cc (setitimer): Return ENOSYS on invalid argument.
-rw-r--r--winsup/cygwin/sysconf.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/sysconf.cc b/winsup/cygwin/sysconf.cc
index 0232faf..f0f4977 100644
--- a/winsup/cygwin/sysconf.cc
+++ b/winsup/cygwin/sysconf.cc
@@ -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 */