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{
10491049} || UnexpectedError;
10501050
10511051/// Open and possibly create a file. Keeps trying if it gets interrupted.
1052/// See also `openC`.
1052/// See also `openZ`.
10531053pub fn open(file_path: []const u8, flags: u32, perm: mode_t) OpenError!fd_t {
10541054 if (std.Target.current.os.tag == .windows) {
10551055 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
11471147
11481148/// Open and possibly create a file. Keeps trying if it gets interrupted.
11491149/// `file_path` is relative to the open directory handle `dir_fd`.
1150/// See also `openatC`.
1150/// See also `openatZ`.
11511151pub fn openat(dir_fd: fd_t, file_path: []const u8, flags: u32, mode: mode_t) OpenError!fd_t {
11521152 if (builtin.os.tag == .wasi) {
11531153 @compileError("use openatWasi instead");
......@@ -1754,7 +1754,7 @@ pub const UnlinkError = error{
17541754} || UnexpectedError;
17551755
17561756/// Delete a name and possibly the file it refers to.
1757/// See also `unlinkC`.
1757/// See also `unlinkZ`.
17581758pub fn unlink(file_path: []const u8) UnlinkError!void {
17591759 if (builtin.os.tag == .wasi) {
17601760 @compileError("unlink is not supported in WASI; use unlinkat instead");