Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include
File: semaphore.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 _SEMAPHORE_H
[17] Fix | Delete
#define _SEMAPHORE_H 1
[18] Fix | Delete
[19] Fix | Delete
#include <features.h>
[20] Fix | Delete
#include <sys/types.h>
[21] Fix | Delete
#ifdef __USE_XOPEN2K
[22] Fix | Delete
# include <bits/types/struct_timespec.h>
[23] Fix | Delete
#endif
[24] Fix | Delete
[25] Fix | Delete
/* Get the definition for sem_t. */
[26] Fix | Delete
#include <bits/semaphore.h>
[27] Fix | Delete
[28] Fix | Delete
[29] Fix | Delete
__BEGIN_DECLS
[30] Fix | Delete
[31] Fix | Delete
/* Initialize semaphore object SEM to VALUE. If PSHARED then share it
[32] Fix | Delete
with other processes. */
[33] Fix | Delete
extern int sem_init (sem_t *__sem, int __pshared, unsigned int __value)
[34] Fix | Delete
__THROW;
[35] Fix | Delete
/* Free resources associated with semaphore object SEM. */
[36] Fix | Delete
extern int sem_destroy (sem_t *__sem) __THROW;
[37] Fix | Delete
[38] Fix | Delete
/* Open a named semaphore NAME with open flags OFLAG. */
[39] Fix | Delete
extern sem_t *sem_open (const char *__name, int __oflag, ...) __THROW;
[40] Fix | Delete
[41] Fix | Delete
/* Close descriptor for named semaphore SEM. */
[42] Fix | Delete
extern int sem_close (sem_t *__sem) __THROW;
[43] Fix | Delete
[44] Fix | Delete
/* Remove named semaphore NAME. */
[45] Fix | Delete
extern int sem_unlink (const char *__name) __THROW;
[46] Fix | Delete
[47] Fix | Delete
/* Wait for SEM being posted.
[48] Fix | Delete
[49] Fix | Delete
This function is a cancellation point and therefore not marked with
[50] Fix | Delete
__THROW. */
[51] Fix | Delete
extern int sem_wait (sem_t *__sem);
[52] Fix | Delete
[53] Fix | Delete
#ifdef __USE_XOPEN2K
[54] Fix | Delete
/* Similar to `sem_wait' but wait only until ABSTIME.
[55] Fix | Delete
[56] Fix | Delete
This function is a cancellation point and therefore not marked with
[57] Fix | Delete
__THROW. */
[58] Fix | Delete
extern int sem_timedwait (sem_t *__restrict __sem,
[59] Fix | Delete
const struct timespec *__restrict __abstime);
[60] Fix | Delete
#endif
[61] Fix | Delete
[62] Fix | Delete
/* Test whether SEM is posted. */
[63] Fix | Delete
extern int sem_trywait (sem_t *__sem) __THROWNL;
[64] Fix | Delete
[65] Fix | Delete
/* Post SEM. */
[66] Fix | Delete
extern int sem_post (sem_t *__sem) __THROWNL;
[67] Fix | Delete
[68] Fix | Delete
/* Get current value of SEM and store it in *SVAL. */
[69] Fix | Delete
extern int sem_getvalue (sem_t *__restrict __sem, int *__restrict __sval)
[70] Fix | Delete
__THROW;
[71] Fix | Delete
[72] Fix | Delete
[73] Fix | Delete
__END_DECLS
[74] Fix | Delete
[75] Fix | Delete
#endif /* semaphore.h */
[76] Fix | Delete
[77] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function