From 68509b303eb9d091068adf651385c29c41a8f458 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 17 May 2004 16:06:02 +0000 Subject: * 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. --- winsup/cygwin/thread.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/thread.cc') 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); } -- cgit v1.2.3