summaryrefslogtreecommitdiffstats
path: root/contrib/xz/src/common/tuklib_cpucores.h
diff options
context:
space:
mode:
authormm <mm@FreeBSD.org>2010-05-10 06:59:50 +0000
committermm <mm@FreeBSD.org>2010-05-10 06:59:50 +0000
commit5c358d45429b654efa9c8177ecd370a7965ec1a7 (patch)
treed2d916954c6a66a3168ee356b5f24da01c2017d6 /contrib/xz/src/common/tuklib_cpucores.h
parent3e09decd1986826f54af1a47be97bb87c1220783 (diff)
parent1008b7c6744a190c5b15aaf8cab1054671e4c7c3 (diff)
downloadFreeBSD-src-5c358d45429b654efa9c8177ecd370a7965ec1a7.zip
FreeBSD-src-5c358d45429b654efa9c8177ecd370a7965ec1a7.tar.gz
Import of liblzma, xz, xzdec, lzmainfo from vendor branch
Add support for xz and lzma to lesspipe.sh (xzless, lzless) Bump __FreeBSD_version Approved by: delphij (mentor) MFC after: 2 weeks
Diffstat (limited to 'contrib/xz/src/common/tuklib_cpucores.h')
-rw-r--r--contrib/xz/src/common/tuklib_cpucores.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/xz/src/common/tuklib_cpucores.h b/contrib/xz/src/common/tuklib_cpucores.h
new file mode 100644
index 0000000..be1ce1c
--- /dev/null
+++ b/contrib/xz/src/common/tuklib_cpucores.h
@@ -0,0 +1,23 @@
+///////////////////////////////////////////////////////////////////////////////
+//
+/// \file tuklib_cpucores.h
+/// \brief Get the number of CPU cores online
+//
+// Author: Lasse Collin
+//
+// This file has been put into the public domain.
+// You can do whatever you want with this file.
+//
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef TUKLIB_CPUCORES_H
+#define TUKLIB_CPUCORES_H
+
+#include "tuklib_common.h"
+TUKLIB_DECLS_BEGIN
+
+#define tuklib_cpucores TUKLIB_SYMBOL(tuklib_cpucores)
+extern uint32_t tuklib_cpucores(void);
+
+TUKLIB_DECLS_END
+#endif
OpenPOWER on IntegriCloud