summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-07-11 15:54:34 -0400
committerIan Moffett <ian@osmora.org>2025-07-11 15:54:34 -0400
commit053e6e7e162edee30428b8477f0626523b00a492 (patch)
tree77cd776a16881b8eef42ef5cffc3ad87734b3c1f
parentda7ed2b09f3f33e09db568f968918394d912f285 (diff)
usr: getconf: Add NAME_MAX, PATH_MAX and SSIZE_MAX
- Add additional limit defines - Expand 'val' to 32-bits Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--usr.bin/getconf/getconf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/getconf/getconf.c b/usr.bin/getconf/getconf.c
index c60bf5d..f028e76 100644
--- a/usr.bin/getconf/getconf.c
+++ b/usr.bin/getconf/getconf.c
@@ -37,12 +37,15 @@
struct sysvar {
const char *var;
uint8_t auxv : 1;
- uint8_t val;
+ uint32_t val;
};
static struct sysvar vartab[] = {
{ "PAGESIZE", 1, AT_PAGESIZE },
{ "CHAR_BIT", 0, CHAR_BIT },
+ { "NAME_MAX", 0, NAME_MAX },
+ { "PATH_MAX", 0, PATH_MAX },
+ { "SSIZE_MAX", 0, SSIZE_MAX },
{ NULL, 0, 0 }
};