#1977 new defect

mq_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)

mq_open in cpukit/posix/src/mqueueopen.c lacks support of mq_open's "mode" argument:

mqd_t mq_open(const char *name, int oflag);
mqd_t mq_open(const char *name, int oflag, mode_t mode,

struct mq_attr *attr);

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

Change History (6)

comment:1 Changed on Dec 1, 2011 at 2:30:15 AM by Ralf Corsepius

mq_open in cpukit/posix/src/mqueueopen.c lacks support of mq_open's "mode" argument:

mqd_t mq_open(const char *name, int oflag);
mqd_t mq_open(const char *name, int oflag, mode_t mode,

struct mq_attr *attr);

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

comment:2 Changed on Dec 1, 2011 at 2:35:09 AM by Ralf Corsepius

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

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:36 AM by Sebastian Huber

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

comment:5 Changed on Apr 3, 2017 at 11:19:39 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:33:42 AM by Chris Johns

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