blob: 2f36f3b4fbb1a61390be28c87f6fc3762aef7e13 (
plain)
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
|
#if !defined(_RESEARCH_SOURCE) && !defined(_PLAN9_SOURCE)
This header file is an extension of ANSI/POSIX
#endif
#ifndef __LOCK_H
#define __LOCK_H
#pragma lib "/$M/lib/ape/libap.a"
#include <u.h>
typedef struct
{
int val;
} Lock;
#ifdef __cplusplus
extern "C" {
#endif
extern void lock(Lock*);
extern void unlock(Lock*);
extern int canlock(Lock*);
extern int tas(int*);
#ifdef __cplusplus
}
#endif
#endif
|