-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzgt_extern.h
executable file
·54 lines (41 loc) · 1.28 KB
/
zgt_extern.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*------------------------------------------------------------------------------
// RESTRICTED RIGHTS LEGEND
//
// Use, duplication, or disclosure by the Government is subject
// to restrictions as set forth in subdivision (c)(1)(ii) of the Rights
// in Technical Data and Computer Software clause at 52.227-7013.
//
// Copyright 1989, 1990, 1991 Texas Instruments Incorporated. All rights reserved.
//------------------------------------------------------------------------------
*/
extern void *begintx(void *);
extern void *readtx(void *);
extern void *writetx(void *);
extern void *aborttx(void *);
extern void *committx(void *);
extern zgt_tx* get_tx(long);
extern int zgt_init_sema(int);
extern void zgt_init_sema_0(int);
extern void zgt_init_sema_rest(int);
extern int zgt_sem_release(int);//added 2014
extern int zgt_p(int);
extern int zgt_v(int);
extern int zgt_nwait(int);
//extern int zgt_nwait1(int);
//extern void exit(int);
extern zgt_ht *ZGT_Ht;
//extern zgt_tm *ZGT_Sh;
extern zgt_tx *ZGT_Tx;
#define READWRITE 0
extern int errno;
extern key_t ZGT_Key_sem;
extern int ZGT_Semid ;
extern int ZGT_Nsema ;
extern int system(char *);
extern int ZGT_Initp;
extern int Zgt_errno;
struct param
{
long tid, obno, count;
char Txtype;
};