From b4de9e4399d11e9561c1c4f8086c48c2e99d02b6 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Fri, 28 Feb 2014 16:29:41 +0100 Subject: [PATCH] Add sysconf(_SC_GETGR_R_SIZE_MAX). --- libc/unistd/sysconf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libc/unistd/sysconf.cpp b/libc/unistd/sysconf.cpp index c37694b0..c1b1d7c2 100644 --- a/libc/unistd/sysconf.cpp +++ b/libc/unistd/sysconf.cpp @@ -1,6 +1,6 @@ /******************************************************************************* - Copyright(C) Jonas 'Sortie' Termansen 2013. + Copyright(C) Jonas 'Sortie' Termansen 2013, 2014. This file is part of the Sortix C Library. @@ -36,6 +36,7 @@ extern "C" long sysconf(int name) return getpagesize(); case _SC_OPEN_MAX: return 0x10000; case _SC_RTSIG_MAX: return (SIGRTMAX+1) - SIGRTMIN; + case _SC_GETGR_R_SIZE_MAX: return -1; default: fprintf(stderr, "%s:%u warning: %s(%i) is unsupported\n", __FILE__, __LINE__, __func__, name);