diff options
Diffstat (limited to 'libgfortran/io/unix.c')
-rw-r--r-- | libgfortran/io/unix.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libgfortran/io/unix.c b/libgfortran/io/unix.c index e6b0478..eead2a2 100644 --- a/libgfortran/io/unix.c +++ b/libgfortran/io/unix.c @@ -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. |