#1978 new defect

sem_open lacks support of "mode" argument

Reported by: Ralf Corsepius Owned by: Joel Sherrill
Priority: low Milestone: Indefinite
Component: score Version:
Severity: normal Keywords: POSIX-Compliance
Cc: Blocked By:
Blocking:

Description (last modified by Sebastian Huber)

sem_open in cpukit/posix/src/semopen.c lacks support of sem_opens's "mode"
argument:

sem_t *sem_open(const char *name, int oflag);
sem_t *sem_open(const char *name, int oflag,

mode_t mode, unsigned int value);

The RTEMS implementation only pretends to be supporting it,
which also reflects in a GCC warning:
cpukit/posix/src/semopen.c:51:30: warning: variable 'mode' set but not used

Change History (6)

comment:1 Changed on Dec 1, 2011 at 2:33:34 AM by Ralf Corsepius

sem_open in cpukit/posix/src/semopen.c lacks support of sem_opens's "mode"
argument:

sem_t *sem_open(const char *name, int oflag);
sem_t *sem_open(const char *name, int oflag,

mode_t mode, unsigned int value);

The RTEMS implementation only pretends to be supporting it,
which also reflects in a GCC warning:
cpukit/posix/src/semopen.c:51:30: warning: variable 'mode' set but not used

comment:2 Changed on Dec 1, 2011 at 2:34:01 AM by Ralf Corsepius

see_also: https://www.rtems.org/bugzilla/show_bug.cgi?id=1977

comment:3 Changed on Nov 24, 2014 at 6:58:28 PM by Gedare Bloom

Version: HEAD4.11

Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11

comment:4 Changed on Dec 18, 2014 at 11:05:56 AM by Sebastian Huber

Description: modified (diff)
Milestone: 4.115.0
Priority: normallow

comment:5 Changed on Apr 3, 2017 at 11:20:18 PM by Joel Sherrill

Keywords: POSIX-Compliance added

Evaluate the meaning of mode on this call and deal with this ticket.

comment:6 Changed on Aug 14, 2017 at 12:34:18 AM by Chris Johns

Milestone: 5.0Indefinite
Version: 4.11
Note: See TracTickets for help on using tickets.