Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: typo

...

This code example demonstrates how to verify that two accesses are indeed the same file in POSIX. In POSIX, every file can be uniquely identified by using its device and i-node attributes. This code example checks that a filename does not refer to a symbolic link, using lstat(); the call also retrives its device and i-node. The file is subsequently opened. Finally, the program verifies that the file trhat that was opened is the same one (matching device and inodes) as the file that was verified not to be a symbolic link.

...