- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- create message queue on HP with mq_open
Operating System - HP-UX
1753894
Members
7221
Online
108809
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2004 01:17 AM
тАО06-17-2004 01:17 AM
create message queue on HP with mq_open
Hello,
I want to create message queue by using mq_open with this parameters:
mq_open(p,O_CREAT|O_WRONLY|O_EXCL|0_NONBLOC,0600,&queue_attr)
with p char [][]
and the function returns the value 2.
can you help me ?
Thanks.
I want to create message queue by using mq_open with this parameters:
mq_open(p,O_CREAT|O_WRONLY|O_EXCL|0_NONBLOC,0600,&queue_attr)
with p char [][]
and the function returns the value 2.
can you help me ?
Thanks.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2004 03:13 AM
тАО06-17-2004 03:13 AM
Re: create message queue on HP with mq_open
I don't sure, but try write
mq_open(p,O_CREAT|O_WRONLY|O_EXCL|O_NONBLOCK,0600,&queue_attr)
(your 0_NONBLOC is incorrect, right O_NONBLOCK).
Bruno
mq_open(p,O_CREAT|O_WRONLY|O_EXCL|O_NONBLOCK,0600,&queue_attr)
(your 0_NONBLOC is incorrect, right O_NONBLOCK).
Bruno
Torino (Turin) +2H
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2004 03:36 AM
тАО06-17-2004 03:36 AM
Re: create message queue on HP with mq_open
Thank for your answer.
when I wrote this message I made an error , in fact in my code I have O_NONBLOCK.
Sorry.
when I wrote this message I made an error , in fact in my code I have O_NONBLOCK.
Sorry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2004 03:46 AM
тАО06-17-2004 03:46 AM
Re: create message queue on HP with mq_open
If the function actually returns a value of 2, then it succeeded and 2 is the message queue descriptor.
If the function returns -1 and sets errno to 2, then that is ENOENT. That shouldn't happen with the O_CREAT flag. I would suspect that the O_CREAT flag was not seen. Perhaps you are compiling with 64-bit pointers and did not #include so the first parameter was passed as a 32-bit int.
If the function returns -1 and sets errno to 2, then that is ENOENT. That shouldn't happen with the O_CREAT flag. I would suspect that the O_CREAT flag was not seen. Perhaps you are compiling with 64-bit pointers and did not #include
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP