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 4 2929
In article <11**********************@l22g2000prc.googlegroups .com>,
ClownPleco <ri********@gmail.comwrote:
>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
You'd be better off asking in comp.unix.aix.
-- Richard
--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
ClownPleco wrote:
>
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!
These are not C language questions. Try comp.unix.programmer (I
think).
--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>
--
Posted via a free Usenet account from http://www.teranews.com
Mark Bluemel <ma**********@pobox.comwrites:
ClownPleco wrote:
>I have read several posts about putenv is not Standard C. But I'm wondering if anyone knows if it is available in AIX.
As I happen to work extensively with AIX, in this area, I'll give you
some answers. However, I'd stress that it's off-topic for this
newsgroup - as others have suggested, it would probably be more
appropriate to ask these sort of questions in a unix newsgroup in
future.
[...]
How difficult would it have been, both for you and for the OP, to take
this discussion to comp.unix aix?
--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Richard Tobin <ri*****@cogsci.ed.ac.ukwrote:
In article <11**********************@l22g2000prc.googlegroups .com>,
ClownPleco <ri********@gmail.comwrote:
>>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
You'd be better off asking in comp.unix.aix.
Not really (comp.unix.aix doesn't get much traffic from developers,
and rarely do those get a knowledgable answer - nothing that OP did
get an answer here ;-).
Posting to comp.unix.programmer would be more likely to get results.
--
Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Warren Oates |
last post by:
I've been using putenv() to change the timezone in a script (my server
is in CST, me in EST). My reading of the docs suggests that this changes
the time zone environment variable for _the server_...
|
by: lovecreatesbeauty |
last post by:
Do #ifdef or #ifndef have some defects? I ever heard that some people
use #if defined() or #if !defined() instead of using #ifdef or #ifndef
in header file.
|
by: Michael B Allen |
last post by:
Which is the preferred method for preprocessor tests and why?
#ifdef XYZ
or
#if XYZ
or
#if defined(XYZ)
and
|
by: dpugmire |
last post by:
Is there a trick to getting putenv/getenv to work?
I have csh script that calls a bunch of python programs and I'd like to
use env variables as kind of a global variable that I can pass around
to...
|
by: Yogi Watcher |
last post by:
Hi,
Recently I have observed some odd behavior of getenv and putenv function. I
am developing some code that integrates with several other libraries. This
program is not using MFC. It is plain C...
|
by: Michael B Allen |
last post by:
Is the string returned by getenv guaranteed to be the same string supplied
to putenv plus the offset of the variable name and equals sign?
Because of API constraints I do not want to save a...
|
by: anirbid.banerjee |
last post by:
Hi,
I need to write a macro which would have a lot many conditional
#ifdef ... #endif blocks in it.
#define _xx_macro (x) {
... \
... \ /* some code (); */
#ifdef _SOME_STMT \
... \
... \
|
by: David W |
last post by:
Hello,
In a C++ MFC application I need to conditionally #include one of two additional
resource files in my main resource file because different forms of the
application have different names. I...
|
by: google |
last post by:
>>>
'C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem;%C:\\WINNT%\
\system32;%C:\\WINNT%;%C:\\WINNT%\\System32\\Wbem'
'C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem;%C:\\WINNT%\...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |