summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/limits/ATEXIT_MAX.c9
-rw-r--r--src/limits/CHARCLASS_NAME_MAX.c9
-rw-r--r--src/limits/IOV_MAX.c8
-rw-r--r--src/limits/LONG_BIT.c8
-rw-r--r--src/limits/NL_ARGMAX.c8
-rw-r--r--src/limits/NL_LANGMAX.c8
-rw-r--r--src/limits/NL_MSGMAX.c8
-rw-r--r--src/limits/NL_NMAX.c5
-rw-r--r--src/limits/NL_SETMAX.c8
-rw-r--r--src/limits/NL_TEXTMAX.c8
-rw-r--r--src/limits/NZERO.c7
-rw-r--r--src/limits/PAGESIZE.c6
-rw-r--r--src/limits/PAGE_SIZE.c11
-rw-r--r--src/limits/PASS_MAX.c8
-rw-r--r--src/limits/TMP_MAX.c6
-rw-r--r--src/limits/WORD_BIT.c7
-rw-r--r--src/limits/_XOPEN_IOV_MAX.c6
17 files changed, 130 insertions, 0 deletions
diff --git a/src/limits/ATEXIT_MAX.c b/src/limits/ATEXIT_MAX.c
new file mode 100644
index 00000000..7699fb8b
--- /dev/null
+++ b/src/limits/ATEXIT_MAX.c
@@ -0,0 +1,9 @@
+#include <limits.h>
+/* #undefine ATEXIT_MAX */
+/* MIN: 32 */
+/* MAY-BE-UNDEFINED */
+/** maximum number of functions fn(atexit) can register **/
+/*
+XOPEN(400)
+POSIX(200809)
+*/
diff --git a/src/limits/CHARCLASS_NAME_MAX.c b/src/limits/CHARCLASS_NAME_MAX.c
new file mode 100644
index 00000000..9f57f587
--- /dev/null
+++ b/src/limits/CHARCLASS_NAME_MAX.c
@@ -0,0 +1,9 @@
+#include <limits.h>
+#define CHARCLASS_NAME_MAX _POSIX2_CHARCLASS_NAME_MAX
+/* MIN: _POSIX2_CHARCLASS_NAME_MAX */
+/* CHECK: sysconf */
+/* maximum number of bytes in a character class name **/
+/*
+XOPEN(4)
+POSIX(200112)
+*/
diff --git a/src/limits/IOV_MAX.c b/src/limits/IOV_MAX.c
new file mode 100644
index 00000000..b25cc074
--- /dev/null
+++ b/src/limits/IOV_MAX.c
@@ -0,0 +1,8 @@
+#include <limits.h>
+/* #undefine IOV_MAX */
+/* MIN: _XOPEN_IOV_MAX */
+/* MAY-BE-UNEFINED */
+/** maximum number of struct(iovec) structures a single process can use in calls to fn(readv) and fn(writev) **/
+/*
+XOPEN(400)
+*/
diff --git a/src/limits/LONG_BIT.c b/src/limits/LONG_BIT.c
new file mode 100644
index 00000000..16f76633
--- /dev/null
+++ b/src/limits/LONG_BIT.c
@@ -0,0 +1,8 @@
+#include <limits.h>
+#define LONG_BIT (32)
+* MIN: 32 */
+/** the number of bits in a type(long int) **/
+/*
+XOPEN(4)
+POSIX(200809)
+*/
diff --git a/src/limits/NL_ARGMAX.c b/src/limits/NL_ARGMAX.c
new file mode 100644
index 00000000..b0a9292f
--- /dev/null
+++ b/src/limits/NL_ARGMAX.c
@@ -0,0 +1,8 @@
+#include <limits.h>
+#define NL_ARGMAX (9)
+/* MIN: 9 */
+/** the maximum value of arg(n) in "%n$" conversion specifiers for fn(printf), fn(scanf), and related functions **/
+/*
+XOPEN(4)
+POSIX(200809)
+*/
diff --git a/src/limits/NL_LANGMAX.c b/src/limits/NL_LANGMAX.c
new file mode 100644
index 00000000..2a78ace1
--- /dev/null
+++ b/src/limits/NL_LANGMAX.c
@@ -0,0 +1,8 @@
+#include <limits.h>
+#define NL_LANGMAX (14)
+/* MIN: 14 */
+/** maximum number of bytes in a env(LANG) name **/
+/*
+XOPEN(4)
+POSIX(200809)
+*/
diff --git a/src/limits/NL_MSGMAX.c b/src/limits/NL_MSGMAX.c
new file mode 100644
index 00000000..42d8ee47
--- /dev/null
+++ b/src/limits/NL_MSGMAX.c
@@ -0,0 +1,8 @@
+#include <limits.h>
+#define NL_MSGMAX (32767)
+/* MIN: 32767 */
+/** maximum message number in a message catalog set **/
+/*
+XOPEN(4)
+POSIX(200809)
+*/
diff --git a/src/limits/NL_NMAX.c b/src/limits/NL_NMAX.c
new file mode 100644
index 00000000..f3b0b07a
--- /dev/null
+++ b/src/limits/NL_NMAX.c
@@ -0,0 +1,5 @@
+#include <limits.h>
+#define NL_NMAX (1)
+/*
+XOPEN(4,700)
+*/
diff --git a/src/limits/NL_SETMAX.c b/src/limits/NL_SETMAX.c
new file mode 100644
index 00000000..62639a23
--- /dev/null
+++ b/src/limits/NL_SETMAX.c
@@ -0,0 +1,8 @@
+#include <limits.h>
+#define NL_SETMAX (255)
+/* MIN: 255 */
+/** maximum set number in a message catalog **/
+/*
+XOPEN(4)
+POSIX(200809)
+*/
diff --git a/src/limits/NL_TEXTMAX.c b/src/limits/NL_TEXTMAX.c
new file mode 100644
index 00000000..3935c403
--- /dev/null
+++ b/src/limits/NL_TEXTMAX.c
@@ -0,0 +1,8 @@
+#include <limits.h>
+#define NL_TEXTMAX _POSIX2_LINE_MAX
+/* MIN: _POSIX2_LINE_MAX */
+/** maximum number of bytes in a message string **/
+/*
+XOPEN(4)
+POSIX(200809)
+*/
diff --git a/src/limits/NZERO.c b/src/limits/NZERO.c
new file mode 100644
index 00000000..f124ef77
--- /dev/null
+++ b/src/limits/NZERO.c
@@ -0,0 +1,7 @@
+#if (defined _XOPEN_SOURCE)
+#define NZERO (20)
+* MIN: 20 */
+/** default process priority **/
+/*
+XOPEN(4)
+*/
diff --git a/src/limits/PAGESIZE.c b/src/limits/PAGESIZE.c
new file mode 100644
index 00000000..637c228d
--- /dev/null
+++ b/src/limits/PAGESIZE.c
@@ -0,0 +1,6 @@
+#include <limits.h>
+#define PAGESIZE /* TODO */
+/*
+XOPEN(400)
+POSIX(200112)
+*/
diff --git a/src/limits/PAGE_SIZE.c b/src/limits/PAGE_SIZE.c
new file mode 100644
index 00000000..daa95bd4
--- /dev/null
+++ b/src/limits/PAGE_SIZE.c
@@ -0,0 +1,11 @@
+#include <limits.h>
+/* #undefine PAGE_SIZE */
+/* MIN: 1 */
+/* MAY-BE-UNEFINED */
+/** the number of bytes in a memory page **/
+/***
+If macro(PAGE_SIZE) is defined, it is identical to macro(PAGESIZE).
+***/
+/*
+XOPEN(400)
+*/
diff --git a/src/limits/PASS_MAX.c b/src/limits/PASS_MAX.c
new file mode 100644
index 00000000..da7d083d
--- /dev/null
+++ b/src/limits/PASS_MAX.c
@@ -0,0 +1,8 @@
+#include <limits.h>
+/* #undefine PASS_MAX */
+/* MIN: 8 */
+/* MAY-BE-UNEFINED */
+/** the maximum number of significant bytes in a password (not counting chr(0)) **/
+/*
+XOPEN(4,600)
+*/
diff --git a/src/limits/TMP_MAX.c b/src/limits/TMP_MAX.c
new file mode 100644
index 00000000..74ff068d
--- /dev/null
+++ b/src/limits/TMP_MAX.c
@@ -0,0 +1,6 @@
+#include <limits.h>
+#define TMP_MAX (10000)
+/* MIN: 10000 */
+/*
+XOPEN(4,600)
+*/
diff --git a/src/limits/WORD_BIT.c b/src/limits/WORD_BIT.c
new file mode 100644
index 00000000..184ff1a7
--- /dev/null
+++ b/src/limits/WORD_BIT.c
@@ -0,0 +1,7 @@
+#include <limits.h>
+#define WORD_BIT (32)
+/* MIN: 32 */
+/*
+XOPEN(4)
+POSIX(200809)
+*/
diff --git a/src/limits/_XOPEN_IOV_MAX.c b/src/limits/_XOPEN_IOV_MAX.c
new file mode 100644
index 00000000..fb864f4f
--- /dev/null
+++ b/src/limits/_XOPEN_IOV_MAX.c
@@ -0,0 +1,6 @@
+#include <limits.h>
+#define _XOPEN_IOV_MAX (16)
+/* DEF */
+/*
+XOPEN(400)
+*/