C
ClownPleco
I have read several posts about putenv is not Standard C. But I'm
wondering if anyone knows if it is available in AIX. All of our other
platforms (linux (32 and 64 bit), sgi, hpux, x86, darwin (intel and
mac), interix and sun) behave properly for our application. We found
that if we run this command prior to running the application, it works
correctly:
set LDR_CNTRL=MAXDATA=0x80000000;export LDR_CNTRL
Our problem is that we start a parent process that spawns the child
application. If we set the LDR_CNTRL=MAXDATA prior to starting the
parent process, other child applications are failing.
Our initial solution is to have wrap around child application that
sets the environmental variable and then spawns an additional child.
This environmental variable would only be set if the the operating
system is AIX.
Second question, does anyone know the correct #ifdef statement to
check for AIX, is it:
#ifdef __AIX__
I'm a very very green C programmer!
Thanks
Rick
wondering if anyone knows if it is available in AIX. All of our other
platforms (linux (32 and 64 bit), sgi, hpux, x86, darwin (intel and
mac), interix and sun) behave properly for our application. We found
that if we run this command prior to running the application, it works
correctly:
set LDR_CNTRL=MAXDATA=0x80000000;export LDR_CNTRL
Our problem is that we start a parent process that spawns the child
application. If we set the LDR_CNTRL=MAXDATA prior to starting the
parent process, other child applications are failing.
Our initial solution is to have wrap around child application that
sets the environmental variable and then spawns an additional child.
This environmental variable would only be set if the the operating
system is AIX.
Second question, does anyone know the correct #ifdef statement to
check for AIX, is it:
#ifdef __AIX__
I'm a very very green C programmer!
Thanks
Rick