Files
linux-kernel-module-cheat/userland/posix/sysconf.c
Ciro Santilli 六四事件 法轮功 afb38d249b sysconf: move in from cpp-cheat
arm baremetal: give more TTBR rationale
2019-07-19 06:59:14 +01:00

13 lines
353 B
C

/* https://github.com/cirosantilli/linux-kernel-module-cheat#sysconf */
#define _XOPEN_SOURCE 700
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main(void) {
/* Maximum lengh of command line arguments + environment variables: */
printf("_SC_ARG_MAX (MiB) = %ld\n", sysconf(_SC_ARG_MAX) / (1 << 20));
return EXIT_SUCCESS;
}