libc/libc/unistd/: Add stubs for geteuid(), getegid(), seteuid(), and setegid(). NuttX does not currently support effective user/group IDs, but these stubs will support linkage of appliations that expect these POSIX standard interfaces.

This commit is contained in:
Gregory Nutt
2019-09-03 10:57:51 -06:00
parent 68bbc8438c
commit a2bf7057f6
7 changed files with 340 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
/****************************************************************************
* include/unistd.h
*
* Copyright (C) 2007-2009, 2013-2014, 2016-2018 Gregory Nutt. All rights
* Copyright (C) 2007-2009, 2013-2014, 2016-2019 Gregory Nutt. All rights
* reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
@@ -375,6 +375,11 @@ uid_t getuid(void);
int setgid(gid_t gid);
gid_t getgid(void);
int seteuid(uid_t uid);
uid_t geteuid(void);
int setegid(gid_t gid);
gid_t getegid(void);
#undef EXTERN
#if defined(__cplusplus)
}