Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/bits
File: sem.h
/* Copyright (C) 2002-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_SEM_H
[17] Fix | Delete
# error "Never include <bits/sem.h> directly; use <sys/sem.h> instead."
[18] Fix | Delete
#endif
[19] Fix | Delete
[20] Fix | Delete
#include <sys/types.h>
[21] Fix | Delete
[22] Fix | Delete
/* Flags for `semop'. */
[23] Fix | Delete
#define SEM_UNDO 0x1000 /* undo the operation on exit */
[24] Fix | Delete
[25] Fix | Delete
/* Commands for `semctl'. */
[26] Fix | Delete
#define GETPID 11 /* get sempid */
[27] Fix | Delete
#define GETVAL 12 /* get semval */
[28] Fix | Delete
#define GETALL 13 /* get all semval's */
[29] Fix | Delete
#define GETNCNT 14 /* get semncnt */
[30] Fix | Delete
#define GETZCNT 15 /* get semzcnt */
[31] Fix | Delete
#define SETVAL 16 /* set semval */
[32] Fix | Delete
#define SETALL 17 /* set all semval's */
[33] Fix | Delete
[34] Fix | Delete
[35] Fix | Delete
/* Data structure describing a set of semaphores. */
[36] Fix | Delete
struct semid_ds
[37] Fix | Delete
{
[38] Fix | Delete
struct ipc_perm sem_perm; /* operation permission struct */
[39] Fix | Delete
__time_t sem_otime; /* last semop() time */
[40] Fix | Delete
__syscall_ulong_t __glibc_reserved1;
[41] Fix | Delete
__time_t sem_ctime; /* last time changed by semctl() */
[42] Fix | Delete
__syscall_ulong_t __glibc_reserved2;
[43] Fix | Delete
__syscall_ulong_t sem_nsems; /* number of semaphores in set */
[44] Fix | Delete
__syscall_ulong_t __glibc_reserved3;
[45] Fix | Delete
__syscall_ulong_t __glibc_reserved4;
[46] Fix | Delete
};
[47] Fix | Delete
[48] Fix | Delete
/* The user should define a union like the following to use it for arguments
[49] Fix | Delete
for `semctl'.
[50] Fix | Delete
[51] Fix | Delete
union semun
[52] Fix | Delete
{
[53] Fix | Delete
int val; <= value for SETVAL
[54] Fix | Delete
struct semid_ds *buf; <= buffer for IPC_STAT & IPC_SET
[55] Fix | Delete
unsigned short int *array; <= array for GETALL & SETALL
[56] Fix | Delete
struct seminfo *__buf; <= buffer for IPC_INFO
[57] Fix | Delete
};
[58] Fix | Delete
[59] Fix | Delete
Previous versions of this file used to define this union but this is
[60] Fix | Delete
incorrect. One can test the macro _SEM_SEMUN_UNDEFINED to see whether
[61] Fix | Delete
one must define the union or not. */
[62] Fix | Delete
#define _SEM_SEMUN_UNDEFINED 1
[63] Fix | Delete
[64] Fix | Delete
#ifdef __USE_MISC
[65] Fix | Delete
[66] Fix | Delete
/* ipcs ctl cmds */
[67] Fix | Delete
# define SEM_STAT 18
[68] Fix | Delete
# define SEM_INFO 19
[69] Fix | Delete
# define SEM_STAT_ANY 20
[70] Fix | Delete
[71] Fix | Delete
struct seminfo
[72] Fix | Delete
{
[73] Fix | Delete
int semmap;
[74] Fix | Delete
int semmni;
[75] Fix | Delete
int semmns;
[76] Fix | Delete
int semmnu;
[77] Fix | Delete
int semmsl;
[78] Fix | Delete
int semopm;
[79] Fix | Delete
int semume;
[80] Fix | Delete
int semusz;
[81] Fix | Delete
int semvmx;
[82] Fix | Delete
int semaem;
[83] Fix | Delete
};
[84] Fix | Delete
[85] Fix | Delete
#endif /* __USE_MISC */
[86] Fix | Delete
[87] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function