mirror of
https://github.com/apache/nuttx.git
synced 2026-03-27 02:29:15 +08:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user