On Thu, 5 Oct 2023 11:07:03 +0000, Seymour J Metz <sme...@gmu.edu> wrote:

>Where do you think process initialization gets the variable names and values?

Environment variables is empty until the first environment variable is added. 
Typically a shell is the first to add environment variables but it could just 
as easily be any language that calls the C environment variable APIs (e.g. 
Python and JAVA).   

There is an open source version of the STDLIB (Standard library) called GLIBC 
located at 
https://sourceware.org/git/?p=glibc.git;a=tree;f=stdlib;h=4c362998447b7664b4268fa732e90389bc1b8410;hb=HEAD
 which implements GETENV, PUTENV and other related functions.

IBM most likely did a similar implementation in IBM C but without seeing the 
source, I can't be 100% sure.  

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to