[PATCH] posix shm: Add oflag to Shm_Control

Joel Sherrill joel at rtems.org
Tue Sep 19 13:47:32 UTC 2017


---
 cpukit/posix/include/rtems/posix/shm.h | 1 +
 cpukit/posix/src/shmopen.c             | 1 +
 2 files changed, 2 insertions(+)

diff --git a/cpukit/posix/include/rtems/posix/shm.h b/cpukit/posix/include/rtems/posix/shm.h
index 9284b39..d2b6036 100644
--- a/cpukit/posix/include/rtems/posix/shm.h
+++ b/cpukit/posix/include/rtems/posix/shm.h
@@ -117,6 +117,7 @@ typedef struct {
    uid_t                uid;
    gid_t                gid;
    mode_t               mode;
+   int                  oflag;
 
    time_t               atime;
    time_t               mtime;
diff --git a/cpukit/posix/src/shmopen.c b/cpukit/posix/src/shmopen.c
index 59e9e9d..8913e19 100644
--- a/cpukit/posix/src/shmopen.c
+++ b/cpukit/posix/src/shmopen.c
@@ -179,6 +179,7 @@ static inline POSIX_Shm_Control *shm_allocate(
   shm->shm_object.size = 0;
   shm->shm_object.ops = &_POSIX_Shm_Object_operations;
   shm->mode = mode & ~rtems_filesystem_umask;
+  shm->oflag = oflag;
   shm->uid = geteuid();
   shm->gid = getegid();
   shm->atime = (time_t) tv.tv_sec;
-- 
1.8.3.1



More information about the devel mailing list