Add some C code for exposing the sem_* functions in Linux necessary
for using named semaphores. There have been several occasions where
something like (a cross-process semaphore) this would've been useful
(e.g. limiting the total number of SSHHost.__copy_file methods running
from a single server) and so I wrote up a C extension to expose the
necessary functions.

This ended up being unnecessary, however since they may end up being
useful in the future anyway I'm going to put this into the utils/
for now, rather than just throwing it away. It still needs some work
before being integrated into the autotest library.

From: John Admanski <jadmanski@google.com>
Signed-off-by: Martin Bligh <mbligh@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2474 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/utils/named_semaphore/setup.py b/utils/named_semaphore/setup.py
new file mode 100644
index 0000000..30bd7c3
--- /dev/null
+++ b/utils/named_semaphore/setup.py
@@ -0,0 +1,8 @@
+import distutils.core
+
+
+module = distutils.core.Extension("namedsem", sources=["namedsem.c"])
+
+distutils.core.setup(name="namedsem", version="1.0",
+                     description="Named semaphore functions",
+                     ext_modules=[module])