projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prevent shmget from allocating objects that overflow ptrdiff_t
[oweals/musl.git]
/
include
/
limits.h
diff --git
a/include/limits.h
b/include/limits.h
index e354ee73204c6eb31371bcf77ed5ddb8febc18af..54d1940b439c77f40f2282682e2a3b05683dc688 100644
(file)
--- a/
include/limits.h
+++ b/
include/limits.h
@@
-1,13
+1,15
@@
#ifndef _LIMITS_H
#define _LIMITS_H
#ifndef _LIMITS_H
#define _LIMITS_H
+#include <features.h>
+
/* Most limits are system-specific */
#include <bits/limits.h>
/* Support signed or unsigned plain-char */
/* Most limits are system-specific */
#include <bits/limits.h>
/* Support signed or unsigned plain-char */
-#if
def __CHAR_UNSIGNED__
+#if
'\0'-1 > 0
#define CHAR_MIN 0
#define CHAR_MAX 255
#else
#define CHAR_MIN 0
#define CHAR_MAX 255
#else
@@
-35,7
+37,7
@@
#define MB_LEN_MAX 4
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
#define MB_LEN_MAX 4
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
- || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
+ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
|| defined(_BSD_SOURCE)
#define PIPE_BUF 4096
#define PAGESIZE PAGE_SIZE
#define PIPE_BUF 4096
#define PAGESIZE PAGE_SIZE
@@
-56,8
+58,8
@@
/* Implementation choices... */
/* Implementation choices... */
-#define PTHREAD_KEYS_MAX
1024
-#define PTHREAD_STACK_MIN
PAGE_SIZE
+#define PTHREAD_KEYS_MAX
128
+#define PTHREAD_STACK_MIN
2048
#define PTHREAD_DESTRUCTOR_ITERATIONS 4
#define SEM_VALUE_MAX 0x7fffffff
#define SEM_NSEMS_MAX 256
#define PTHREAD_DESTRUCTOR_ITERATIONS 4
#define SEM_VALUE_MAX 0x7fffffff
#define SEM_NSEMS_MAX 256