summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/Makemodule.am13
-rw-r--r--lib/util/alloc.c2
-rw-r--r--lib/util/array.c2
-rw-r--r--lib/util/hash_table.c2
-rw-r--r--lib/util/is_memory_zero.c2
-rw-r--r--lib/util/mempool.c2
-rw-r--r--lib/util/rbtree.c2
-rw-r--r--lib/util/str_table.c4
-rw-r--r--lib/util/threadpool.c6
-rw-r--r--lib/util/threadpool_serial.c4
-rw-r--r--lib/util/xxhash.c2
11 files changed, 21 insertions, 20 deletions
diff --git a/lib/util/Makemodule.am b/lib/util/Makemodule.am
index c66c786..01ffa31 100644
--- a/lib/util/Makemodule.am
+++ b/lib/util/Makemodule.am
@@ -1,11 +1,12 @@
-libutil_a_SOURCES = include/util.h include/str_table.h include/hash_table.h
+libutil_a_SOURCES = include/util/util.h include/util/str_table.h
+libutil_a_SOURCES += include/util/hash_table.h
libutil_a_SOURCES += lib/util/str_table.c lib/util/alloc.c
-libutil_a_SOURCES += lib/util/rbtree.c include/rbtree.h
-libutil_a_SOURCES += lib/util/array.c include/array.h
+libutil_a_SOURCES += lib/util/rbtree.c include/util/rbtree.h
+libutil_a_SOURCES += lib/util/array.c include/util/array.h
libutil_a_SOURCES += lib/util/xxhash.c lib/util/hash_table.c
libutil_a_SOURCES += lib/util/fast_urem_by_const.h
-libutil_a_SOURCES += include/threadpool.h
-libutil_a_SOURCES += include/w32threadwrap.h
+libutil_a_SOURCES += include/util/threadpool.h
+libutil_a_SOURCES += include/util/w32threadwrap.h
libutil_a_SOURCES += lib/util/threadpool_serial.c
libutil_a_SOURCES += lib/util/is_memory_zero.c
libutil_a_CFLAGS = $(AM_CFLAGS)
@@ -27,7 +28,7 @@ endif
endif
if CUSTOM_ALLOC
-libutil_a_SOURCES += lib/util/mempool.c include/mempool.h
+libutil_a_SOURCES += lib/util/mempool.c include/util/mempool.h
endif
noinst_LIBRARIES += libutil.a
diff --git a/lib/util/alloc.c b/lib/util/alloc.c
index e8305d8..359fef5 100644
--- a/lib/util/alloc.c
+++ b/lib/util/alloc.c
@@ -6,7 +6,7 @@
*/
#include "config.h"
-#include "util.h"
+#include "util/util.h"
#include <stdlib.h>
#include <errno.h>
diff --git a/lib/util/array.c b/lib/util/array.c
index 3697a07..40bac50 100644
--- a/lib/util/array.c
+++ b/lib/util/array.c
@@ -6,7 +6,7 @@
*/
#include "config.h"
#include "compat.h"
-#include "array.h"
+#include "util/array.h"
#include "sqfs/error.h"
diff --git a/lib/util/hash_table.c b/lib/util/hash_table.c
index a78aeee..0010e9f 100644
--- a/lib/util/hash_table.c
+++ b/lib/util/hash_table.c
@@ -45,7 +45,7 @@
#include <assert.h>
#include "fast_urem_by_const.h"
-#include "hash_table.h"
+#include "util/hash_table.h"
# define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
diff --git a/lib/util/is_memory_zero.c b/lib/util/is_memory_zero.c
index 3974ee2..aabd45d 100644
--- a/lib/util/is_memory_zero.c
+++ b/lib/util/is_memory_zero.c
@@ -5,7 +5,7 @@
* Copyright (C) 2021 David Oberhollenzer <goliath@infraroot.at>
*/
#include "config.h"
-#include "util.h"
+#include "util/util.h"
#include <stdint.h>
diff --git a/lib/util/mempool.c b/lib/util/mempool.c
index 5191fa2..229ab28 100644
--- a/lib/util/mempool.c
+++ b/lib/util/mempool.c
@@ -4,7 +4,7 @@
*
* Copyright (C) 2021 David Oberhollenzer <goliath@infraroot.at>
*/
-#include "mempool.h"
+#include "util/mempool.h"
#include <stdlib.h>
#include <limits.h>
diff --git a/lib/util/rbtree.c b/lib/util/rbtree.c
index 8839f82..8b43e43 100644
--- a/lib/util/rbtree.c
+++ b/lib/util/rbtree.c
@@ -7,7 +7,7 @@
#include "config.h"
#include "sqfs/error.h"
-#include "rbtree.h"
+#include "util/rbtree.h"
#include <stdlib.h>
#include <string.h>
diff --git a/lib/util/str_table.c b/lib/util/str_table.c
index 2816ff8..2d3e354 100644
--- a/lib/util/str_table.c
+++ b/lib/util/str_table.c
@@ -11,8 +11,8 @@
#include <string.h>
#include "sqfs/error.h"
-#include "str_table.h"
-#include "util.h"
+#include "util/str_table.h"
+#include "util/util.h"
/* R5 hash function (borrowed from reiserfs) */
static sqfs_u32 strhash(const char *s)
diff --git a/lib/util/threadpool.c b/lib/util/threadpool.c
index d20fe8b..c7357cd 100644
--- a/lib/util/threadpool.c
+++ b/lib/util/threadpool.c
@@ -4,14 +4,14 @@
*
* Copyright (C) 2021 David Oberhollenzer <goliath@infraroot.at>
*/
-#include "threadpool.h"
-#include "util.h"
+#include "util/threadpool.h"
+#include "util/util.h"
#include <stdlib.h>
#include <string.h>
#if defined(_WIN32) || defined(__WINDOWS__)
-#include "w32threadwrap.h"
+#include "util/w32threadwrap.h"
#define THREAD_FUN(funname, argname) DWORD WINAPI funname(LPVOID argname)
#define THREAD_EXIT_SUCCESS (0)
diff --git a/lib/util/threadpool_serial.c b/lib/util/threadpool_serial.c
index 834cfa7..fb24ee8 100644
--- a/lib/util/threadpool_serial.c
+++ b/lib/util/threadpool_serial.c
@@ -4,8 +4,8 @@
*
* Copyright (C) 2021 David Oberhollenzer <goliath@infraroot.at>
*/
-#include "threadpool.h"
-#include "util.h"
+#include "util/threadpool.h"
+#include "util/util.h"
#include <stdlib.h>
#include <string.h>
diff --git a/lib/util/xxhash.c b/lib/util/xxhash.c
index 0644e75..60467fb 100644
--- a/lib/util/xxhash.c
+++ b/lib/util/xxhash.c
@@ -35,7 +35,7 @@
* - xxHash source repository: https://github.com/Cyan4973/xxHash
*/
#include "config.h"
-#include "util.h"
+#include "util/util.h"
#include <string.h>