home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / sun / apps / 3073 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  1.7 KB

  1. Xref: sparky comp.sys.sun.apps:3073 comp.unix.programmer:6034 comp.unix.internals:2156
  2. Path: sparky!uunet!auspex-gw!guy
  3. From: guy@Auspex.COM (Guy Harris)
  4. Newsgroups: comp.sys.sun.apps,comp.unix.programmer,comp.unix.internals
  5. Subject: Re: modifying ARGV within a running program
  6. Message-ID: <16597@auspex-gw.auspex.com>
  7. Date: 23 Jan 93 19:34:09 GMT
  8. References: <1jqninINNa8l@usenet.INS.CWRU.Edu> <28603@dog.ee.lbl.gov>
  9. Sender: news@auspex-gw.auspex.com
  10. Followup-To: comp.sys.sun.apps
  11. Organization: Auspex Systems, Santa Clara
  12. Lines: 26
  13. Nntp-Posting-Host: auspex.auspex.com
  14.  
  15. >Since this is going to comp.sys.sun.apps: on Suns running SunOS, at
  16. >least---I know nothing about the new Solaris systems
  17.  
  18. The new Solaris systems are, just like the old Solaris systems, systems
  19. running SunOS.
  20.  
  21. They just happen to be running SunOS 5.x rather than SunOS 4.x.
  22.  
  23. I.e., Solaris 1.x consists of SunOS 4.1.y plus Open Windows 2.0 or 3.0
  24. plus DeskSet 2.0 or 3.0; Solaris 2.x consists of SunOS 5.y (so far,
  25. x = y) plus Open Windows 3.a.b plus DeskSet 3.a.b.
  26.  
  27. > ---the strings ps prints are found at the top of the user stack.  (This
  28. > is true in all traditional BSD-based systems.)
  29.  
  30. In SunOS 5.x, the string "ps" prints is, most likely, in a special chunk
  31. of kernel memory; this is true in most SVR3-or-later SV-based systems.
  32.  
  33. I.e., if Sun didn't change that as part of whacking on SVR4, you can't
  34. change what "ps" prints simply by modifying stuff in your address space,
  35. just as you can't do so on traditional SVR3-based or SVR4-based systems.
  36.  
  37. (SVR3 sticks it in the U area; dunno if AT&T's SVR4 releases have a U
  38. area, but SunOS 5.x might not.  What those systems stick there is a
  39. string constructed by gluing the first N characters worth of arguments
  40. together with spaces between them; N = 80 in SVR3.0.)
  41.