home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / vms / 20791 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.0 KB

  1. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!lrw.com!leichter
  2. From: leichter@lrw.com (Jerry Leichter)
  3. Newsgroups: comp.os.vms
  4. Subject: RE: Where is the putenv()???
  5. Message-ID: <9301121414.AA07988@uu3.psi.com>
  6. Date: 12 Jan 93 12:48:41 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Distribution: world
  9. Organization: The Internet
  10. Lines: 17
  11.  
  12.  
  13.     Hi, I am porting a make to VMS.  and it needs putenv(). while the
  14.     getenv() is in the stdlib.h but I can find nowhere the putenv().  can
  15.     someone help me on this.
  16.  
  17. There isn't any.  The Unix "environment" doesn't really exist on VMS; getenv()
  18. creates a similar effect by examining DCL symbols and logicals, but their
  19. semantics is actually rather different from that of environment values.
  20.  
  21. Note that putenv() isn't even a very standardized Unix function.  POSIX, for
  22. example, doesn't support it.
  23.  
  24. You're going to have to look at the code that uses putenv() and determine what
  25. it does, then figure out how to get the equivalent effect on VMS.
  26.  
  27.                             -- Jerry
  28.  
  29.