diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-02-12 21:41:44 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-02-12 21:41:44 +0000 |
commit | d369ad760d0a2bc585cb5b076a67d565573ee915 (patch) | |
tree | 4ae1519d9be337683b209482082102b1e6874867 /libio | |
parent | e32f487e1cb6e7ed6eb494afde072e1405d5a5fb (diff) | |
download | glibc-d369ad760d0a2bc585cb5b076a67d565573ee915.zip glibc-d369ad760d0a2bc585cb5b076a67d565573ee915.tar.gz glibc-d369ad760d0a2bc585cb5b076a67d565573ee915.tar.bz2 |
[BZ #2226]
2006-02-12 Ulrich Drepper <drepper@redhat.com>
* io/ftw.c: Start using *at functions.
* io/ftw64.c: Likewise.
* sysdeps/generic/not-cancel.h: Define openat_not_cancel,
openat_not_cancel_3, openat64_not_cancel, and openat64_not_cancel_3.
* sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
* sysdeps/unix/sysv/linux/openat.c: Create separate _nocancel
functions.
* io/fxstatat.c: Add __fxstatat alias.
* sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
* sysdeps/unix/sysv/linux/fxstatat.c: Likewise. Add support for
newfstatat syscall.
* sysdeps/unix/sysv/linux/i386/fxstatat.c: Add __fxstatat alias.
Add support for fstatat64 syscall.
* include/sys/stat.h: Declare __fxstatat.
* io/fxstatat64.c: Add __fxstatat64 alias.
* sysdeps/unix/sysv/linux/fxstatat64.c: Add support for fstatat64
syscall.
* dirent/fdopendir.c: Add __fdopendir alias.
* sysdeps/unix/fdopendir.c: Likewise.
* sysdeps/mach/hurd/fdopendir.c: Likewise.
* include/dirent.h: Add __fdopendir declaration.
[BZ #2226]
* libio/wgenops.c (_IO_wsetb): Use correct size of wide char
buffer in FREE_BUF call.
Diffstat (limited to 'libio')
-rw-r--r-- | libio/wgenops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libio/wgenops.c b/libio/wgenops.c index a9cc7bf..355fd26 100644 --- a/libio/wgenops.c +++ b/libio/wgenops.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993,1995,1997-2001,2002,2004 Free Software Foundation, Inc. +/* Copyright (C) 1993,1995,1997-2002,2004,2006 Free Software Foundation, Inc. This file is part of the GNU C Library. Written by Ulrich Drepper <drepper@cygnus.com>. Based on the single byte version by Per Bothner <bothner@cygnus.com>. @@ -116,7 +116,7 @@ _IO_wsetb (f, b, eb, a) int a; { if (f->_wide_data->_IO_buf_base && !(f->_flags & _IO_USER_BUF)) - FREE_BUF (f->_wide_data->_IO_buf_base, _IO_wblen (f)); + FREE_BUF (f->_wide_data->_IO_buf_base, _IO_wblen (f) * sizeof (wchar_t)); f->_wide_data->_IO_buf_base = b; f->_wide_data->_IO_buf_end = eb; if (a) |