summaryrefslogtreecommitdiff
path: root/libio/fileops.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/fileops.c')
-rw-r--r--libio/fileops.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libio/fileops.c b/libio/fileops.c
index 81dece080f..7cc8b7c7e2 100644
--- a/libio/fileops.c
+++ b/libio/fileops.c
@@ -113,16 +113,16 @@ extern int errno;
void
_IO_new_file_init (fp)
- _IO_FILE *fp;
+ struct _IO_FILE_plus *fp;
{
/* POSIX.1 allows another file handle to be used to change the position
of our file descriptor. Hence we actually don't know the actual
position before we do the first fseek (and until a following fflush). */
- fp->_offset = _IO_pos_BAD;
- fp->_IO_file_flags |= CLOSED_FILEBUF_FLAGS;
+ fp->file._offset = _IO_pos_BAD;
+ fp->file._IO_file_flags |= CLOSED_FILEBUF_FLAGS;
- _IO_link_in(fp);
- fp->_fileno = -1;
+ _IO_link_in (fp);
+ fp->file._fileno = -1;
}
int
@@ -153,7 +153,7 @@ _IO_new_file_close_it (fp)
_IO_wsetp (fp, NULL, NULL);
}
- _IO_un_link (fp);
+ _IO_un_link ((struct _IO_FILE_plus *) fp);
fp->_flags = _IO_MAGIC|CLOSED_FILEBUF_FLAGS;
fp->_fileno = -1;
fp->_offset = _IO_pos_BAD;
@@ -203,7 +203,7 @@ _IO_file_open (fp, filename, posix_mode, prot, read_write, is32not64)
if (_IO_SEEKOFF (fp, (_IO_off64_t)0, _IO_seek_end, _IOS_INPUT|_IOS_OUTPUT)
== _IO_pos_BAD && errno != ESPIPE)
return NULL;
- _IO_link_in (fp);
+ _IO_link_in ((struct _IO_FILE_plus *) fp);
return fp;
}