Date: Mon, 15 Sep 2014 16:56:34 +0800 From: Erich Dollansky <erichsfreebsdlist@alogt.com> To: Mateusz Guzik <mjguzik@gmail.com> Cc: freebsd-stable <freebsd-stable@freebsd.org> Subject: Re: mq_open sets errno to 78 when queue does not exist Message-ID: <20140915165634.30fe6e8a@X220.alogt.com> In-Reply-To: <20140915082635.GA3042@dft-labs.eu> References: <20140915145912.361a25e9@X220.alogt.com> <20140915082635.GA3042@dft-labs.eu>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi,
On Mon, 15 Sep 2014 10:26:35 +0200
Mateusz Guzik <mjguzik@gmail.com> wrote:
> On Mon, Sep 15, 2014 at 02:59:12PM +0800, Erich Dollansky wrote:
> > Hi,
> >
> > I have a very simple program. It basically tries to open a message
> > queue which does not exists. mq_open returns then -1 but errno is
> > set to 78 which is defined as this:
> >
> > #define ENOSYS 78 /* Function not implemented */
> >
> > The line in question:
> >
> > res = mq_open ("/doesnotexist", O_RDWR);
> >
> > "/doesnotexists" is the non-existing message queue the program tests
> > for. res will be set correctly to -1 but errno is set then to 78.
> >
> > If I want to create the message queue, I will get the same error.
> >
> > uname -a says:
> >
> > FreeBSD X220.alogt.com 10.1-PRERELEASE FreeBSD 10.1-PRERELEASE #45
> > r271420: Sat Sep 13 15:09:34 WITA 2014
> > erich@X220.alogt.com:/usr/obj/usr/src/sys/X220 amd64
> >
> > Do I see or do something wrong or is this an error?
> >
>
> Do you have mqueuefs loaded?
>
of course not. I was under the impression that
options _KPOSIX_PRIORITY_SCHEDULING
in the kernel configuration will do.
Thanks for the hint.
Erich
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140915165634.30fe6e8a>
