Portability: Use fcntl instead of flock

- POSIX file locking mechanism, eliminating platform-specific code.
This commit is contained in:
Paul Beckingham 2015-05-02 11:47:39 -04:00
parent 71fef9f22f
commit c346cf9395
6 changed files with 25 additions and 76 deletions

View file

@ -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 = " ",