OSDN Git Service

* check.c (gfc_check_ttynam_sub, gfc_check_isatty): Add check
[pf3gnuchains/gcc-fork.git] / libgfortran / io / unix.c
index e6b0478..eead2a2 100644 (file)
@@ -1536,6 +1536,18 @@ flush (stream *s)
   return fd_flush( (unix_stream *) s);
 }
 
+int
+stream_isatty (stream *s)
+{
+  return isatty (((unix_stream *) s)->fd);
+}
+
+char *
+stream_ttyname (stream *s)
+{
+  return ttyname (((unix_stream *) s)->fd);
+}
+
 
 /* How files are stored:  This is an operating-system specific issue,
    and therefore belongs here.  There are three cases to consider.