home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.19 / text0023.txt < prev    next >
Encoding:
Internet Message Format  |  1990-05-17  |  1.2 KB

  1. From: arnold@audiofax.com (Arnold Robbins)
  2.  
  3. In article <591@longway.TIC.COM> bvs@amdcad.uucp (Bakul Shah) writes:
  4. >I hope there is time yet to add/consider another function for
  5. >completeness sake.
  6. >
  7. >    int writelink(char *symlink_path, char *new_target_path)
  8. >or if you prefer,
  9. >    int updatelink(char *symlink_path, char *new_target_path)
  10. >
  11. >This replaces the `contents' of a symlink, thereby *not* breaking
  12. >any hard-links to the symlink.  [.....]
  13.  
  14. On BSD-flavored systems that I'm familiar with, there is no such thing as
  15. a hard link to a symlink.  I tried it once; the link(2) call goes through
  16. the symlink and creates a link to the pointed-to file, not to the symlink
  17. itself.
  18.  
  19. This is actually somewhat consistent: If B is a hard link to A, a link(2)
  20. to B creates another link to A.
  21.  
  22. I agree though that the point is quite arguable; I am merely stating what
  23. I have observed. I don't care to postulate on what Should Be.
  24. -- 
  25. Arnold Robbins -- Senior Research Scientist - AudioFAX | Laundry increases
  26. 2000 Powers Ferry Road, #220 / Marietta, GA. 30067     | exponentially in the
  27. INTERNET: arnold@audiofax.com    Phone: +1 404 933 7600 | number of children.
  28. UUCP:      emory!audfax!arnold    Fax:   +1 404 933 7606 |   -- Miriam Robbins
  29.  
  30. Volume-Number: Volume 19, Number 24
  31.  
  32.