public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] RTEMS: Adjust NGROUPS_MAX
@ 2014-11-17  9:04 Sebastian Huber
  2014-11-17 12:49 ` Corinna Vinschen
  0 siblings, 1 reply; 8+ messages in thread
From: Sebastian Huber @ 2014-11-17  9:04 UTC (permalink / raw)
  To: newlib; +Cc: Sebastian Huber

We have NGROUPS == NGROUPS_MAX + 1.  Make sure NGROUPS is even to not
waste memory.

newlib/ChangeLog
2014-11-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>

	* libc/sys/rtems/sys/syslimits.h (NGROUPS_MAX): Adjust value so
	that NGROUPS is even.
---
 newlib/libc/sys/rtems/sys/syslimits.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/newlib/libc/sys/rtems/sys/syslimits.h b/newlib/libc/sys/rtems/sys/syslimits.h
index 74c4dd2..2295afe 100644
--- a/newlib/libc/sys/rtems/sys/syslimits.h
+++ b/newlib/libc/sys/rtems/sys/syslimits.h
@@ -45,7 +45,7 @@
 #define	MAX_CANON		  255	/* max bytes in term canon input line */
 #define	MAX_INPUT		  255	/* max bytes in terminal input */
 #define	NAME_MAX		  255	/* max bytes in a file name */
-#define	NGROUPS_MAX		   16	/* max supplemental group id's */
+#define	NGROUPS_MAX		   15	/* max supplemental group id's */
 #ifndef OPEN_MAX
 #define	OPEN_MAX		   64	/* max open files per process */
 #endif
-- 
1.8.4.5

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-11-20 14:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-17  9:04 [PATCH] RTEMS: Adjust NGROUPS_MAX Sebastian Huber
2014-11-17 12:49 ` Corinna Vinschen
2014-11-17 12:55   ` Joel Sherrill
2014-11-17 13:37     ` Corinna Vinschen
2014-11-20  7:11       ` Sebastian Huber
2014-11-20 14:04         ` Corinna Vinschen
2014-11-20 14:43           ` Joel Sherrill
2014-11-17 12:58   ` Sebastian Huber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).