存放在内存中,由内核维护

特点

获得项目相关的唯一IPC键值

头文件

#include <sys/types.h>

#include <sys/ipc.h>

函数

key_t ftok(const char *pathname, int proj_id);

参数: