Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
mxq/mx_flock.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
15 lines (12 sloc)
291 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __MXQ_FLOCK_H__ | |
#define __MXQ_FLOCK_H__ 1 | |
struct mx_flock { | |
int fd; | |
char *fname; | |
int operation; | |
int locked; | |
}; | |
struct mx_flock *mx_flock(int operation, char *fmt, ...); | |
int mx_funlock(struct mx_flock *lock); | |
void mx_flock_free(struct mx_flock *lock); | |
#endif |