KhronosGroup / VK-GL-CTS

Khronos Vulkan, OpenGL, and OpenGL ES Conformance Tests
https://www.khronos.org/
Apache License 2.0
525 stars 293 forks source link

Why the return value will be greater than 0 when calling syscall(__NR_sched_getaffinity) in framework/delibs/dethread/unix/deThreadUnix.c #460

Open innosilion opened 4 months ago

innosilion commented 4 months ago

I don't kown under what circumstances it will bu greater than 0. this is not confirm to the calling habits of unix systems.

ret = syscall(_NR_sched_etaffinity,0,maskSize,&mask) if (ret>0) { ..... }