| ... | @@ -1049,7 +1049,7 @@ pub const OpenError = error{ | ... | @@ -1049,7 +1049,7 @@ pub const OpenError = error{ |
| 1049 | } || UnexpectedError; | 1049 | } || UnexpectedError; |
| 1050 | | 1050 | |
| 1051 | /// Open and possibly create a file. Keeps trying if it gets interrupted. | 1051 | /// Open and possibly create a file. Keeps trying if it gets interrupted. |
| 1052 | /// See also `openC`. | 1052 | /// See also `openZ`. |
| 1053 | pub fn open(file_path: []const u8, flags: u32, perm: mode_t) OpenError!fd_t { | 1053 | pub fn open(file_path: []const u8, flags: u32, perm: mode_t) OpenError!fd_t { |
| 1054 | if (std.Target.current.os.tag == .windows) { | 1054 | if (std.Target.current.os.tag == .windows) { |
| 1055 | const file_path_w = try windows.sliceToPrefixedFileW(file_path); | 1055 | const file_path_w = try windows.sliceToPrefixedFileW(file_path); |
| ... | @@ -1147,7 +1147,7 @@ pub fn openW(file_path_w: []const u16, flags: u32, perm: mode_t) OpenError!fd_t | ... | @@ -1147,7 +1147,7 @@ pub fn openW(file_path_w: []const u16, flags: u32, perm: mode_t) OpenError!fd_t |
| 1147 | | 1147 | |
| 1148 | /// Open and possibly create a file. Keeps trying if it gets interrupted. | 1148 | /// Open and possibly create a file. Keeps trying if it gets interrupted. |
| 1149 | /// `file_path` is relative to the open directory handle `dir_fd`. | 1149 | /// `file_path` is relative to the open directory handle `dir_fd`. |
| 1150 | /// See also `openatC`. | 1150 | /// See also `openatZ`. |
| 1151 | pub fn openat(dir_fd: fd_t, file_path: []const u8, flags: u32, mode: mode_t) OpenError!fd_t { | 1151 | pub fn openat(dir_fd: fd_t, file_path: []const u8, flags: u32, mode: mode_t) OpenError!fd_t { |
| 1152 | if (builtin.os.tag == .wasi) { | 1152 | if (builtin.os.tag == .wasi) { |
| 1153 | @compileError("use openatWasi instead"); | 1153 | @compileError("use openatWasi instead"); |
| ... | @@ -1754,7 +1754,7 @@ pub const UnlinkError = error{ | ... | @@ -1754,7 +1754,7 @@ pub const UnlinkError = error{ |
| 1754 | } || UnexpectedError; | 1754 | } || UnexpectedError; |
| 1755 | | 1755 | |
| 1756 | /// Delete a name and possibly the file it refers to. | 1756 | /// Delete a name and possibly the file it refers to. |
| 1757 | /// See also `unlinkC`. | 1757 | /// See also `unlinkZ`. |
| 1758 | pub fn unlink(file_path: []const u8) UnlinkError!void { | 1758 | pub fn unlink(file_path: []const u8) UnlinkError!void { |
| 1759 | if (builtin.os.tag == .wasi) { | 1759 | if (builtin.os.tag == .wasi) { |
| 1760 | @compileError("unlink is not supported in WASI; use unlinkat instead"); | 1760 | @compileError("unlink is not supported in WASI; use unlinkat instead"); |