commit 046f1810cdd99c4cae64396d766db82a0d7c4b78 parent 557d442fc7e698f47d05dfa1293e9e242cb6cf83 Author: Sebastian <sebastian@sebsite.pw> Date: Fri, 26 Jan 2024 19:00:10 -0500 unix: document ownership for unix::getgroups Signed-off-by: Sebastian <sebastian@sebsite.pw> Diffstat:
M | unix/+freebsd/groups.ha | | | 3 | ++- |
M | unix/+linux/groups.ha | | | 3 | ++- |
M | unix/+openbsd/groups.ha | | | 3 | ++- |
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/unix/+freebsd/groups.ha b/unix/+freebsd/groups.ha @@ -3,7 +3,8 @@ use rt; -// Returns a list of supplementary group IDs for the current process. +// Returns a list of supplementary group IDs for the current process. The +// returned slice is statically allocated. export fn getgroups() []uint = { static let gids: [rt::NGROUPS_MAX]uint = [0...]; const n = rt::getgroups(gids)!; diff --git a/unix/+linux/groups.ha b/unix/+linux/groups.ha @@ -3,7 +3,8 @@ use rt; -// Returns a list of supplementary group IDs for the current process. +// Returns a list of supplementary group IDs for the current process. The +// returned slice is statically allocated. export fn getgroups() []uint = { static let gids: [rt::NGROUPS_MAX]uint = [0...]; const n = rt::getgroups(gids)!; diff --git a/unix/+openbsd/groups.ha b/unix/+openbsd/groups.ha @@ -3,7 +3,8 @@ use rt; -// Returns a list of supplementary group IDs for the current process. +// Returns a list of supplementary group IDs for the current process. The +// returned slice is statically allocated. export fn getgroups() []uint = { static let gids: [rt::NGROUPS_MAX]uint = [0...]; const n = rt::getgroups(gids)!;