From 3210dc4b006cd8718e5fee5530ad4383b0230959 Mon Sep 17 00:00:00 2001 From: Yasin Gorgij Date: Tue, 7 Jul 2026 10:49:14 +0200 Subject: [PATCH] std.c: change the return value of 'getgrnam' function to '?*group' (#36078) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-on: https://codeberg.org/ziglang/zig/pulls/36078 Reviewed-by: Alex Rønne Petersen --- lib/std/c.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/c.zig b/lib/std/c.zig index 13a2b7eb4e6607ba9ea1fba0fe6a19feec998890..4e00a76af698e864b047afb0cc084ada9a666e07 100644 --- a/lib/std/c.zig +++ b/lib/std/c.zig @@ -10343,7 +10343,7 @@ pub extern "c" fn getpwuid_r(uid: uid_t, pwd: *passwd, buf: [*]u8, buflen: usize pub extern "c" fn getgrent() ?*group; pub extern "c" fn setgrent() void; pub extern "c" fn endgrent() void; -pub extern "c" fn getgrnam(name: [*:0]const u8) ?*passwd; +pub extern "c" fn getgrnam(name: [*:0]const u8) ?*group; pub extern "c" fn getgrnam_r(name: [*:0]const u8, grp: *group, buf: [*]u8, buflen: usize, result: *?*group) c_int; pub extern "c" fn getgrgid(gid: gid_t) ?*group; pub extern "c" fn getgrgid_r(gid: gid_t, grp: *group, buf: [*]u8, buflen: usize, result: *?*group) c_int; -- 2.54.0