Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/bits
File: shm.h
/* Copyright (C) 1995-2018 Free Software Foundation, Inc.
[0] Fix | Delete
This file is part of the GNU C Library.
[1] Fix | Delete
[2] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[3] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[4] Fix | Delete
License as published by the Free Software Foundation; either
[5] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[6] Fix | Delete
[7] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[8] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[9] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[10] Fix | Delete
Lesser General Public License for more details.
[11] Fix | Delete
[12] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[13] Fix | Delete
License along with the GNU C Library; if not, see
[14] Fix | Delete
<http://www.gnu.org/licenses/>. */
[15] Fix | Delete
[16] Fix | Delete
#ifndef _SYS_SHM_H
[17] Fix | Delete
# error "Never include <bits/shm.h> directly; use <sys/shm.h> instead."
[18] Fix | Delete
#endif
[19] Fix | Delete
[20] Fix | Delete
#include <bits/types.h>
[21] Fix | Delete
[22] Fix | Delete
/* Permission flag for shmget. */
[23] Fix | Delete
#define SHM_R 0400 /* or S_IRUGO from <linux/stat.h> */
[24] Fix | Delete
#define SHM_W 0200 /* or S_IWUGO from <linux/stat.h> */
[25] Fix | Delete
[26] Fix | Delete
/* Flags for `shmat'. */
[27] Fix | Delete
#define SHM_RDONLY 010000 /* attach read-only else read-write */
[28] Fix | Delete
#define SHM_RND 020000 /* round attach address to SHMLBA */
[29] Fix | Delete
#define SHM_REMAP 040000 /* take-over region on attach */
[30] Fix | Delete
#define SHM_EXEC 0100000 /* execution access */
[31] Fix | Delete
[32] Fix | Delete
/* Commands for `shmctl'. */
[33] Fix | Delete
#define SHM_LOCK 11 /* lock segment (root only) */
[34] Fix | Delete
#define SHM_UNLOCK 12 /* unlock segment (root only) */
[35] Fix | Delete
[36] Fix | Delete
__BEGIN_DECLS
[37] Fix | Delete
[38] Fix | Delete
/* Segment low boundary address multiple. */
[39] Fix | Delete
#define SHMLBA (__getpagesize ())
[40] Fix | Delete
extern int __getpagesize (void) __THROW __attribute__ ((__const__));
[41] Fix | Delete
[42] Fix | Delete
[43] Fix | Delete
/* Type to count number of attaches. */
[44] Fix | Delete
typedef __syscall_ulong_t shmatt_t;
[45] Fix | Delete
[46] Fix | Delete
/* Data structure describing a shared memory segment. */
[47] Fix | Delete
struct shmid_ds
[48] Fix | Delete
{
[49] Fix | Delete
struct ipc_perm shm_perm; /* operation permission struct */
[50] Fix | Delete
size_t shm_segsz; /* size of segment in bytes */
[51] Fix | Delete
__time_t shm_atime; /* time of last shmat() */
[52] Fix | Delete
#ifndef __x86_64__
[53] Fix | Delete
unsigned long int __glibc_reserved1;
[54] Fix | Delete
#endif
[55] Fix | Delete
__time_t shm_dtime; /* time of last shmdt() */
[56] Fix | Delete
#ifndef __x86_64__
[57] Fix | Delete
unsigned long int __glibc_reserved2;
[58] Fix | Delete
#endif
[59] Fix | Delete
__time_t shm_ctime; /* time of last change by shmctl() */
[60] Fix | Delete
#ifndef __x86_64__
[61] Fix | Delete
unsigned long int __glibc_reserved3;
[62] Fix | Delete
#endif
[63] Fix | Delete
__pid_t shm_cpid; /* pid of creator */
[64] Fix | Delete
__pid_t shm_lpid; /* pid of last shmop */
[65] Fix | Delete
shmatt_t shm_nattch; /* number of current attaches */
[66] Fix | Delete
__syscall_ulong_t __glibc_reserved4;
[67] Fix | Delete
__syscall_ulong_t __glibc_reserved5;
[68] Fix | Delete
};
[69] Fix | Delete
[70] Fix | Delete
#ifdef __USE_MISC
[71] Fix | Delete
[72] Fix | Delete
/* ipcs ctl commands */
[73] Fix | Delete
# define SHM_STAT 13
[74] Fix | Delete
# define SHM_INFO 14
[75] Fix | Delete
# define SHM_STAT_ANY 15
[76] Fix | Delete
[77] Fix | Delete
/* shm_mode upper byte flags */
[78] Fix | Delete
# define SHM_DEST 01000 /* segment will be destroyed on last detach */
[79] Fix | Delete
# define SHM_LOCKED 02000 /* segment will not be swapped */
[80] Fix | Delete
# define SHM_HUGETLB 04000 /* segment is mapped via hugetlb */
[81] Fix | Delete
# define SHM_NORESERVE 010000 /* don't check for reservations */
[82] Fix | Delete
[83] Fix | Delete
struct shminfo
[84] Fix | Delete
{
[85] Fix | Delete
__syscall_ulong_t shmmax;
[86] Fix | Delete
__syscall_ulong_t shmmin;
[87] Fix | Delete
__syscall_ulong_t shmmni;
[88] Fix | Delete
__syscall_ulong_t shmseg;
[89] Fix | Delete
__syscall_ulong_t shmall;
[90] Fix | Delete
__syscall_ulong_t __glibc_reserved1;
[91] Fix | Delete
__syscall_ulong_t __glibc_reserved2;
[92] Fix | Delete
__syscall_ulong_t __glibc_reserved3;
[93] Fix | Delete
__syscall_ulong_t __glibc_reserved4;
[94] Fix | Delete
};
[95] Fix | Delete
[96] Fix | Delete
struct shm_info
[97] Fix | Delete
{
[98] Fix | Delete
int used_ids;
[99] Fix | Delete
__syscall_ulong_t shm_tot; /* total allocated shm */
[100] Fix | Delete
__syscall_ulong_t shm_rss; /* total resident shm */
[101] Fix | Delete
__syscall_ulong_t shm_swp; /* total swapped shm */
[102] Fix | Delete
__syscall_ulong_t swap_attempts;
[103] Fix | Delete
__syscall_ulong_t swap_successes;
[104] Fix | Delete
};
[105] Fix | Delete
[106] Fix | Delete
#endif /* __USE_MISC */
[107] Fix | Delete
[108] Fix | Delete
__END_DECLS
[109] Fix | Delete
[110] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function