diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2004-05-17 16:06:02 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2004-05-17 16:06:02 +0000 |
commit | 68509b303eb9d091068adf651385c29c41a8f458 (patch) | |
tree | 39b0c6a04fe2571166c8a9025bb0973858429e03 /winsup/cygwin/thread.cc | |
parent | 3271e9f9e38cb9d0e51554680f1f87c3ea3fe5f7 (diff) | |
download | cygnal-68509b303eb9d091068adf651385c29c41a8f458.tar.gz cygnal-68509b303eb9d091068adf651385c29c41a8f458.tar.bz2 cygnal-68509b303eb9d091068adf651385c29c41a8f458.zip |
* cygwin.din: Add symbols flockfile, ftrylockfile, funlockfile,
getgrgid_r, getgrnam_r and getlogin_r.
* grp.cc (getgrgid_r): New function.
(getgrnam_r): Ditto.
* syscalls.cc (flockfile): Ditto.
(ftrylockfile): Ditto.
(funlockfile): Ditto.
* sysconf.cc (sysconf): Return LOGIN_NAME_MAX in case of
_SC_LOGIN_NAME_MAX.
* thread.cc (__cygwin_lock_trylock): Define int. Return value from
call to pthread_mutex_trylock.
* uinfo.cc (getlogin_r): New function.
* include/limits.h: Define LOGIN_NAME_MAX.
* include/cygwin/version.h: Bump API minor number.
* include/sys/lock.h: Add declarations for __cygwin_lock_xxx functions.
* include/sys/stdio.h: Add define for _ftrylockfile.
Diffstat (limited to 'winsup/cygwin/thread.cc')
-rw-r--r-- | winsup/cygwin/thread.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc index 7aac92ae0..8c36dfbce 100644 --- a/winsup/cygwin/thread.cc +++ b/winsup/cygwin/thread.cc @@ -82,10 +82,10 @@ __cygwin_lock_lock (_LOCK_T *lock) pthread_mutex_lock ((pthread_mutex_t*) lock); } -extern "C" void +extern "C" int __cygwin_lock_trylock (_LOCK_T *lock) { - pthread_mutex_trylock ((pthread_mutex_t*) lock); + return pthread_mutex_trylock ((pthread_mutex_t*) lock); } |