From Jason Turner

[fs.op.space]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpg95r2ord/{from.md → to.md} +23 -0
tmp/tmpg95r2ord/{from.md → to.md} RENAMED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Space <a id="fs.op.space">[[fs.op.space]]</a>
2
+
3
+ ``` cpp
4
+ space_info space(const path& p);
5
+ space_info space(const path& p, error_code& ec) noexcept;
6
+ ```
7
+
8
+ *Returns:* An object of type `space_info`. The value of the `space_info`
9
+ object is determined as if by using POSIX `statvfs` to obtain a POSIX
10
+ `struct statvfs`, and then multiplying its `f_blocks`, `f_bfree`, and
11
+ `f_bavail` members by its `f_frsize` member, and assigning the results
12
+ to the `capacity`, `free`, and `available` members respectively. Any
13
+ members for which the value cannot be determined shall be set to
14
+ `static_cast<uintmax_t>(-1)`. For the signature with argument `ec`, all
15
+ members are set to `static_cast<uintmax_t>(-1)` if an error occurs.
16
+
17
+ *Throws:* As specified in  [[fs.err.report]].
18
+
19
+ *Remarks:* The value of member `space_info::available` is operating
20
+ system dependent.
21
+
22
+ [*Note 1*: `available` may be less than `free`. — *end note*]
23
+