Add shared memory initializatin logic

This commit is contained in:
Gregory Nutt
2014-09-23 08:46:31 -06:00
parent 242d5f2068
commit a73a3ef99f
12 changed files with 381 additions and 13 deletions
+2
View File
@@ -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 */
};
+1
View File
@@ -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 */