#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 12/01/11 at 02:33:34 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 12/01/11 at 02:34:01 by Ralf Corsepius

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

comment:3 Changed on 11/24/14 at 18:58:28 by Gedare Bloom

Version: HEAD4.11

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

comment:4 Changed on 12/18/14 at 11:05:56 by Sebastian Huber

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

comment:5 Changed on 04/03/17 at 23:20:18 by Joel Sherrill

Keywords: POSIX-Compliance added

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

comment:6 Changed on 08/14/17 at 00:34:18 by Chris Johns

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