tmp/tmpxubwm2sg/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Create hard link <a id="fs.op.create.hard.lk">[[fs.op.create.hard.lk]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
void create_hard_link(const path& to, const path& new_hard_link);
|
| 5 |
+
void create_hard_link(const path& to, const path& new_hard_link,
|
| 6 |
+
error_code& ec) noexcept;
|
| 7 |
+
```
|
| 8 |
+
|
| 9 |
+
*Effects:* Establishes the postcondition, as if by POSIX `link()`.
|
| 10 |
+
|
| 11 |
+
*Ensures:*
|
| 12 |
+
|
| 13 |
+
- `exists(to) && exists(new_hard_link) && equivalent(to, new_hard_link)`
|
| 14 |
+
- The contents of the file or directory `to` resolves to are unchanged.
|
| 15 |
+
|
| 16 |
+
*Throws:* As specified in [[fs.err.report]].
|
| 17 |
+
|
| 18 |
+
[*Note 1*: Some operating systems do not support hard links at all or
|
| 19 |
+
support them only for regular files. Some file systems (such as the FAT
|
| 20 |
+
file system) do not support hard links regardless of the operating
|
| 21 |
+
system. Some file systems limit the number of links per
|
| 22 |
+
file. — *end note*]
|
| 23 |
+
|