aboutsummaryrefslogtreecommitdiff
path: root/libio/genops.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-05-07 03:48:45 +0000
committerUlrich Drepper <drepper@redhat.com>2003-05-07 03:48:45 +0000
commit14a2bd4b6d7a6fff5b4f6916af7eed796b919153 (patch)
treed3b33d8aee6abb3c6c288b185c53e064318b1963 /libio/genops.c
parent445506e34149d6f11c5b39aa9046d453a6fd0e7f (diff)
downloadglibc-14a2bd4b6d7a6fff5b4f6916af7eed796b919153.zip
glibc-14a2bd4b6d7a6fff5b4f6916af7eed796b919153.tar.gz
glibc-14a2bd4b6d7a6fff5b4f6916af7eed796b919153.tar.bz2
Update.
2003-05-06 Ulrich Drepper <drepper@redhat.com> * libio/oldiofdopen.c (_IO_old_fdopen): Use _IO_old_init not _IO_init. * libio/oldiofopen.c (_IO_old_fopen): Likewise. * libio/libioP.h: Declare _IO_old_init. * libio/genops.c (_IO_no_init): Split in two. New function _IO_old_init.
Diffstat (limited to 'libio/genops.c')
-rw-r--r--libio/genops.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/libio/genops.c b/libio/genops.c
index c88a26f..8077268 100644
--- a/libio/genops.c
+++ b/libio/genops.c
@@ -602,12 +602,9 @@ _IO_init (fp, flags)
INTDEF(_IO_init)
void
-_IO_no_init (fp, flags, orientation, wd, jmp)
+_IO_old_init (fp, flags)
_IO_FILE *fp;
int flags;
- int orientation;
- struct _IO_wide_data *wd;
- struct _IO_jump_t *jmp;
{
fp->_flags = _IO_MAGIC|flags;
fp->_flags2 = 0;
@@ -633,6 +630,17 @@ _IO_no_init (fp, flags, orientation, wd, jmp)
if (fp->_lock != NULL)
_IO_lock_init (*fp->_lock);
#endif
+}
+
+void
+_IO_no_init (fp, flags, orientation, wd, jmp)
+ _IO_FILE *fp;
+ int flags;
+ int orientation;
+ struct _IO_wide_data *wd;
+ struct _IO_jump_t *jmp;
+{
+ _IO_old_init (fp, flags);
fp->_mode = orientation;
#if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
if (orientation >= 0)