Fix sem_trywait() implementation + update changelog.
This commit is contained in:
parent
1dcf07a84c
commit
294dd0b86b
@ -196,7 +196,8 @@ int sem_trywait(sem_t *sem)
|
|||||||
if (__atomic_dec_if_positive(&sem->count) > 0) {
|
if (__atomic_dec_if_positive(&sem->count) > 0) {
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
return EAGAIN;
|
errno = EAGAIN;
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,7 +46,14 @@ Differences between current and Android 2.1:
|
|||||||
|
|
||||||
- <wchar.h>: Add mbstowcs() and wcstombs()
|
- <wchar.h>: Add mbstowcs() and wcstombs()
|
||||||
|
|
||||||
- add clone() implementation for ARM (x86 and SH-4 not working yet)
|
- add clone() implementation for ARM (x86 and SH-4 not working yet).
|
||||||
|
|
||||||
|
- <sys/epoll.h>: <sys/system_properties.h>: Add missing C++ inclusion guards
|
||||||
|
|
||||||
|
- fix getpwnam() and getpwgrp() to accept "app_0" as a valid user name.
|
||||||
|
|
||||||
|
- fix sem_trywait() to return -1 and set errno to EAGAIN, instead of
|
||||||
|
returning EAGAIN directly.
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Differences between Android 2.1 and 2.0.1:
|
Differences between Android 2.1 and 2.0.1:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user