ipc.h

来自「cygwin, 著名的在win32下模拟unix操作系统的东东」· C头文件 代码 · 共 54 行

H
54
字号
/* sys/ipc.h   Copyright 2001, 2002 Red Hat Inc.   Written by Robert Collins <rbtcollins@hotmail.com>This file is part of Cygwin.This software is a copyrighted work licensed under the terms of theCygwin license.  Please consult the file "CYGWIN_LICENSE" fordetails. */#ifndef _SYS_IPC_H#define _SYS_IPC_H#ifdef __cplusplusextern "C"{#endifstruct ipc_perm{  uid_t  uid;			/* Owner's user ID. */  gid_t  gid;			/* Owner's group ID. */  uid_t  cuid;			/* Creator's user ID. */  gid_t  cgid;			/* Creator's group ID. */  mode_t mode;			/* Read/write permission. */  key_t  key;};/* Mode bits: */#define IPC_CREAT  0x0200	/* Create entry if key does not exist. */#define IPC_EXCL   0x0400	/* Fail if key exists. */#define IPC_NOWAIT 0x0800	/* Error if request must wait. *//* Keys: */#define IPC_PRIVATE ((key_t) 0)	/* Private key. *//* Control commands: */#define IPC_RMID 0x1000		/* Remove identifier. */#define IPC_SET  0x1001		/* Set options. */#define IPC_STAT 0x1002		/* Get options. */#define IPC_INFO 0x1003		/* For ipcs(8). */key_t ftok (const char *path, int id);#ifdef __cplusplus}#endif#endif /* _SYS_IPC_H */

⌨️ 快捷键说明

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