|
Revision 1044, 0.6 KB
(checked in by moo, 10 months ago)
|
|
refactor: fix c89 compatibility
|
-
Property svn:eol-style set to
native
|
| Rev | Line | |
|---|
| [1027] | 1 | #ifndef XC_LOCK_H_1913F3DED68715D7CDA5A055E79FE0FF |
|---|
| 2 | #define XC_LOCK_H_1913F3DED68715D7CDA5A055E79FE0FF |
|---|
| 3 | |
|---|
| 4 | #if _MSC_VER > 1000 |
|---|
| 5 | #pragma once |
|---|
| [1044] | 6 | #endif /* _MSC_VER > 1000 */ |
|---|
| [1027] | 7 | |
|---|
| [1] | 8 | typedef struct _xc_lock_t xc_lock_t; |
|---|
| 9 | |
|---|
| 10 | xc_lock_t *xc_fcntl_init(const char *pathname); |
|---|
| 11 | void xc_fcntl_destroy(xc_lock_t *lck); |
|---|
| 12 | void xc_fcntl_lock(xc_lock_t *lck); |
|---|
| 13 | void xc_fcntl_unlock(xc_lock_t *lck); |
|---|
| 14 | |
|---|
| 15 | #define xc_lock_init(name) xc_fcntl_init(name) |
|---|
| 16 | #define xc_lock_destroy(fd) xc_fcntl_destroy(fd) |
|---|
| 17 | #define xc_lock(fd) xc_fcntl_lock(fd) |
|---|
| 18 | #define xc_unlock(fd) xc_fcntl_unlock(fd) |
|---|
| [1027] | 19 | |
|---|
| 20 | #endif /* XC_LOCK_H_1913F3DED68715D7CDA5A055E79FE0FF */ |
|---|