The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > 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 08:04 AM
message queue etenv High Level Programming 2 11-02-2007 05:09 AM
mq_open error rvan High Level Programming 2 10-11-2007 06:26 AM
Message Queue Problem Again.. satansfury High Level Programming 2 07-05-2005 11:52 AM
Deleting ALL message queue v_rathor High Level Programming 2 06-02-2005 01:11 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-17-2004
AUBERT AUBERT is offline
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.
  #2 (permalink)  
Old 06-17-2004
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,124
I would try:

char p[] = "/foo";

The man page says it must begin with a slash character.
  #3 (permalink)  
Old 06-18-2004
AUBERT AUBERT is offline
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.
  #4 (permalink)  
Old 06-18-2004
AUBERT AUBERT is offline
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:47 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0