Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_3DBB341679902FD1EDCC3D74EC07FE175606@qq.com>
Date: Mon, 21 Nov 2022 16:51:49 +0800
From: "兔子猪" <3264430019@...com>
To: "musl" <musl@...ts.openwall.com>
Subject: about sysconf(_SC_NPROCESSORS_CONF) issue

Hi


currently, we use "sysconf(_SC_NPROCESSORS_CONF)" to get the number of the CPU,&nbsp; and the musl implements this function by SYS_sched_getaffinity system call,&nbsp; when some of CPUs are isolated, the return value is not correct.


I have searched the history maillist of musl and found the same issue:&nbsp;https://www.openwall.com/lists/musl/2021/05/05/,&nbsp; but there is no final conclusion. I wonder why musl is doing this?


I'm Looking forward to your reply, Thanks.


Tony Gan
Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.