Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/unix/ttyname.h')
-rw-r--r--newlib/libc/unix/ttyname.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/newlib/libc/unix/ttyname.h b/newlib/libc/unix/ttyname.h
new file mode 100644
index 000000000..ad9453553
--- /dev/null
+++ b/newlib/libc/unix/ttyname.h
@@ -0,0 +1,6 @@
+/* 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)