⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _shm.h

📁 CNC 的开放码,EMC2 V2.2.8版
💻 H
字号:
/********************************************************************* Description: _shm.h*   Purely local shared memory functions-- converting System V*   shared memory to POSIX shared memory required something*   intermediate in System V IPC that returned a file descriptor*   suitable for mmap(), and that something doesn't exist.**   Derived from a work by Fred Proctor & Will Shackleford** Author:* License: LGPL Version 2* System: Linux*    * Copyright (c) 2004 All rights reserved.** Last change: * $Revision: 1.5 $* $Author: paul_c $* $Date: 2005/05/23 16:34:16 $********************************************************************/#ifndef _SHAREDMEM_H#define _SHAREDMEM_H#include <sys/types.h>		/* key_t */#include <stddef.h>		/* size_t */#ifndef KEY_T_DEFINED#define KEY_T_DEFINED#endif /* KEY_T_DEFINED */typedef struct {    int id;    void *addr;    int create_errno;    size_t size;    int count;    int created;    int key;    char name[64];} shm_t;#ifdef __cplusplusextern "C" {#endif    extern shm_t *rcs_shm_open(key_t key, size_t size, int oflag,	/* int mode */ ...);    extern int rcs_shm_close(shm_t * shm);    extern int rcs_shm_delete(shm_t * shm);    extern int rcs_shm_nattch(shm_t * shm);#ifdef __cplusplus}#endif#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -