aboutsummaryrefslogtreecommitdiffstats
path: root/lib/util.h
diff options
context:
space:
mode:
authorBernd Schubert <bschubert@ddn.com>2025-04-24 13:53:59 +0200
committerBernd Schubert <bernd@bsbernd.com>2025-04-28 19:57:39 +0200
commitef533e2e3fedbd647726416fa7f36ca543ee13ea (patch)
tree5e5c7d34d7d0e3065777082898f6f922e9f42028 /lib/util.h
parentc5a032b3410d7225ac0355355faa63565a209943 (diff)
downloadlibfuse-ef533e2e3fedbd647726416fa7f36ca543ee13ea.tar.gz
Add a fuse_set_thread_name() helper
Avoid splattering the code with ifdef Signed-off-by: Bernd Schubert <bschubert@ddn.com>
Diffstat (limited to 'lib/util.h')
-rw-r--r--lib/util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/util.h b/lib/util.h
index ed03ad4..d1939cf 100644
--- a/lib/util.h
+++ b/lib/util.h
@@ -9,6 +9,7 @@
#define unlikely(x) __builtin_expect(!!(x), 0)
int libfuse_strtol(const char *str, long *res);
+void fuse_set_thread_name(unsigned long tid, const char *name);
/**
* Return the low bits of a number
@@ -36,4 +37,4 @@ static inline uint64_t fuse_higher_32_bits(uint64_t nr)
((type *)(__mptr - offsetof(type, member))); \
})
-#endif
+#endif /* FUSE_UTIL_H_ */