Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include/sys
File: sem.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_SEM_H
[17] Fix | Delete
#define _SYS_SEM_H 1
[18] Fix | Delete
[19] Fix | Delete
#include <features.h>
[20] Fix | Delete
[21] Fix | Delete
#define __need_size_t
[22] Fix | Delete
#include <stddef.h>
[23] Fix | Delete
[24] Fix | Delete
/* Get common definition of System V style IPC. */
[25] Fix | Delete
#include <sys/ipc.h>
[26] Fix | Delete
[27] Fix | Delete
/* Get system dependent definition of `struct semid_ds' and more. */
[28] Fix | Delete
#include <bits/sem.h>
[29] Fix | Delete
[30] Fix | Delete
#ifdef __USE_GNU
[31] Fix | Delete
# include <bits/types/struct_timespec.h>
[32] Fix | Delete
#endif
[33] Fix | Delete
[34] Fix | Delete
/* The following System V style IPC functions implement a semaphore
[35] Fix | Delete
handling. The definition is found in XPG2. */
[36] Fix | Delete
[37] Fix | Delete
/* Structure used for argument to `semop' to describe operations. */
[38] Fix | Delete
struct sembuf
[39] Fix | Delete
{
[40] Fix | Delete
unsigned short int sem_num; /* semaphore number */
[41] Fix | Delete
short int sem_op; /* semaphore operation */
[42] Fix | Delete
short int sem_flg; /* operation flag */
[43] Fix | Delete
};
[44] Fix | Delete
[45] Fix | Delete
[46] Fix | Delete
__BEGIN_DECLS
[47] Fix | Delete
[48] Fix | Delete
/* Semaphore control operation. */
[49] Fix | Delete
extern int semctl (int __semid, int __semnum, int __cmd, ...) __THROW;
[50] Fix | Delete
[51] Fix | Delete
/* Get semaphore. */
[52] Fix | Delete
extern int semget (key_t __key, int __nsems, int __semflg) __THROW;
[53] Fix | Delete
[54] Fix | Delete
/* Operate on semaphore. */
[55] Fix | Delete
extern int semop (int __semid, struct sembuf *__sops, size_t __nsops) __THROW;
[56] Fix | Delete
[57] Fix | Delete
#ifdef __USE_GNU
[58] Fix | Delete
/* Operate on semaphore with timeout. */
[59] Fix | Delete
extern int semtimedop (int __semid, struct sembuf *__sops, size_t __nsops,
[60] Fix | Delete
const struct timespec *__timeout) __THROW;
[61] Fix | Delete
#endif
[62] Fix | Delete
[63] Fix | Delete
__END_DECLS
[64] Fix | Delete
[65] Fix | Delete
#endif /* sys/sem.h */
[66] Fix | Delete
[67] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function