Fix up setgrent(3) to have a POSIX-compliant prototype.
authored <ed@FreeBSD.org>
Sun, 31 Jul 2016 08:05:15 +0000 (08:05 +0000)
committered <ed@FreeBSD.org>
Sun, 31 Jul 2016 08:05:15 +0000 (08:05 +0000)
commit786c3926a65879b5dd6c301ca9ccdfda486fd195
tree9d1e8edcf7c0f72ccbb9d47b0858753b289abb6b
parent7d8b87ab3b347c615ffd220182c54d64d8b48eed
Fix up setgrent(3) to have a POSIX-compliant prototype.

Just like with freelocale(3), I haven't been able to find any piece of
code that actually makes use of this function's return value, both in
base and in ports. The reason for this is that FreeBSD seems to be the
only operating system to have such a prototype. This is why I'm deciding
to not use symbol versioning for this.

It does seem that the pw(8) utility depends on the function's typing and
already had a switch in place to toggle between the FreeBSD and POSIX
variant of this function. Clean this up by always expecting the POSIX
variant.

There is also a single port that has a couple of local declarations of
setgrent(3) that need to be patched up. This is in the process of being
fixed.

PR: 211394 (exp-run)
include/grp.h
lib/libc/gen/getgrent.3
lib/libc/gen/getgrent.c
usr.sbin/pw/pw_vpw.c
usr.sbin/pw/pwupd.h