File tree 2 files changed +13
-0
lines changed 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change
1
+ Added ` _PC_MIN_HOLE_SIZE ` for ` pathconf ` and ` fpathconf ` .
Original file line number Diff line number Diff line change @@ -2031,6 +2031,18 @@ pub enum PathconfVar {
2031
2031
/// queue; therefore, the maximum number of bytes a conforming application
2032
2032
/// may require to be typed as input before reading them.
2033
2033
MAX_INPUT = libc:: _PC_MAX_INPUT,
2034
+ #[ cfg( any(
2035
+ solarish,
2036
+ freebsdlike,
2037
+ target_os = "netbsd" ,
2038
+ ) ) ]
2039
+ /// If a file system supports the reporting of holes (see lseek(2)),
2040
+ /// pathconf() and fpathconf() return a positive number that represents the
2041
+ /// minimum hole size returned in bytes. The offsets of holes returned will
2042
+ /// be aligned to this same value. A special value of 1 is returned if the
2043
+ /// file system does not specify the minimum hole size but still reports
2044
+ /// holes.
2045
+ MIN_HOLE_SIZE = libc:: _PC_MIN_HOLE_SIZE,
2034
2046
/// Maximum number of bytes in a filename (not including the terminating
2035
2047
/// null of a filename string).
2036
2048
NAME_MAX = libc:: _PC_NAME_MAX,
You can’t perform that action at this time.
0 commit comments