linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rajat Jain <rajat.noida.india@gmail.com>
To: Steve Graegert <graegerts@gmail.com>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: Detecting whether a Message Queue with a given qid exists?
Date: Wed, 2 Nov 2005 12:00:50 +0900	[thread overview]
Message-ID: <b115cb5f0511011900w73d1f0bej4dc429286a734a76@mail.gmail.com> (raw)
In-Reply-To: <6a00c8d50511010111r23756139i92f675a3a865e69@mail.gmail.com>

>
> Try msgctl with the IPC_STAT command:
>
>        #include <sys/msg.h>
>        int msgctl(int msqid, int cmd, struct msqid_ds *buf);
>
> If the queue ID is not valid this call fails with EINVAL and buf is not filled.
>
>        \Steve
>

Thanks a lot. I think it would solve my problem

:-)

  reply	other threads:[~2005-11-02  3:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-31  7:11 Detecting whether a Message Queue with a given qid exists? Rajat Jain
2005-10-31  7:30 ` Steve Graegert
2005-11-01  6:22   ` Rajat Jain
2005-11-01  9:11     ` Steve Graegert
2005-11-02  3:00       ` Rajat Jain [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-10-31  7:15 JOSEPH ALPHONSE

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=b115cb5f0511011900w73d1f0bej4dc429286a734a76@mail.gmail.com \
    --to=rajat.noida.india@gmail.com \
    --cc=graegerts@gmail.com \
    --cc=linux-c-programming@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).