From: Nikhil Dharashivkar <nikhildharashivkar@gmail.com>
To: raja <vnagaraju@effigent.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: query...
Date: Tue, 9 Aug 2005 16:10:37 +0530 [thread overview]
Message-ID: <17db6d3a05080903407418ed45@mail.gmail.com> (raw)
In-Reply-To: <42F8855E.7070306@effigent.net>
I think it could be root permissions problem. Are you running this
binary as root user ?
On 8/9/05, raja <vnagaraju@effigent.net> wrote:
> Hi,
> I am Creating a posix message queue using the following code.
>
>
> #include <stdio.h>
> #include <stdlib.h>
> #include <mqueue.h>
> #include <errno.h>
> #include <string.h>
> #include <fcntl.h>
> #include <sys/stat.h>
> #include <sys/types.h>
>
> int main(int argc,char *argv[])
> {
> mqd_t mq_des;
> mq_des = mq_open(argv[1],O_CREAT | O_RDWR | O_EXCL,S_IRUSR | S_IWUSR
> | S_IRGRP | S_IROTH , NULL);
> if(mq_des < 0)
> {
> printf("Unable To Create MsgQ\n");
> perror("mq_open");
> return mq_des;
> }
> printf("MsgQ is Opened With Descriptor : %d\n",mq_des);
> return mq_des;
> }
>
>
> and I after compiling I am giving
>
> ./a.out /root/Desktop/msgq1
>
>
> But It is giving as unable to create message queue and showing error as
> 'permission denied'
>
> Would you please help me.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
--
Thanks and Regards,
Nikhil.
next prev parent reply other threads:[~2005-08-09 10:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-09 10:28 query raja
2005-08-09 10:40 ` Nikhil Dharashivkar [this message]
2005-08-09 10:58 ` query Sudheer
-- strict thread matches above, loose matches on Subject: below --
2011-05-18 20:42 query Filip, Anotonov
2011-03-16 9:35 Query snmp snmp
2011-03-16 11:54 ` Query Alan Cox
2011-03-17 12:04 ` Query snmp snmp
2001-06-02 10:08 query Chanchal Chawla
2001-06-03 14:42 ` query Andreas Dilger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17db6d3a05080903407418ed45@mail.gmail.com \
--to=nikhildharashivkar@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=vnagaraju@effigent.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox