Re: [PATCH] Implement ttyname() for OS/2

2023-01-17 Thread KO Myung-Hun
Hi/2. KO Myung-Hun wrote: > OS/2 kLIBC has a declaration, but has not implemented. > ... > + if (type == HANDTYPE_DEVICE) > +{ > + if ((attr & 3) == 3) > +return (char *) "/dev/con"; > + > + if ((attr & 4) == 4) > +return (char *) "/dev/nul"; > + > + if ((att

[PATCH] Implement ttyname() for OS/2

2023-01-17 Thread KO Myung-Hun
OS/2 kLIBC has a declaration, but has not implemented. * Makefile.am [OS/2]: define OS2ENV. * configure.ac [OS/2]: define os2_SRCS. * src/os2_ttyname.c: Implement ttyname() for OS/2. --- Makefile.am | 6 ++ configure.ac | 9 src/os2_ttyname.c | 53 +++