libs: fix the default value of process-shared attribute

pass ltp case: open_posix_testsuite/conformance/interfaces/pthread_condattr_getpshared/2-1.c

Reference:
https://pubs.opengroup.org/onlinepubs/009696899/functions/pthread_mutexattr_getpshared.html

Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
This commit is contained in:
fangxinyong 2023-11-21 22:10:03 +08:00 committed by Xiang Xiao
parent 67f5fc19eb
commit a6fa9db91e

View file

@ -61,6 +61,7 @@ int pthread_condattr_init(FAR pthread_condattr_t *attr)
else else
{ {
attr->clockid = CLOCK_REALTIME; attr->clockid = CLOCK_REALTIME;
attr->pshared = PTHREAD_PROCESS_PRIVATE;
} }
linfo("Returning %d\n", ret); linfo("Returning %d\n", ret);