mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-31 18:16:41 +08:00
posix shm: Add oflag to Shm_Control
This commit is contained in:
@@ -117,6 +117,7 @@ typedef struct {
|
||||
uid_t uid;
|
||||
gid_t gid;
|
||||
mode_t mode;
|
||||
int oflag;
|
||||
|
||||
time_t atime;
|
||||
time_t mtime;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user