projects
/
musl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7d756e1
)
fix incorrect unit for CPU_SETSIZE macro
author
Rich Felker
<dalias@aerifal.cx>
Thu, 23 Feb 2023 15:10:44 +0000
(10:10 -0500)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 23 Feb 2023 15:10:44 +0000
(10:10 -0500)
this macro is supposed to reflect the number of members (bits) in
cpu_set_t, not the storage size (bytes).
include/sched.h
patch
|
blob
|
history
diff --git
a/include/sched.h
b/include/sched.h
index
fda4b48
..
204c34f
100644
(file)
--- 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 1
28
+#define CPU_SETSIZE 1
024
#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)