mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Portability: Use fcntl instead of flock
- POSIX file locking mechanism, eliminating platform-specific code.
This commit is contained in:
parent
71fef9f22f
commit
c346cf9395
6 changed files with 25 additions and 76 deletions
|
@ -52,15 +52,6 @@ const std::string uuid ();
|
|||
|
||||
int execute (const std::string&, const std::vector <std::string>&, const std::string&, std::string&);
|
||||
|
||||
#ifdef SOLARIS
|
||||
#define LOCK_SH 1
|
||||
#define LOCK_EX 2
|
||||
#define LOCK_NB 4
|
||||
#define LOCK_UN 8
|
||||
|
||||
int flock (int, int);
|
||||
#endif
|
||||
|
||||
const std::string indentProject (
|
||||
const std::string&,
|
||||
const std::string& whitespace = " ",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue