Bug 508958 - FreeBSD: add getgroups and setgroups wrappers
Summary: FreeBSD: add getgroups and setgroups wrappers
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other FreeBSD
: NOR normal
Target Milestone: ---
Assignee: Paul Floyd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-31 08:57 UTC by Paul Floyd
Modified: 2025-08-31 14:43 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Floyd 2025-08-31 08:57:22 UTC
Don't look complicated

595	AUE_GETGROUPS	STD|CAPENABLED {
		int getgroups(
		    int gidsetsize,
		    _Out_writes_opt_(gidsetsize) gid_t *gidset
		);
	}
596	AUE_SETGROUPS	STD {
		int setgroups(
		    int gidsetsize,
		    _In_reads_(gidsetsize) const gid_t *gidset
		);
	}
Comment 1 Paul Floyd 2025-08-31 10:02:55 UTC
Even easier, the new syscall has just a semantic change. It uses exactly the same interface as the existing generic wrapper.
Comment 2 Paul Floyd 2025-08-31 14:43:33 UTC
commit 128017143a942263542a1d87132f3bae782ce645
Author: Paul Floyd <pjfloyd@wanadoo.fr>
Date:   Sun Aug 31 16:32:20 2025 +0200

    Bug 508958 - FreeBSD: add getgroups and setgroups wrappers