msgget()及其缓冲区的大小 [英] msgget() and size of it's buffer
本文介绍了msgget()及其缓冲区的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我用Linux编写C程序,并使用进程间通信.
使用msgget(
)函数创建邮箱"后,我想知道它的大小.
我想增加这个尺寸.
我想我应该使用msgctl()
函数,但是我不知道如何.
有人有一些例子吗?
谢谢!
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!
推荐答案
msgctl在其手册页 [ ^ ].你不懂什么?
-Saurabh
msgctl is clearly described in its man page[^]. What is it that you don''t understand?
-Saurabh
如何使缓冲区(在msgget之后创建的缓冲区)更大?
How can I make the buffer (that created after msgget) bigger?
您是否尝试使用IPC_SET作为命令并指定了msg_qbytes成员msqid_ds?
-Saurabh
Did you tried using IPC_SET as command and specifying msg_qbytes member of the msqid_ds?
-Saurabh
这篇关于msgget()及其缓冲区的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文