[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT/LIBEIGEN PATCH 5/5] lib/ukunistd: Add group related stubs



Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
---
 lib/ukunistd/exportsyms.uk |  9 ++++++++
 lib/ukunistd/user.c        | 45 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)

diff --git a/lib/ukunistd/exportsyms.uk b/lib/ukunistd/exportsyms.uk
index c27ec216..e463e3af 100644
--- a/lib/ukunistd/exportsyms.uk
+++ b/lib/ukunistd/exportsyms.uk
@@ -13,3 +13,12 @@ getpwuid_r
 getpwent
 setpwent
 endpwent
+getgid
+getegid
+getgroups
+getresgid
+setegid
+setgid
+setregid
+setgroups
+initgroups
diff --git a/lib/ukunistd/user.c b/lib/ukunistd/user.c
index 0d673c0f..8fe991e4 100644
--- a/lib/ukunistd/user.c
+++ b/lib/ukunistd/user.c
@@ -114,3 +114,48 @@ void setpwent(void)
 void endpwent(void)
 {
 }
+
+gid_t getgid(void)
+{
+       return 0;
+}
+
+int setgid(gid_t gid __unused)
+{
+       return 0;
+}
+
+gid_t getegid(void)
+{
+       return 0;
+}
+
+int setegid(gid_t egid __unused)
+{
+       return 0;
+}
+
+int getresgid(gid_t *rgid __unused, gid_t *egid __unused, gid_t *sgid __unused)
+{
+       return 0;
+}
+
+int setregid(gid_t rgid __unused, gid_t egid __unused)
+{
+       return 0;
+}
+
+int initgroups(const char *user __unused, gid_t group __unused)
+{
+       return 0;
+}
+
+int getgroups(int size __unused, gid_t list[] __unused)
+{
+       return 0;
+}
+
+int setgroups(size_t size __unused, const gid_t *list __unused)
+{
+       return 0;
+}
-- 
2.21.0

_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.