On Jul 25, 2025, at 6:07 AM, Hans Åberg <[email protected]> wrote:
> They have a given program, which they cannot change, but apparently can > accept 256 kB of text in arguments, and the preferred workaround is to > recompile the kernel. On which kernel is this? As per my earlier mail, one version of the Darwin kernel (macOS, iOS, etc.) has a 1 MB ARG_MAX (and it's , and one version of the Linux kernel has a 2 MB ARG_MAX. My Solaris 10 VM also reports 1 MB, and *that* limit dates back to at least SunOS 4.0. So *those* kernels have an ARG_MAX that's 4x to 8x larger than 256 kB; even if you have a *lot* of environment variables, that shouldn't be a problem. "Recompile the kernel" doesn't apply to AIX or HP-UX or other commercial UN*Xes; is this a *BSD or something such as that?
