home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.programmer:5347 comp.sys.sun.misc:5336
- Path: sparky!uunet!auspex-gw!guy
- From: guy@Auspex.COM (Guy Harris)
- Newsgroups: comp.unix.programmer,comp.sys.sun.misc
- Subject: Re: Installing a shared library without screwing up.
- Keywords: libc.so replacing
- Message-ID: <15562@auspex-gw.auspex.com>
- Date: 19 Nov 92 02:23:09 GMT
- References: <mark.722062866@coombs> <jrh.2b0a9da7-e@mustang.dell.com>
- Sender: news@auspex-gw.auspex.com
- Followup-To: comp.unix.programmer
- Organization: Auspex Systems, Santa Clara
- Lines: 11
- Nntp-Posting-Host: auspex.auspex.com
-
- >Use the rename(3) system call, since it is "supposedly" guaranteed to be
- >atomic.
-
- Or just use the "mv" command, making sure the "from" and "to" names are
- on the same file system, because, if they are, it'll do the "rename()"
- call for you without you having to write code to use it (definitely so
- in SunOS 4.x; true in SVR4 as well unless somebody screwed up
- massively).
-
- There is, of course, more to it than *just* the rename; see other
- postings in this thread.
-