Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Fix typo in core.sys.posix.grp
Browse files Browse the repository at this point in the history
The thread-safe function to get the group is is named getgrgid_r and not getgruid_r.
  • Loading branch information
redstar committed Nov 20, 2014
1 parent 0314dc0 commit 3c9690d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/sys/posix/grp.d
Original file line number Diff line number Diff line change
Expand Up @@ -101,23 +101,23 @@ group* getgrgid(gid_t);
//
/*
int getgrnam_r(in char*, group*, char*, size_t, group**);
int getgruid_r(gid_t, group*, char*, size_t, group**);
int getgrgid_r(gid_t, group*, char*, size_t, group**);
*/

version( linux )
{
int getgrnam_r(in char*, group*, char*, size_t, group**);
int getgruid_r(gid_t, group*, char*, size_t, group**);
int getgrgid_r(gid_t, group*, char*, size_t, group**);
}
else version( OSX )
{
int getgrnam_r(in char*, group*, char*, size_t, group**);
int getgruid_r(gid_t, group*, char*, size_t, group**);
int getgrgid_r(gid_t, group*, char*, size_t, group**);
}
else version( FreeBSD )
{
int getgrnam_r(in char*, group*, char*, size_t, group**);
int getgruid_r(gid_t, group*, char*, size_t, group**);
int getgrgid_r(gid_t, group*, char*, size_t, group**);
}
else version( Solaris )
{
Expand Down

0 comments on commit 3c9690d

Please sign in to comment.