Click here to Skip to main content
15,035,283 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
   
How can I make the buffer (that created after msgget) bigger?
   
Did you tried using IPC_SET as command and specifying msg_qbytes member of the msqid_ds?

-Saurabh
   
   

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