mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:39:01 +08:00
Add shared memory initializatin logic
This commit is contained in:
@@ -89,10 +89,12 @@ extern "C"
|
||||
|
||||
struct ipc_perm
|
||||
{
|
||||
#if 0 /* User and group IDs not yet supported by NuttX */
|
||||
uid_t uid; /* Owner's user ID */
|
||||
gid_t gid; /* Owner's group ID */
|
||||
uid_t cuid; /* Creator's user ID */
|
||||
gid_t cgid; /* Creator's group ID */
|
||||
#endif
|
||||
mode_t mode; /* Read/write permission */
|
||||
};
|
||||
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
/****************************************************************************
|
||||
* Pre-Processor Definitions
|
||||
****************************************************************************/
|
||||
/* Definitions required by POSIX */
|
||||
|
||||
#define SHM_RDONLY 0x01 /* Attach read-only (else read-write) */
|
||||
#define SHM_RND 0x02 /* Round attach address to SHMLBA */
|
||||
|
||||
Reference in New Issue
Block a user