|
Helping ordinary people create extraordinary websites! |
Port Windows IPC Apps to Linux, Part 1: Processes and ThreadsBy Srinivasan S. Muthuswamy, Kavitha Varadarajan2005-06-16
Environment variables Each process has an environment block associated with it, basically name=value pairs that specify various environments the process can access. Even though we can specify the environment when we create the process, there are also specific functions to set and obtain environment variables after the process is created. In Windows, you can use
This function returns the size of the value buffer on success and 0 if the name specified is not a valid environment variable name. The
If the function succeeds, the return value is non-zero. If the function fails, the return value is zero. In Linux,
The Tutorial Pages: » A mapping guide for complex, multithreaded, multiprocess applications » Processes » Creating a process » Terminating a process » Using wait functions » Exiting a process » Environment variables » Examples » Threads » Examples of processes and threads » Next in the series » Resources First published by IBM DeveloperWorks
|
|