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

  1. Xref: sparky comp.unix.programmer:5347 comp.sys.sun.misc:5336
  2. Path: sparky!uunet!auspex-gw!guy
  3. From: guy@Auspex.COM (Guy Harris)
  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: <15562@auspex-gw.auspex.com>
  8. Date: 19 Nov 92 02:23:09 GMT
  9. References: <mark.722062866@coombs> <jrh.2b0a9da7-e@mustang.dell.com>
  10. Sender: news@auspex-gw.auspex.com
  11. Followup-To: comp.unix.programmer
  12. Organization: Auspex Systems, Santa Clara
  13. Lines: 11
  14. Nntp-Posting-Host: auspex.auspex.com
  15.  
  16. >Use the rename(3) system call, since it is "supposedly" guaranteed to be
  17. >atomic.
  18.  
  19. Or just use the "mv" command, making sure the "from" and "to" names are
  20. on the same file system, because, if they are, it'll do the "rename()"
  21. call for you without you having to write code to use it (definitely so
  22. in SunOS 4.x; true in SVR4 as well unless somebody screwed up
  23. massively).
  24.  
  25. There is, of course, more to it than *just* the rename; see other
  26. postings in this thread.
  27.