authorgravatar for dev@doubly.soDevin Bayer <dev@doubly.so> 2021-04-30 21:31:01+02:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2021-04-30 21:31:01+02:00
logd3f55782b0a48a4472d7d535ac1215c8f5d43e31
treeabd1e4539f4aa7f774f6808fd465a97d0e3a528e
parentf79b487337d7d11ae35fd4a15294c75e23c5f02b
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

rename doc refs to deprecated functions like openC (#8467)


1 files changed, 3 insertions(+), 3 deletions(-)

lib/std/os.zig+3-3
...@@ -1049,7 +1049,7 @@ pub const OpenError = error{...@@ -1049,7 +1049,7 @@ pub const OpenError = error{
1049} || UnexpectedError;1049} || UnexpectedError;
10501050
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`.
1053pub fn open(file_path: []const u8, flags: u32, perm: mode_t) OpenError!fd_t {1053pub 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
11471147
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`.
1151pub fn openat(dir_fd: fd_t, file_path: []const u8, flags: u32, mode: mode_t) OpenError!fd_t {1151pub 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;
17551755
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`.
1758pub fn unlink(file_path: []const u8) UnlinkError!void {1758pub 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");