* 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.
This commit is contained in:
@@ -37,4 +37,18 @@ typedef void *_LOCK_T;
|
||||
#define __lock_release(__lock) __cygwin_lock_unlock(&__lock)
|
||||
#define __lock_release_recursive(__lock) __cygwin_lock_unlock(&__lock)
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
void __cygwin_lock_init(_LOCK_T *);
|
||||
void __cygwin_lock_init_recursive(_LOCK_T *);
|
||||
void __cygwin_lock_fini(_LOCK_T *);
|
||||
void __cygwin_lock_lock(_LOCK_T *);
|
||||
int __cygwin_lock_trylock(_LOCK_T *);
|
||||
void __cygwin_lock_unlock(_LOCK_T *);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user