[RTEMS Project] #1977: mq_open lacks support of "mode" argument

RTEMS trac trac at rtems.org
Thu Dec 18 11:05:36 UTC 2014


#1977: mq_open lacks support of "mode" argument
----------------------------+----------------------------
 Reporter:  ralf.corsepius  |       Owner:  joel.sherrill
     Type:  defect          |      Status:  new
 Priority:  low             |   Milestone:  5.0
Component:  cpukit          |     Version:  4.11
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+----------------------------
Changes (by sebastian.huber):

 * priority:  normal => low
 * milestone:  4.11 => 5.0


Old description:

> 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

New description:

 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

--

--
Ticket URL: <http://devel.rtems.org/ticket/1977#comment:4>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list