authorgravatar for CutieDeng@iCloud.comCutie Deng <CutieDeng@iCloud.com> 2025-04-30 00:55:20+08:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-05-01 06:47:56+02:00
logc1649d586a7e25e0d623e59525b114c32a1bbc15
treeecb07d71bdc9e01fd0a416b4f3aa737862b92c91
parent9f7c8b8b1bafe91bf5035c06f72de967a92f6a6c

fix mount api

- mount syscall allow `source` to be null

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

lib/std/os/linux.zig+1-1
......@@ -906,7 +906,7 @@ pub fn mknodat(dirfd: i32, path: [*:0]const u8, mode: u32, dev: u32) usize {
906906 return syscall4(.mknodat, @as(usize, @bitCast(@as(isize, dirfd))), @intFromPtr(path), mode, dev);
907907}
908908
909pub fn mount(special: [*:0]const u8, dir: [*:0]const u8, fstype: ?[*:0]const u8, flags: u32, data: usize) usize {
909pub fn mount(special: ?[*:0]const u8, dir: [*:0]const u8, fstype: ?[*:0]const u8, flags: u32, data: usize) usize {
910910 return syscall5(.mount, @intFromPtr(special), @intFromPtr(dir), @intFromPtr(fstype), flags, data);
911911}
912912