home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.24 / text0001.txt < prev    next >
Encoding:
Text File  |  1991-09-03  |  1.9 KB  |  39 lines

  1. Submitted-by: sef@kithrup.COM (Sean Eric Fagan)
  2.  
  3. In article <1991Jun12.235808.20822@uunet.uu.net> mib@geech.gnu.ai.mit.edu (Michael I Bushnell) writes:
  4. >HP is *already* claiming Posix compliance, and you say one of the
  5. >solutions "will likely be used".  *That* is precisely the problem.
  6.  
  7. No, that is not the problem.  I do not work for HP, nor have I ever in the
  8. past.  As far as I know, HP solved the problem quite nicely.  For the
  9. company I was working for, which was *not* HP, I and one other person spent
  10. a few weeks looking into the name-space pollution problem, how to solve it,
  11. and what it would affect in terms of compatibility with old programs and
  12. binaries.
  13.  
  14. Another poster asks what the two "fairly obvious" methods are.  One is to have
  15. an "ansi-only" mode, a "posix-only" mode, and a "normal" mode, probably
  16. toggled by command-line switches.  Each "mode" would have its own
  17. header-file tree assosciated with it, with only the header-files defined by
  18. that standard (normal would, of course, have everything), as well as a
  19. special library and startup-file.
  20.  
  21. The other way is a bit harder, but allows backwards-compatibility to work
  22. more easily (at least with supposedly-compliant programs).  Essentially, you
  23. have all "illegal" symbols be "safe" (__select, for example).  All library
  24. routines are written to use the __ names; then, you have the linker accept
  25. an option that tells it to try to ignore the leading __ if there are
  26. unresolved externals.  You still need header-file work, of course, but that
  27. does help the name-pollution problem.  If I remember correctly, both HP and
  28. AT&T did something similar.
  29.  
  30. -- 
  31. Sean Eric Fagan  | "I made the universe, but please don't blame me for it;
  32. sef@kithrup.COM  |  I had a bellyache at the time."
  33. -----------------+           -- The Turtle (Stephen King, _It_)
  34. Any opinions expressed are my own, and generally unpopular with others.
  35.  
  36.  
  37. Volume-Number: Volume 24, Number 3
  38.  
  39.