libc/newlib/libc/unix/ttyname.h
Jeff Johnston 02b20a2311 2009-02-23 Craig Howland <howland@LGSInnovations.com>
* 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.
2009-02-23 23:42:03 +00:00

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)