home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.27 / text0005.txt < prev    next >
Encoding:
Text File  |  1992-05-20  |  1.7 KB  |  44 lines

  1. Submitted-by: karish@mindcraft.com (Chuck Karish)
  2.  
  3. In article <1992Feb22.073646.18830@uunet.uu.net> cmr@cvedc.prime.com
  4. (Chesley Reyburn) writes:
  5. >Submitted-by: cmr@cvedc.prime.com (Chesley Reyburn)
  6. >barmar@think.com (Barry Margolin) writes:
  7. >>What about the kind of stuff that one needs dlopen() for, i.e. where a
  8. >>runtime-specified module must be linked in?  That's a source-level view.
  9.  
  10. The charge of the POSIX.1 committee was to codify existing
  11. practice in the industry.  I think the examples of prior art used
  12. to represent existing practice were 4.2BSD and System 5 Release 1.
  13. Neither of these supported dynamic linking.
  14.  
  15. >Thank you!  I sent mail yesterday to Mr. Lewine stating the same
  16. >thing and proposing something like:
  17. >    
  18. >    void *(*local_func())(char *filename, char *entryname)
  19. >
  20. >Where local_func() is part of POSIX.  Filename is a fully qualified
  21. >file name where the source code that describes the function may be found.
  22. >Entryname describes the entry point in the object.
  23.  
  24. The problem, of course, is that local_func() is not part
  25. of POSIX.1.  If the POSIX.1 work were starting today,
  26. dynamic linking would probably be a part of the committee's
  27. work and would probably be the subject of a battle over
  28. what model to adopt.
  29.  
  30. As Don Lewine pointed out, POSIX.1 does not contain any
  31. concept of compiling or linking.  That's handled, for now,
  32. in an optional section of POSIX.2.  The right place for
  33. dynamic linking in the POSIX scheme would be in POSIX.1, but
  34. it would require a change in that standard's scope as
  35. well as consideration of the constraints this would
  36. impose on other standards.
  37.  
  38.     Chuck Karish        karish@mindcraft.com
  39.     Mindcraft, Inc.        (415) 323-9000
  40.  
  41.  
  42. Volume-Number: Volume 27, Number 5
  43.  
  44.