realgroupmember(9): Link to groupmember(9), document the function

Reviewed by:            bcr (older version), mhorne
MFC after:              2 weeks
Sponsored by:           Kumacom SAS
Differential Revision:  https://reviews.freebsd.org/D40643
This commit is contained in:
Olivier Certner 2023-08-18 01:54:46 +02:00 committed by Mitchell Horne
parent 91658080f1
commit 5d9f38405a
2 changed files with 8 additions and 0 deletions

View file

@ -1157,6 +1157,7 @@ MLINKS+=g_provider.9 g_destroy_provider.9 \
g_provider.9 g_error_provider.9 \
g_provider.9 g_new_providerf.9
MLINKS+=gone_in.9 gone_in_dev.9
MLINKS+=groupmember.9 realgroupmember.9
MLINKS+=hash.9 hash32.9 \
hash.9 hash32_buf.9 \
hash.9 hash32_str.9 \

View file

@ -36,6 +36,8 @@
.In sys/ucred.h
.Ft int
.Fn groupmember "gid_t gid" "struct ucred *cred"
.Ft int
.Fn realgroupmember "gid_t gid" "struct ucred *cred"
.Sh DESCRIPTION
The
.Fn groupmember
@ -49,6 +51,11 @@ Considered groups in
.Fa cred
are the effective and supplementary groups.
The real group is not taken into account.
.Pp
Function
.Fn realgroupmember
works the same except that it considers instead the real and supplementary
groups, and not the effective one.
.Sh RETURN VALUES
If the
.Fa gid