[PATCH] Fix getlogin() to check only stdin to get a valid tty
Torbjorn SVENSSON
torbjorn.svensson@foss.st.com
Thu Jul 13 16:26:21 GMT 2023
On 2023-07-12 22:06, Brian Inglis wrote:
> No worries: Cygwin getlogin/_r is defined as "C" in
> winsup/cygwin/uinfo.cc to deal with Windows and limits itself to UNLEN:
> /usr/include/cygwin/limits.h:#define __LOGIN_NAME_MAX 256 /* equal
> to UNLEN defined in w32api/lmcons.h */
> /usr/include/w32api/lmcons.h:#define UNLEN 256
>
Thanks Brian for the clarification!
More information about the Newlib
mailing list