Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hello,

I write C program in Linux and I use inter-process communication.

After I create "mail box" using msgget() function I want to know what is it's size.
And I want to increase this size.
I think I should use msgctl() function, but I don't know how.

Does someone have some examples?

Thanks!
Posted
Updated 7-May-10 22:57pm
v2

msgctl is clearly described in its man page[^]. What is it that you don't understand?

-Saurabh
 
Share this answer
 
How can I make the buffer (that created after msgget) bigger?
 
Share this answer
 
Did you tried using IPC_SET as command and specifying msg_qbytes member of the msqid_ds?

-Saurabh
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900