pub fn syncfs(fd: fd_t) SyncError!void fd: fd_t1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260pub fn syncfs(fd: fd_t) SyncError!void {
const rc = system.syncfs(fd);
switch (errno(rc)) {
.SUCCESS => return,
.BADF, .INVAL, .ROFS => unreachable,
.IO => return error.InputOutput,
.NOSPC => return error.NoSpaceLeft,
.DQUOT => return error.DiskQuota,
else => |err| return unexpectedErrno(err),
}
}
Write all pending file contents and metadata modifications to the filesystem which contains the specified file.