summaryrefslogtreecommitdiff
path: root/gl/modules
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-06-27 23:26:46 +0200
committerJim Meyering <meyering@redhat.com>2010-07-04 08:40:40 +0200
commit6357909ee6cecaafc4636bd053d9a10ad8ac2dab (patch)
tree4cac9dbe87908ae628d36ce0580bf2686783b4b6 /gl/modules
parentefe53cc72b599979ea292754ecfe8abf7c839d22 (diff)
downloadcoreutils-6357909ee6cecaafc4636bd053d9a10ad8ac2dab.tar.xz
dev-map: map device number to small non-negative
* gl/lib/dev-map.c: New file. * gl/lib/dev-map.h: Declarations. * gl/modules/dev-map: Define primary modules. * gl/modules/dev-map-tests: Define test module. * gl/tests/test-dev-map.c: Test it.
Diffstat (limited to 'gl/modules')
-rw-r--r--gl/modules/dev-map23
-rw-r--r--gl/modules/dev-map-tests10
2 files changed, 33 insertions, 0 deletions
diff --git a/gl/modules/dev-map b/gl/modules/dev-map
new file mode 100644
index 000000000..91f437b27
--- /dev/null
+++ b/gl/modules/dev-map
@@ -0,0 +1,23 @@
+Description:
+maintain a mapping of dev_t numbers to small integers
+
+Files:
+lib/dev-map.c
+lib/dev-map.h
+
+Depends-on:
+hash
+
+configure.ac:
+
+Makefile.am:
+lib_SOURCES += dev-map.c dev-map.h
+
+Include:
+"dev-map.h"
+
+License
+GPL
+
+Maintainer:
+Jim Meyering
diff --git a/gl/modules/dev-map-tests b/gl/modules/dev-map-tests
new file mode 100644
index 000000000..4bec2e6b2
--- /dev/null
+++ b/gl/modules/dev-map-tests
@@ -0,0 +1,10 @@
+Files:
+tests/test-dev-map.c
+
+Depends-on:
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-dev-map
+check_PROGRAMS += test-dev-map