blob: 96f0216e2763d5aac28996f5fd9dd77fa10da709 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/*-
* Copyright (c) 2004-2006
* Oracle Corporation. All rights reserved.
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* authors: George Schlossnagle <george@omniti.com>
*/
#ifndef MOD_DB4_SEM_UTILS_H
#define MOD_DB4_SEM_UTILS_H
extern int md4_sem_create(int semnum, unsigned short *start);
extern void md4_sem_destroy(int semid);
extern void md4_sem_lock(int semid, int semnum);
extern void md4_sem_unlock(int semid, int semnum);
extern void md4_sem_wait_for_zero(int semid, int semnum);
extern void md4_sem_set(int semid, int semnum, int value);
extern int md4_sem_get(int semid, int semnum);
/* vim: set ts=4 sts=4 expandtab bs=2 ai : */
#endif
|