Fix sem_trywait() implementation + update changelog.

This commit is contained in:
David 'Digit' Turner 2010-02-12 12:18:37 -08:00
parent 1dcf07a84c
commit 294dd0b86b
2 changed files with 10 additions and 2 deletions

View File

@ -196,7 +196,8 @@ int sem_trywait(sem_t *sem)
if (__atomic_dec_if_positive(&sem->count) > 0) {
return 0;
} else {
return EAGAIN;
errno = EAGAIN;
return -1;
}
}

View File

@ -46,7 +46,14 @@ Differences between current and Android 2.1:
- <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: