summaryrefslogtreecommitdiff
path: root/libio/genops.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1996-08-31 00:13:23 +0000
committerUlrich Drepper <drepper@redhat.com>1996-08-31 00:13:23 +0000
commitadfa20781b59473b9514c6c4bef40ea909a6eacd (patch)
tree2a6c62205bc5abc0c78bc36025f5afeff5fdcc37 /libio/genops.c
parent924840c54244fe16223c42a91c36ca976784043b (diff)
downloadglibc-adfa20781b59473b9514c6c4bef40ea909a6eacd.tar.gz
Fri Aug 30 19:55:27 1996 Ulrich Drepper <drepper@cygnus.com> * libio/genops.c: Make _cleanup an alias of _IO_cleanup. Reported by Erik Troan. Fri Aug 30 15:40:04 1996 Ulrich Drepper <drepper@cygnus.com> * sysdeps/unix/sysv/linux/Dist: Add sys/procfs.h and sys/sysmacros.h. Reported by Curtiss <1CMC3466@IBM.MTSAC.EDU>. Fri Aug 30 13:53:32 1996 Andreas Jaeger <aj@arthur.pfalz.de> * sysdeps/unix/mman/syscalls.list: `mmap' has 6 arguments, not 5. Fri Aug 30 13:01:10 1996 NIIBE Yutaka <gniibe@mri.co.jp> * sysdeps/i386/fpu/__math.h (tan): Pop 1.0 in ST to get real result. Fri Aug 30 03:33:33 1996 Ulrich Drepper <drepper@cygnus.com> * sysdeps/libm-ieee754/s_cbrtl.c: New file. `long double' implementation. * sysdeps/unix/sysv/linux/i386/Dist: Add clone.S.
Diffstat (limited to 'libio/genops.c')
-rw-r--r--libio/genops.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/libio/genops.c b/libio/genops.c
index e5bff7afed..98eef94b58 100644
--- a/libio/genops.c
+++ b/libio/genops.c
@@ -1,4 +1,4 @@
-/*
+/*
Copyright (C) 1993, 1995 Free Software Foundation
This file is part of the GNU IO Library. This library is free
@@ -503,7 +503,7 @@ DEFUN(_IO_default_finish, (fp),
#ifdef _IO_MTSAFE_IO
_IO_mutex_destroy (fp->_lock);
#endif
-
+
_IO_un_link(fp);
}
@@ -519,7 +519,7 @@ DEFUN(_IO_sputbackc, (fp, c),
register _IO_FILE *fp AND int c)
{
int result;
-
+
if (fp->_IO_read_ptr > fp->_IO_read_base
&& (unsigned char)fp->_IO_read_ptr[-1] == (unsigned char)c)
{
@@ -540,7 +540,7 @@ DEFUN(_IO_sungetc, (fp),
register _IO_FILE *fp)
{
int result;
-
+
if (fp->_IO_read_ptr > fp->_IO_read_base)
{
fp->_IO_read_ptr--;
@@ -591,7 +591,7 @@ int
DEFUN(_IO_get_column, (fp),
register _IO_FILE *fp)
{
- if (fp->_cur_column)
+ if (fp->_cur_column)
return _IO_adjust_column(fp->_cur_column - 1,
fp->_IO_write_base,
fp->_IO_write_ptr - fp->_IO_write_base);
@@ -638,7 +638,7 @@ DEFUN_VOID(_IO_cleanup)
So it is possible that other static destructord might want to
write to cout - and they're supposed to be able to do so.
- The following will make the standard streambufs be unbuffered,
+ The following will make the standard streambufs be unbuffered,
which forces any output from late destructors to be written out. */
_IO_unbuffer_all ();
}
@@ -654,7 +654,7 @@ DEFUN(_IO_init_marker, (marker, fp),
marker->_pos = fp->_IO_read_ptr - fp->_IO_read_end;
else
marker->_pos = fp->_IO_read_ptr - fp->_IO_read_base;
-
+
/* Should perhaps sort the chain? */
marker->_next = fp->_markers;
fp->_markers = marker;
@@ -775,7 +775,7 @@ DEFUN(_IO_default_pbackfail, (fp, c),
/* Need to handle a filebuf in write mode (switch to read mode). FIXME!*/
if (_IO_have_backup(fp) && !_IO_in_backup(fp))
_IO_switch_to_backup_area(fp);
-
+
if (!_IO_have_backup(fp))
{
/* No backup buffer: allocate one. */
@@ -852,8 +852,12 @@ DEFUN(_IO_default_write, (fp, data, n),
struct __io_defs {
__io_defs() { }
~__io_defs() { _IO_cleanup(); }
-};
+};
__io_defs io_defs__;
#endif
#endif /* TODO */
+
+#ifdef weak_alias
+weak_alias (_IO_cleanup, _cleanup)
+#endif