mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-15 19:09:58 +08:00
02b20a2311
* libc/unix/ttyname.c: Remove ttyname_r() (to a new file to avoid coupling ttyname_r() and ttyname() due to the latter's large buffer). * libc/unix/ttyname_r.c: New file to hold ttyname_r(), previously in ttyname.c. * libc/unix/ttyname.h: New file (common size definition for the 2 ttyname*c files that are now split). * libc/unix/Makefile.am (ELIX_2_SOURCES): Add ttyname_r.c. * libc/unix/Makefile.in: Regenerate.
7 lines
190 B
C
7 lines
190 B
C
/* Common defines for ttyname.c and ttyname_r.c */
|
|
|
|
#include <dirent.h> /* For MAXNAMLEN */
|
|
#include <paths.h> /* For _PATH_DEV */
|
|
|
|
#define TTYNAME_BUFSIZE (sizeof (_PATH_DEV) + MAXNAMLEN)
|