@@ -46,7 +46,7 @@ pub const GetAppDataDirError = @import("fs/get_app_data_dir.zig").GetAppDataDirE
46
46
/// The byte count includes room for a null sentinel byte.
47
47
///
48
48
/// * On Windows, `[]u8` file paths are encoded as
49
- /// [WTF-8](https://simonsapin.github.io/ wtf-8/).
49
+ /// [WTF-8](https://wtf-8.codeberg.page /).
50
50
/// * On WASI, `[]u8` file paths are encoded as valid UTF-8.
51
51
/// * On other platforms, `[]u8` file paths are opaque sequences of bytes with
52
52
/// no particular encoding.
@@ -68,7 +68,7 @@ pub const max_path_bytes = switch (native_os) {
68
68
/// operations are likely to fit into a `u8` array of this length, but
69
69
/// (depending on the platform) this assumption may not hold for every configuration.
70
70
/// The byte count does not include a null sentinel byte.
71
- /// On Windows, `[]u8` file name components are encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
71
+ /// On Windows, `[]u8` file name components are encoded as [WTF-8](https://wtf-8.codeberg.page /).
72
72
/// On WASI, file name components are encoded as valid UTF-8.
73
73
/// On other platforms, `[]u8` components are an opaque sequence of bytes with no particular encoding.
74
74
pub const max_name_bytes = switch (native_os ) {
@@ -100,7 +100,7 @@ pub const base64_decoder = base64.Base64Decoder.init(base64_alphabet, null);
100
100
/// Same as `Dir.updateFile`, except asserts that both `source_path` and `dest_path`
101
101
/// are absolute. See `Dir.updateFile` for a function that operates on both
102
102
/// absolute and relative paths.
103
- /// On Windows, both paths should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
103
+ /// On Windows, both paths should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
104
104
/// On WASI, both paths should be encoded as valid UTF-8.
105
105
/// On other platforms, both paths are an opaque sequence of bytes with no particular encoding.
106
106
pub fn updateFileAbsolute (
@@ -117,7 +117,7 @@ pub fn updateFileAbsolute(
117
117
/// Same as `Dir.copyFile`, except asserts that both `source_path` and `dest_path`
118
118
/// are absolute. See `Dir.copyFile` for a function that operates on both
119
119
/// absolute and relative paths.
120
- /// On Windows, both paths should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
120
+ /// On Windows, both paths should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
121
121
/// On WASI, both paths should be encoded as valid UTF-8.
122
122
/// On other platforms, both paths are an opaque sequence of bytes with no particular encoding.
123
123
pub fn copyFileAbsolute (
@@ -134,7 +134,7 @@ pub fn copyFileAbsolute(
134
134
/// Create a new directory, based on an absolute path.
135
135
/// Asserts that the path is absolute. See `Dir.makeDir` for a function that operates
136
136
/// on both absolute and relative paths.
137
- /// On Windows, `absolute_path` should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
137
+ /// On Windows, `absolute_path` should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
138
138
/// On WASI, `absolute_path` should be encoded as valid UTF-8.
139
139
/// On other platforms, `absolute_path` is an opaque sequence of bytes with no particular encoding.
140
140
pub fn makeDirAbsolute (absolute_path : []const u8 ) ! void {
@@ -155,7 +155,7 @@ pub fn makeDirAbsoluteW(absolute_path_w: [*:0]const u16) !void {
155
155
}
156
156
157
157
/// Same as `Dir.deleteDir` except the path is absolute.
158
- /// On Windows, `dir_path` should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
158
+ /// On Windows, `dir_path` should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
159
159
/// On WASI, `dir_path` should be encoded as valid UTF-8.
160
160
/// On other platforms, `dir_path` is an opaque sequence of bytes with no particular encoding.
161
161
pub fn deleteDirAbsolute (dir_path : []const u8 ) ! void {
@@ -176,7 +176,7 @@ pub fn deleteDirAbsoluteW(dir_path: [*:0]const u16) !void {
176
176
}
177
177
178
178
/// Same as `Dir.rename` except the paths are absolute.
179
- /// On Windows, both paths should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
179
+ /// On Windows, both paths should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
180
180
/// On WASI, both paths should be encoded as valid UTF-8.
181
181
/// On other platforms, both paths are an opaque sequence of bytes with no particular encoding.
182
182
pub fn renameAbsolute (old_path : []const u8 , new_path : []const u8 ) ! void {
@@ -238,7 +238,7 @@ pub fn defaultWasiCwd() std.os.wasi.fd_t {
238
238
/// See `openDirAbsoluteZ` for a function that accepts a null-terminated path.
239
239
///
240
240
/// Asserts that the path parameter has no null bytes.
241
- /// On Windows, `absolute_path` should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
241
+ /// On Windows, `absolute_path` should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
242
242
/// On WASI, `absolute_path` should be encoded as valid UTF-8.
243
243
/// On other platforms, `absolute_path` is an opaque sequence of bytes with no particular encoding.
244
244
pub fn openDirAbsolute (absolute_path : []const u8 , flags : Dir.OpenOptions ) File.OpenError ! Dir {
@@ -263,7 +263,7 @@ pub fn openDirAbsoluteW(absolute_path_c: [*:0]const u16, flags: Dir.OpenOptions)
263
263
/// operates on both absolute and relative paths.
264
264
/// Asserts that the path parameter has no null bytes. See `openFileAbsoluteZ` for a function
265
265
/// that accepts a null-terminated path.
266
- /// On Windows, `absolute_path` should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
266
+ /// On Windows, `absolute_path` should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
267
267
/// On WASI, `absolute_path` should be encoded as valid UTF-8.
268
268
/// On other platforms, `absolute_path` is an opaque sequence of bytes with no particular encoding.
269
269
pub fn openFileAbsolute (absolute_path : []const u8 , flags : File.OpenFlags ) File.OpenError ! File {
@@ -288,7 +288,7 @@ pub fn openFileAbsoluteW(absolute_path_w: []const u16, flags: File.OpenFlags) Fi
288
288
/// For example, instead of testing if a file exists and then opening it, just
289
289
/// open it and handle the error for file not found.
290
290
/// See `accessAbsoluteZ` for a function that accepts a null-terminated path.
291
- /// On Windows, `absolute_path` should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
291
+ /// On Windows, `absolute_path` should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
292
292
/// On WASI, `absolute_path` should be encoded as valid UTF-8.
293
293
/// On other platforms, `absolute_path` is an opaque sequence of bytes with no particular encoding.
294
294
pub fn accessAbsolute (absolute_path : []const u8 , flags : File.OpenFlags ) Dir.AccessError ! void {
@@ -312,7 +312,7 @@ pub fn accessAbsoluteW(absolute_path: [*:0]const u16, flags: File.OpenFlags) Dir
312
312
/// operates on both absolute and relative paths.
313
313
/// Asserts that the path parameter has no null bytes. See `createFileAbsoluteC` for a function
314
314
/// that accepts a null-terminated path.
315
- /// On Windows, `absolute_path` should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
315
+ /// On Windows, `absolute_path` should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
316
316
/// On WASI, `absolute_path` should be encoded as valid UTF-8.
317
317
/// On other platforms, `absolute_path` is an opaque sequence of bytes with no particular encoding.
318
318
pub fn createFileAbsolute (absolute_path : []const u8 , flags : File.CreateFlags ) File.OpenError ! File {
@@ -336,7 +336,7 @@ pub fn createFileAbsoluteW(absolute_path_w: [*:0]const u16, flags: File.CreateFl
336
336
/// Asserts that the path is absolute. See `Dir.deleteFile` for a function that
337
337
/// operates on both absolute and relative paths.
338
338
/// Asserts that the path parameter has no null bytes.
339
- /// On Windows, `absolute_path` should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
339
+ /// On Windows, `absolute_path` should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
340
340
/// On WASI, `absolute_path` should be encoded as valid UTF-8.
341
341
/// On other platforms, `absolute_path` is an opaque sequence of bytes with no particular encoding.
342
342
pub fn deleteFileAbsolute (absolute_path : []const u8 ) Dir.DeleteFileError ! void {
@@ -361,7 +361,7 @@ pub fn deleteFileAbsoluteW(absolute_path_w: [*:0]const u16) Dir.DeleteFileError!
361
361
/// Asserts that the path is absolute. See `Dir.deleteTree` for a function that
362
362
/// operates on both absolute and relative paths.
363
363
/// Asserts that the path parameter has no null bytes.
364
- /// On Windows, `absolute_path` should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
364
+ /// On Windows, `absolute_path` should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
365
365
/// On WASI, `absolute_path` should be encoded as valid UTF-8.
366
366
/// On other platforms, `absolute_path` is an opaque sequence of bytes with no particular encoding.
367
367
pub fn deleteTreeAbsolute (absolute_path : []const u8 ) ! void {
@@ -379,7 +379,7 @@ pub fn deleteTreeAbsolute(absolute_path: []const u8) !void {
379
379
}
380
380
381
381
/// Same as `Dir.readLink`, except it asserts the path is absolute.
382
- /// On Windows, `pathname` should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
382
+ /// On Windows, `pathname` should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
383
383
/// On WASI, `pathname` should be encoded as valid UTF-8.
384
384
/// On other platforms, `pathname` is an opaque sequence of bytes with no particular encoding.
385
385
pub fn readLinkAbsolute (pathname : []const u8 , buffer : * [max_path_bytes ]u8 ) ! []u8 {
@@ -405,7 +405,7 @@ pub fn readLinkAbsoluteZ(pathname_c: [*:0]const u8, buffer: *[max_path_bytes]u8)
405
405
/// one; the latter case is known as a dangling link.
406
406
/// If `sym_link_path` exists, it will not be overwritten.
407
407
/// See also `symLinkAbsoluteZ` and `symLinkAbsoluteW`.
408
- /// On Windows, both paths should be encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
408
+ /// On Windows, both paths should be encoded as [WTF-8](https://wtf-8.codeberg.page /).
409
409
/// On WASI, both paths should be encoded as valid UTF-8.
410
410
/// On other platforms, both paths are an opaque sequence of bytes with no particular encoding.
411
411
pub fn symLinkAbsolute (
@@ -537,7 +537,7 @@ pub fn selfExePathAlloc(allocator: Allocator) ![]u8 {
537
537
/// This function may return an error if the current executable
538
538
/// was deleted after spawning.
539
539
/// Returned value is a slice of out_buffer.
540
- /// On Windows, the result is encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
540
+ /// On Windows, the result is encoded as [WTF-8](https://wtf-8.codeberg.page /).
541
541
/// On other platforms, the result is an opaque sequence of bytes with no particular encoding.
542
542
///
543
543
/// On Linux, depends on procfs being mounted. If the currently executing binary has
@@ -677,7 +677,7 @@ pub fn selfExeDirPathAlloc(allocator: Allocator) ![]u8 {
677
677
678
678
/// Get the directory path that contains the current executable.
679
679
/// Returned value is a slice of out_buffer.
680
- /// On Windows, the result is encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
680
+ /// On Windows, the result is encoded as [WTF-8](https://wtf-8.codeberg.page /).
681
681
/// On other platforms, the result is an opaque sequence of bytes with no particular encoding.
682
682
pub fn selfExeDirPath (out_buffer : []u8 ) SelfExePathError ! []const u8 {
683
683
const self_exe_path = try selfExePath (out_buffer );
@@ -687,7 +687,7 @@ pub fn selfExeDirPath(out_buffer: []u8) SelfExePathError![]const u8 {
687
687
}
688
688
689
689
/// `realpath`, except caller must free the returned memory.
690
- /// On Windows, the result is encoded as [WTF-8](https://simonsapin.github.io/ wtf-8/).
690
+ /// On Windows, the result is encoded as [WTF-8](https://wtf-8.codeberg.page /).
691
691
/// On other platforms, the result is an opaque sequence of bytes with no particular encoding.
692
692
/// See also `Dir.realpath`.
693
693
pub fn realpathAlloc (allocator : Allocator , pathname : []const u8 ) ! []u8 {
0 commit comments