[prev in list] [next in list] [prev in thread] [next in thread] 

List:       aix-l
Subject:    Re: system() call limitation
From:       Zoltán_Vad <zoltan.vad () GMAIL ! COM>
Date:       2005-12-14 17:34:12
Message-ID: 722ca7460512140934i422cf736y () mail ! gmail ! com
[Download RAW message or body]

Hi Jean-Marc,

2005/12/14, Jean-Marc Monnez <monnez.jean-marc@agora.msa.fr>:
>
> Thanks, Zoltan, you were right.
>
Not at all... ;-)

>
> But concerning AIX 4.3.2, I wasn't able to find if a tuning of this limit should
> also be possible, because parameter sys0/ncargs didn't exist under version 4.
> On AIX 4, I found in /usr/include/sys/limits.h :
> /*
>  * Max length of arguments for exec() in bytes, including environ data, >= 4096.
>  */
> #define ARG_MAX     24576
>

I'm not sure - but if I remember right - from AIX version 4.3.3 was
this feature,
to change with ncarg the size of the environment.

> but I don't know if (and how) I may change this value. I tried to redefine it in a
> test program with a value of 28672, but the limit doesn't change (certainly hard
> coded in the kernel run time ?).
>

I think this is hardcoded in libc, probably in crt0 section. But it is
pure guess without
source code... (because i'm not a black hat guy)

Cheers, Zoltan
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic