| ... | @@ -301,7 +301,7 @@ pub const IterableDir = struct { | ... | @@ -301,7 +301,7 @@ pub const IterableDir = struct { |
| 301 | .macos, .ios, .freebsd, .netbsd, .dragonfly, .openbsd, .solaris => struct { | 301 | .macos, .ios, .freebsd, .netbsd, .dragonfly, .openbsd, .solaris => struct { |
| 302 | dir: Dir, | 302 | dir: Dir, |
| 303 | seek: i64, | 303 | seek: i64, |
| 304 | buf: [8192]u8, // TODO align(@alignOf(os.system.dirent)), | 304 | buf: [1024]u8, // TODO align(@alignOf(os.system.dirent)), |
| 305 | index: usize, | 305 | index: usize, |
| 306 | end_index: usize, | 306 | end_index: usize, |
| 307 | first_iter: bool, | 307 | first_iter: bool, |
| ... | @@ -499,7 +499,7 @@ pub const IterableDir = struct { | ... | @@ -499,7 +499,7 @@ pub const IterableDir = struct { |
| 499 | }, | 499 | }, |
| 500 | .haiku => struct { | 500 | .haiku => struct { |
| 501 | dir: Dir, | 501 | dir: Dir, |
| 502 | buf: [8192]u8, // TODO align(@alignOf(os.dirent64)), | 502 | buf: [1024]u8, // TODO align(@alignOf(os.dirent64)), |
| 503 | index: usize, | 503 | index: usize, |
| 504 | end_index: usize, | 504 | end_index: usize, |
| 505 | first_iter: bool, | 505 | first_iter: bool, |
| ... | @@ -594,7 +594,7 @@ pub const IterableDir = struct { | ... | @@ -594,7 +594,7 @@ pub const IterableDir = struct { |
| 594 | dir: Dir, | 594 | dir: Dir, |
| 595 | // The if guard is solely there to prevent compile errors from missing `linux.dirent64` | 595 | // The if guard is solely there to prevent compile errors from missing `linux.dirent64` |
| 596 | // definition when compiling for other OSes. It doesn't do anything when compiling for Linux. | 596 | // definition when compiling for other OSes. It doesn't do anything when compiling for Linux. |
| 597 | buf: [8192]u8 align(if (builtin.os.tag != .linux) 1 else @alignOf(linux.dirent64)), | 597 | buf: [1024]u8 align(if (builtin.os.tag != .linux) 1 else @alignOf(linux.dirent64)), |
| 598 | index: usize, | 598 | index: usize, |
| 599 | end_index: usize, | 599 | end_index: usize, |
| 600 | first_iter: bool, | 600 | first_iter: bool, |
| ... | @@ -676,7 +676,7 @@ pub const IterableDir = struct { | ... | @@ -676,7 +676,7 @@ pub const IterableDir = struct { |
| 676 | }, | 676 | }, |
| 677 | .windows => struct { | 677 | .windows => struct { |
| 678 | dir: Dir, | 678 | dir: Dir, |
| 679 | buf: [8192]u8 align(@alignOf(os.windows.FILE_BOTH_DIR_INFORMATION)), | 679 | buf: [1024]u8 align(@alignOf(os.windows.FILE_BOTH_DIR_INFORMATION)), |
| 680 | index: usize, | 680 | index: usize, |
| 681 | end_index: usize, | 681 | end_index: usize, |
| 682 | first_iter: bool, | 682 | first_iter: bool, |
| ... | @@ -754,7 +754,7 @@ pub const IterableDir = struct { | ... | @@ -754,7 +754,7 @@ pub const IterableDir = struct { |
| 754 | }, | 754 | }, |
| 755 | .wasi => struct { | 755 | .wasi => struct { |
| 756 | dir: Dir, | 756 | dir: Dir, |
| 757 | buf: [8192]u8, // TODO align(@alignOf(os.wasi.dirent_t)), | 757 | buf: [1024]u8, // TODO align(@alignOf(os.wasi.dirent_t)), |
| 758 | cookie: u64, | 758 | cookie: u64, |
| 759 | index: usize, | 759 | index: usize, |
| 760 | end_index: usize, | 760 | end_index: usize, |