You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
391 B
C
12 lines
391 B
C
typedef struct _xc_lock_t xc_lock_t;
|
|
|
|
xc_lock_t *xc_fcntl_init(const char *pathname);
|
|
void xc_fcntl_destroy(xc_lock_t *lck);
|
|
void xc_fcntl_lock(xc_lock_t *lck);
|
|
void xc_fcntl_unlock(xc_lock_t *lck);
|
|
|
|
#define xc_lock_init(name) xc_fcntl_init(name)
|
|
#define xc_lock_destroy(fd) xc_fcntl_destroy(fd)
|
|
#define xc_lock(fd) xc_fcntl_lock(fd)
|
|
#define xc_unlock(fd) xc_fcntl_unlock(fd)
|