ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Well, I've done some testing using my FC3 based system and I have to tell you - I am still not impressed with POSIX message queues...
After looking at the behavior of a test program based upon your code snippets, along with the man pages, I think that when the man pages claim "implementation-defined" they mean "bug". What I eventually got to work was to use a message queue name of "/msgQ" (without any other path information). Also, I had to run the executable test program as root, running as a lowly user just error-ed out even if I granted all read/write/search permissions to the root "/" directory.
I hope that this helps you, it may not be the best solution but it looks like it should work for you as a workaround unless some other brave and knowing person can offer more insights.
In the end this application will run under the eCos Real-Time OS, and I can only hope that the implementation there will be more straightforward. I had hoped to develop the app under Linux to control for the complexities of the OS and focus more on the base application logic, bus alas it seems this is not to be.
Anyhow, I'll try your solution. Thanks so much once again.
Good luck on the RTOS implementation. IMHO real-time embedded work is much more fun than "conventional" programming. Real-time; nice compact ,tight, and efficient organized chaos.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.