I am LAZY bones? AN ancient AND boring SITE

manpages-dev

看到msgget函数,不知道具体用法,man了一下,居然是“No manual entry for msgget”汗!google了半天也没一个比较像样的介绍。结果上irc上问,说需要按照 manpages-dev 这个包,哈哈。原来如此啊!

引用:
MSGGET(2) Linux Programmer’s Manual MSGGET(2)NAME
msgget – get a message queue identifier

SYNOPSIS
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>

int msgget(key_t key, int msgflg);

DESCRIPTION
The msgget() system call returns the message queue identifier associated with the value of the key argument. A new message queue is
created if key has the value IPC_PRIVATE or key isn’t IPC_PRIVATE, no message queue with the given key key exists, and IPC_CREAT is
specified in msgflg.
……

最后修改时间: 2007年07月18日 17:13

本文章发表于: 2007年07月18日 17:13 | 所属分类:备忘, 故障分析. | 您可以在此订阅本文章的所有评论. | 您也可以发表评论, 或从您的网站trackback.

发表评论