Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/linux
File: ipc.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
#ifndef _LINUX_IPC_H
[1] Fix | Delete
#define _LINUX_IPC_H
[2] Fix | Delete
[3] Fix | Delete
#include <linux/types.h>
[4] Fix | Delete
[5] Fix | Delete
#define IPC_PRIVATE ((__kernel_key_t) 0)
[6] Fix | Delete
[7] Fix | Delete
/* Obsolete, used only for backwards compatibility and libc5 compiles */
[8] Fix | Delete
struct ipc_perm
[9] Fix | Delete
{
[10] Fix | Delete
__kernel_key_t key;
[11] Fix | Delete
__kernel_uid_t uid;
[12] Fix | Delete
__kernel_gid_t gid;
[13] Fix | Delete
__kernel_uid_t cuid;
[14] Fix | Delete
__kernel_gid_t cgid;
[15] Fix | Delete
__kernel_mode_t mode;
[16] Fix | Delete
unsigned short seq;
[17] Fix | Delete
};
[18] Fix | Delete
[19] Fix | Delete
/* Include the definition of ipc64_perm */
[20] Fix | Delete
#include <asm/ipcbuf.h>
[21] Fix | Delete
[22] Fix | Delete
/* resource get request flags */
[23] Fix | Delete
#define IPC_CREAT 00001000 /* create if key is nonexistent */
[24] Fix | Delete
#define IPC_EXCL 00002000 /* fail if key exists */
[25] Fix | Delete
#define IPC_NOWAIT 00004000 /* return error on wait */
[26] Fix | Delete
[27] Fix | Delete
/* these fields are used by the DIPC package so the kernel as standard
[28] Fix | Delete
should avoid using them if possible */
[29] Fix | Delete
[30] Fix | Delete
#define IPC_DIPC 00010000 /* make it distributed */
[31] Fix | Delete
#define IPC_OWN 00020000 /* this machine is the DIPC owner */
[32] Fix | Delete
[33] Fix | Delete
/*
[34] Fix | Delete
* Control commands used with semctl, msgctl and shmctl
[35] Fix | Delete
* see also specific commands in sem.h, msg.h and shm.h
[36] Fix | Delete
*/
[37] Fix | Delete
#define IPC_RMID 0 /* remove resource */
[38] Fix | Delete
#define IPC_SET 1 /* set ipc_perm options */
[39] Fix | Delete
#define IPC_STAT 2 /* get ipc_perm options */
[40] Fix | Delete
#define IPC_INFO 3 /* see ipcs */
[41] Fix | Delete
[42] Fix | Delete
/*
[43] Fix | Delete
* Version flags for semctl, msgctl, and shmctl commands
[44] Fix | Delete
* These are passed as bitflags or-ed with the actual command
[45] Fix | Delete
*/
[46] Fix | Delete
#define IPC_OLD 0 /* Old version (no 32-bit UID support on many
[47] Fix | Delete
architectures) */
[48] Fix | Delete
#define IPC_64 0x0100 /* New version (support 32-bit UIDs, bigger
[49] Fix | Delete
message sizes, etc. */
[50] Fix | Delete
[51] Fix | Delete
/*
[52] Fix | Delete
* These are used to wrap system calls.
[53] Fix | Delete
*
[54] Fix | Delete
* See architecture code for ugly details..
[55] Fix | Delete
*/
[56] Fix | Delete
struct ipc_kludge {
[57] Fix | Delete
struct msgbuf *msgp;
[58] Fix | Delete
long msgtyp;
[59] Fix | Delete
};
[60] Fix | Delete
[61] Fix | Delete
#define SEMOP 1
[62] Fix | Delete
#define SEMGET 2
[63] Fix | Delete
#define SEMCTL 3
[64] Fix | Delete
#define SEMTIMEDOP 4
[65] Fix | Delete
#define MSGSND 11
[66] Fix | Delete
#define MSGRCV 12
[67] Fix | Delete
#define MSGGET 13
[68] Fix | Delete
#define MSGCTL 14
[69] Fix | Delete
#define SHMAT 21
[70] Fix | Delete
#define SHMDT 22
[71] Fix | Delete
#define SHMGET 23
[72] Fix | Delete
#define SHMCTL 24
[73] Fix | Delete
[74] Fix | Delete
/* Used by the DIPC package, try and avoid reusing it */
[75] Fix | Delete
#define DIPC 25
[76] Fix | Delete
[77] Fix | Delete
#define IPCCALL(version,op) ((version)<<16 | (op))
[78] Fix | Delete
[79] Fix | Delete
[80] Fix | Delete
#endif /* _LINUX_IPC_H */
[81] Fix | Delete
[82] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function