The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
dnssubmit queue overload error message anil.pilani Linux 0 03-28-2008 05:04 AM
message queue etenv High Level Programming 2 11-02-2007 02:09 AM
mq_open error rvan High Level Programming 2 10-11-2007 02:26 AM
Message Queue Problem Again.. satansfury High Level Programming 2 07-05-2005 07:52 AM
Deleting ALL message queue v_rathor High Level Programming 2 06-02-2005 09:11 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-17-2004
Registered User
 

Join Date: Jun 2004
Posts: 6
Unhappy error mq_open message queue

Hello,
J work on a HP.
I want to create message queue by using mq_open with this parameters:
mq_open(p,O_CREAT|O_WRONLY|O_EXCL|0_NONBLOCK,0600,&queue_attr)
with p char [][]
and the function returns the value -1 and errno equal 2.
can you help me ?
Thank.
Reply With Quote
Forum Sponsor
  #2  
Old 06-17-2004
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
I would try:

char p[] = "/foo";

The man page says it must begin with a slash character.
Reply With Quote
  #3  
Old 06-18-2004
Registered User
 

Join Date: Jun 2004
Posts: 6
Thanks for yours answers.
I try to add a slash at the beginning of my queue name but the resut is the same.
The code I use works on a LInux but it doesn't work on the HP it is the reason I use the HP forum and not the C forum. I think it 's a problem with the HP maybe a parameter in my system...
Thanks for yours replies.
Reply With Quote
  #4  
Old 06-18-2004
Registered User
 

Join Date: Jun 2004
Posts: 6
Thumbs up

Hello,

It's work ! Thank a lot.
The different in my code was on the third parameter where I wrote 0700 instead of 0600.
Encore merci pour tout!
Frederic.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:31 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0