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

Commit 930f196

Browse files
author
Radu Racariu
committed
add missing uClibc definition to core.sys.posix.grp
1 parent 2d87bb9 commit 930f196

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/core/sys/posix/grp.d

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,16 @@ else version( CRuntime_Bionic )
127127
char** gr_mem;
128128
}
129129
}
130+
else version( CRuntime_UClibc )
131+
{
132+
struct group
133+
{
134+
char* gr_name;
135+
char* gr_passwd;
136+
gid_t gr_gid;
137+
char** gr_mem;
138+
}
139+
}
130140
else
131141
{
132142
static assert(false, "Unsupported platform");
@@ -181,6 +191,11 @@ else version( Solaris )
181191
else version( CRuntime_Bionic )
182192
{
183193
}
194+
else version( CRuntime_UClibc )
195+
{
196+
int getgrnam_r(in char*, group*, char*, size_t, group**);
197+
int getgrgid_r(gid_t, group*, char*, size_t, group**);
198+
}
184199
else
185200
{
186201
static assert(false, "Unsupported platform");
@@ -240,6 +255,12 @@ else version( Solaris )
240255
else version( CRuntime_Bionic )
241256
{
242257
}
258+
else version( CRuntime_UClibc )
259+
{
260+
group* getgrent();
261+
@trusted void endgrent();
262+
@trusted void setgrent();
263+
}
243264
else
244265
{
245266
static assert(false, "Unsupported platform");

0 commit comments

Comments
 (0)