public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* libio/libio.h change in glibc-2-1-branch breaks libio/iofopncook.c
@ 1999-08-23 15:23 Joel Klecker
  1999-08-24 15:43 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: Joel Klecker @ 1999-08-23 15:23 UTC (permalink / raw)
  To: libc-hacker

This patch works for me (well, it compiles ;).

Index: libio/iofopncook.c
===================================================================
RCS file: /glibc/cvsfiles/libc/libio/iofopncook.c,v
retrieving revision 1.7
diff -u -r1.7 iofopncook.c
--- iofopncook.c	1999/04/28 10:00:02	1.7
+++ iofopncook.c	1999/08/23 22:14:53
@@ -46,10 +46,10 @@
  {
    struct _IO_cookie_file *cfile = (struct _IO_cookie_file *) fp;
 
-  if (cfile->io_functions.read == NULL)
+  if (cfile->__io_functions.read == NULL)
      return -1;
 
-  return cfile->io_functions.read (cfile->cookie, buf, size);
+  return cfile->__io_functions.read (cfile->__cookie, buf, size);
  }
 
  static _IO_ssize_t
@@ -60,10 +60,10 @@
  {
    struct _IO_cookie_file *cfile = (struct _IO_cookie_file *) fp;
 
-  if (cfile->io_functions.write == NULL)
+  if (cfile->__io_functions.write == NULL)
      return -1;
 
-  return cfile->io_functions.write (cfile->cookie, buf, size);
+  return cfile->__io_functions.write (cfile->__cookie, buf, size);
  }
 
  static _IO_fpos64_t
@@ -75,13 +75,13 @@
    struct _IO_cookie_file *cfile = (struct _IO_cookie_file *) fp;
    _IO_fpos64_t pos;
 
-  if (cfile->io_functions.seek == NULL)
+  if (cfile->__io_functions.seek == NULL)
      return _IO_pos_BAD;
 
    pos = _IO_pos_0;
    _IO_pos_adjust (pos, offset);
 
-  return cfile->io_functions.seek (cfile->cookie, pos, dir);
+  return cfile->__io_functions.seek (cfile->__cookie, pos, dir);
  }
 
  static int
@@ -90,10 +90,10 @@
  {
    struct _IO_cookie_file *cfile = (struct _IO_cookie_file *) fp;
 
-  if (cfile->io_functions.close == NULL)
+  if (cfile->__io_functions.close == NULL)
      return 0;
 
-  return cfile->io_functions.close (cfile->cookie);
+  return cfile->__io_functions.close (cfile->__cookie);
  }
 
 
@@ -157,19 +157,19 @@
    if (new_f == NULL)
      return NULL;
  #ifdef _IO_MTSAFE_IO
-  new_f->cfile.file._lock = &new_f->lock;
+  new_f->cfile.__file._lock = &new_f->lock;
  #endif
 
-  _IO_init (&new_f->cfile.file, 0);
-  _IO_JUMPS (&new_f->cfile.file) = &_IO_cookie_jumps;
-  new_f->cfile.cookie = cookie;
-  new_f->cfile.io_functions = io_functions;
+  _IO_init (&new_f->cfile.__file, 0);
+  _IO_JUMPS (&new_f->cfile.__file) = &_IO_cookie_jumps;
+  new_f->cfile.__cookie = cookie;
+  new_f->cfile.__io_functions = io_functions;
 
-  _IO_file_init(&new_f->cfile.file);
+  _IO_file_init(&new_f->cfile.__file);
 
-  new_f->cfile.file._IO_file_flags =
-    _IO_mask_flags (&new_f->cfile.file, read_write,
+  new_f->cfile.__file._IO_file_flags =
+    _IO_mask_flags (&new_f->cfile.__file, read_write,
  		    _IO_NO_READS+_IO_NO_WRITES+_IO_IS_APPENDING);
 
-  return &new_f->cfile.file;
+  return &new_f->cfile.__file;
  }
-- 
Joel Klecker (aka Espy)                    Debian GNU/Linux Developer
<URL: mailto:jk@espy.org >                 <URL: mailto:espy@debian.org >
<URL: http://web.espy.org/ >               <URL: http://www.debian.org/ >

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: libio/libio.h change in glibc-2-1-branch breaks libio/iofopncook.c
  1999-08-23 15:23 libio/libio.h change in glibc-2-1-branch breaks libio/iofopncook.c Joel Klecker
@ 1999-08-24 15:43 ` Ulrich Drepper
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 1999-08-24 15:43 UTC (permalink / raw)
  To: Joel Klecker; +Cc: libc-hacker

Joel Klecker <jk@espy.org> writes:

> This patch works for me (well, it compiles ;).

Thanks, it's applied.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-08-24 15:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-08-23 15:23 libio/libio.h change in glibc-2-1-branch breaks libio/iofopncook.c Joel Klecker
1999-08-24 15:43 ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).