summaryrefslogtreecommitdiffstats
path: root/libgfortran/io/unix.c
diff options
context:
space:
mode:
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-29 01:32:23 +0000
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-29 01:32:23 +0000
commit4cdcb18dd0f8bed2bc911ba6d52abcc877708da5 (patch)
treeed3790f513f08394de93694eb89a85e8e02d5c8c /libgfortran/io/unix.c
parenta32a96e4a86def1922a9afec04bfcccbb335fa77 (diff)
downloadppe42-gcc-4cdcb18dd0f8bed2bc911ba6d52abcc877708da5.tar.gz
ppe42-gcc-4cdcb18dd0f8bed2bc911ba6d52abcc877708da5.zip
2010-07-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/44931 * io/inquire.c (inquire_via_unit): Use ttyname to return actual device file name for stdin, stdout, and stderr. If ttyname does not succeed fall back to default names for these units. Include string.h to allow using strlen function. * unix.c: Remove typedef of unix_stream structure, move to unix.h. * unix.h: Add typedef of unix_stream structure so that it is accessible to inquire.c. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162667 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/io/unix.c')
-rw-r--r--libgfortran/io/unix.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/libgfortran/io/unix.c b/libgfortran/io/unix.c
index 3a795aef536..eea03ba7f81 100644
--- a/libgfortran/io/unix.c
+++ b/libgfortran/io/unix.c
@@ -135,28 +135,6 @@ typedef struct stat gfstat_t;
static const int BUFFER_SIZE = 8192;
-typedef struct
-{
- stream st;
-
- gfc_offset buffer_offset; /* File offset of the start of the buffer */
- gfc_offset physical_offset; /* Current physical file offset */
- gfc_offset logical_offset; /* Current logical file offset */
- gfc_offset file_length; /* Length of the file, -1 if not seekable. */
-
- char *buffer; /* Pointer to the buffer. */
- int fd; /* The POSIX file descriptor. */
-
- int active; /* Length of valid bytes in the buffer */
-
- int prot;
- int ndirty; /* Dirty bytes starting at buffer_offset */
-
- int special_file; /* =1 if the fd refers to a special file */
-}
-unix_stream;
-
-
/* fix_fd()-- Given a file descriptor, make sure it is not one of the
* standard descriptors, returning a non-standard descriptor. If the
* user specifies that system errors should go to standard output,
OpenPOWER on IntegriCloud