Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-01-01 21:16:44 +0300
committerChristopher Faylor <me@cgf.cx>2003-01-01 21:16:44 +0300
commite33a22682d0665206c932e501572440530e0a401 (patch)
tree32fe4cff073760c033422b3af6f48f4ac9736546
parent47cb595af1560869b63a17fea91a1a2adca075df (diff)
* sysconf.cc (sysconf): Return arbitrary values for _SC_GETGR_R_SIZE_MAX,unlabeled-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 0232faf39..f0f49778d 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 */