posix shm: Add oflag to Shm_Control

This commit is contained in:
Joel Sherrill
2017-09-22 16:45:05 -05:00
parent 05f9858ffd
commit ea4488ae89
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -117,6 +117,7 @@ typedef struct {
uid_t uid;
gid_t gid;
mode_t mode;
int oflag;
time_t atime;
time_t mtime;
+1
View File
@@ -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;