Add umtx.c, a simple utility which implements userland mutexes using
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 14 Jan 2005 04:15:12 +0000 (04:15 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 14 Jan 2005 04:15:12 +0000 (04:15 +0000)
commit3baaade82a5a224f6b030237a015ac98a9a93b89
tree28acc9a595d5aa8ecc6ca9585109af786194c8cf
parent63fc7deeed43c19de68cc1b1b96f807ba248c6ee
Add umtx.c, a simple utility which implements userland mutexes using
the new umtx_*() system calls.  Compile normally and play around, e.g.:

umtx -v -t 10 /tmp/lock.dat sleep 5
umtx -v -t 10 /tmp/lock.dat ls

The test code includes some simple ^C cleanup code as well, though I
don't block signals during the global variable fixup so there is a race in
the ^C cleanup code.
test/debug/umtx.c [new file with mode: 0644]