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