29 Input/output library [input.output]

29.11 File systems [filesystems]

29.11.13 Filesystem operation functions [fs.op.funcs]

29.11.13.10 Create hard link [fs.op.create.hard.lk]

Effects: Establishes the postcondition, as if by POSIX link().
Postconditions:
  • exists(to) && exists(new_­hard_­link) && equivalent(to, new_­hard_­link)
  • The contents of the file or directory to resolves to are unchanged.
Throws: As specified in [fs.err.report].
[Note 1:
Some operating systems do not support hard links at all or support them only for regular files.
Some file systems (such as the FAT file system) do not support hard links regardless of the operating system.
Some file systems limit the number of links per file.
— end note]