musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/include/sched.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2023年02月23日 10:10:44 -0500
committerRich Felker <dalias@aerifal.cx>2023年02月23日 10:10:44 -0500
commitbc695a5ac1d7929e5c1ad5297eb47e146cccd157 (patch)
treeffbf3db45055fb8ebf06c7bcd8ab892cc7479a34 /include/sched.h
parent7d756e1c04de6eb3f2b3d3e1141a218bb329fcfb (diff)
downloadmusl-bc695a5ac1d7929e5c1ad5297eb47e146cccd157.tar.gz
fix incorrect unit for CPU_SETSIZE macro
this macro is supposed to reflect the number of members (bits) in cpu_set_t, not the storage size (bytes).
Diffstat (limited to 'include/sched.h')
-rw-r--r--include/sched.h 2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sched.h b/include/sched.h
index fda4b484..204c34f5 100644
--- a/include/sched.h
+++ b/include/sched.h
@@ -124,7 +124,7 @@ __CPU_op_func_S(XOR, ^)
#define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n)))
#define CPU_FREE(set) free(set)
-#define CPU_SETSIZE 128
+#define CPU_SETSIZE 1024
#define CPU_SET(i, set) CPU_SET_S(i,sizeof(cpu_set_t),set)
#define CPU_CLR(i, set) CPU_CLR_S(i,sizeof(cpu_set_t),set)
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月05日 22:05:53 +0000

AltStyle によって変換されたページ (->オリジナル) /