* 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:
@@ -151,6 +151,10 @@ details. */
|
||||
#undef TIMER_MAX
|
||||
#define TIMER_MAX 32
|
||||
|
||||
/* Maximum number of characters in a login name. */
|
||||
#undef LOGIN_NAME_MAX
|
||||
#define LOGIN_NAME_MAX 256 /* equal to UNLEN defined in w32api/lmcons.h */
|
||||
|
||||
/* Maximum number of characters in a tty name. */
|
||||
#undef TTY_NAME_MAX
|
||||
#define TTY_NAME_MAX 12
|
||||
|
Reference in New Issue
Block a user