aboutsummaryrefslogtreecommitdiffstats
path: root/include/grp.h
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2016-07-31 08:05:15 +0000
committerEd Schouten <ed@FreeBSD.org>2016-07-31 08:05:15 +0000
commit9c2429137029a41f0c01e3bf3725281a35b9464e (patch)
tree9d1e8edcf7c0f72ccbb9d47b0858753b289abb6b /include/grp.h
parent452ccc029faec31c596fc285022215d2c126cfd3 (diff)
downloadsrc-9c2429137029a41f0c01e3bf3725281a35b9464e.tar.gz
src-9c2429137029a41f0c01e3bf3725281a35b9464e.zip
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)
Notes
Notes: svn path=/head/; revision=303580
Diffstat (limited to 'include/grp.h')
-rw-r--r--include/grp.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/grp.h b/include/grp.h
index b10fd0f8ad36..8103808cca11 100644
--- a/include/grp.h
+++ b/include/grp.h
@@ -75,8 +75,7 @@ int pwcache_groupdb(int (*)(int), void (*)(void),
struct group * (*)(gid_t));
#endif
#if __XSI_VISIBLE
-/* XXX IEEE Std 1003.1, 2003 specifies `void setgrent(void)' */
-int setgrent(void);
+void setgrent(void);
#endif
#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
int getgrgid_r(gid_t, struct group *, char *, size_t,