authorgravatar for yasin-gorgij@noreply.codeberg.orgYasin Gorgij <yasin-gorgij@noreply.codeberg.org> 2026-07-07 10:49:14+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-07-07 10:49:14+02:00
log3210dc4b006cd8718e5fee5530ad4383b0230959
treea41f81f06c3126a43400237fcde2b10750612ae9
parente672555f4f92725ac82c1aa687932ece2c91595f

std.c: change the return value of 'getgrnam' function to '?*group' (#36078)

Reviewed-on: https://codeberg.org/ziglang/zig/pulls/36078 Reviewed-by: Alex Rønne Petersen <alex@alexrp.com>

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

lib/std/c.zig+1-1
......@@ -10343,7 +10343,7 @@ pub extern "c" fn getpwuid_r(uid: uid_t, pwd: *passwd, buf: [*]u8, buflen: usize
1034310343pub extern "c" fn getgrent() ?*group;
1034410344pub extern "c" fn setgrent() void;
1034510345pub extern "c" fn endgrent() void;
10346pub extern "c" fn getgrnam(name: [*:0]const u8) ?*passwd;
10346pub extern "c" fn getgrnam(name: [*:0]const u8) ?*group;
1034710347pub extern "c" fn getgrnam_r(name: [*:0]const u8, grp: *group, buf: [*]u8, buflen: usize, result: *?*group) c_int;
1034810348pub extern "c" fn getgrgid(gid: gid_t) ?*group;
1034910349pub extern "c" fn getgrgid_r(gid: gid_t, grp: *group, buf: [*]u8, buflen: usize, result: *?*group) c_int;