Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

18. Directories and Links > Creating and Removing (Hard) Links: link() and unli...

Creating and Removing (Hard) Links: link() and unlink()

The link() and unlink() system calls create and remove hard links.

#include <unistd.h>

int link(const char *oldpath, const char *newpath);

Note

Returns 0 on success, or -1 on error

Table 18-1. Interpretation of symbolic links by various functions

Function

Follows links?

Notes

access()


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint