home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / programm / 5339 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  1.5 KB

  1. Xref: sparky comp.unix.programmer:5339 comp.sys.sun.misc:5324
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!sun-barr!cs.utexas.edu!ut-emx!news.dell.com!mustang!jrh
  3. From: jrh@mustang.dell.com (Randy Howard)
  4. Newsgroups: comp.unix.programmer,comp.sys.sun.misc
  5. Subject: Re: Installing a shared library without screwing up.
  6. Keywords: libc.so replacing
  7. Message-ID: <jrh.2b0a9da7-e@mustang.dell.com>
  8. Date: 18 Nov 92 19:46:47 GMT
  9. References: <mark.722062866@coombs>
  10. Sender: news@raid.dell.com (Net News Admin)
  11. Organization: Dell Computer Co
  12. Lines: 27
  13. Nntp-Posting-Host: mustang.dell.com
  14.  
  15. mark@coombs.anu.edu.au (Mark) writes:
  16.  
  17. >On SunOS 4.x.x:
  18. >I've heard a lot of horror stories about mistakes with libc.so replacing and
  19. >how dynamic library loading programs die real quick if you tamper with their
  20. >library.
  21.  
  22. >What is the right/best way to replace a libc.so with your site customised
  23. >version? I dont want to have to go find the installation tape everytime
  24. >I attempt it. Do I use 'cp' or 'cat mylib > /usr/lib/libc.so' or what? Im a
  25. >bit worried that a context switch will happen halfway through it and bugger
  26. >it all up.
  27.  
  28. >How would you guys replace it?
  29.  
  30. Use the rename(3) system call, since it is "supposedly" guaranteed to be
  31. atomic.
  32.  
  33. >Any hints welcome.
  34. >Mark
  35. >mark@coombs.anu.edu.au
  36. >mark@gnu.ai.mit.edu
  37. >markm@rmit.edu.au
  38. -- 
  39. Randy Howard            _o        @'s: jrh@dell.com
  40. Dell Computer Corp.     \<,        !'s: ...!uunet!dellunix!jrh
  41. ______________________()/ ()______________________________________________
  42.