I've came across to the need of a flock(1) utility at work and I've
noticed we don't have any in OpenBSD, it's basically a flock(2)
wrapper that is usefull for running shell commands under a exclusive
and/or shared locks.

From a compatibility standpoint you should consider just bringing across
the lockf(1) command from FreeBSD:

        http://tinyurl.com/bu7ud7 (man page)
        http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/lockf/

It's also a hell of a lot simpler than the Linux one.

--lyndon

  Debugging?  Klingons do not debug.  Our software does not coddle the
  weak.

Reply via email to