summaryrefslogtreecommitdiff
path: root/libio
AgeCommit message (Collapse)Author
2009-07-29Merge commit 'origin/release/2.10/master' into fedora/2.10/masterAndreas Schwab
2009-07-29remove subsumed .gitignore entries and filesJim Meyering
(cherry picked from commit edeabc047e56680a293c39992d227b4c430cc0a7)
2009-07-29remove mpn-copy.mk from .gitignore filesJim Meyering
(cherry picked from commit 863615332688db0aa6db3dea642752241f051e5c)
2009-07-29remove COPYING* from .gitignore filesJim Meyering
(cherry picked from commit bb87237534eee688ad8c8eab10e433ae6238fc03)
2009-06-18Run tst-fgetwc with necessary envvar.Ulrich Drepper
(cherry picked from commit eae3208e249edda25548fa7680d01193d7515e0c)
2009-06-16(do_test): Use de_DE.UTF-8 as locale name.Bruce Dubbs
(cherry picked from commit 4155d926336ba38428a98359bf0908453ff83625)
2009-06-09(_IO_new_file_fopen): Don't prematurely stop parsing mode string.Ulrich Drepper
(cherry picked from commits 0d74e0436195a051d69e78bef10d23879788cb7e, d360a0da2b42b2b79e9ce9c2d7984c234e840b7a)
2009-05-22rename each .cvsignore file to .gitignoreJim Meyering
(cherry picked from commit 2e180a26222caf478f29e272c9d1b5d9c6299752)
2009-04-27Updated to fedora-glibc-20090427T1419cvs/fedora-glibc-2_9_90-22Jakub Jelinek
2009-04-26* sysdeps/unix/sysv/linux/libc_pthread_init.c (__libc_pthread_init):Ulrich Drepper
Avoid warning by using may_alias attribute on ptrhack.
2009-04-25* libio/tst-widetext.input: Remove surrogates.Ulrich Drepper
2009-03-10Updated to fedora-glibc-20090310T1925cvs/fedora-glibc-2_9_90-10Jakub Jelinek
2009-03-10* include/stdio.h (fmemopen): Add libc_hidden_proto.Ulrich Drepper
* libio/fmemopen.c (fmemopen): Add libc_hidden_def. * elf/sprof.c: Avoid warning about multi-line comment.
2009-03-09Updated to fedora-glibc-20090309T1421cvs/fedora-glibc-2_9_90-9Jakub Jelinek
2009-02-26* libio/stdio.h: dprintf, fmemopen, getdelim, getline,Ulrich Drepper
open_memstream, and vdprintf are in POSIX 2008.
2009-02-18Updated to fedora-glibc-20090218T1534Jakub Jelinek
2009-02-05* sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (struct sigevent):Ulrich Drepper
Add _tid slot to maintain consistency with kernel.
2009-02-04Updated to fedora-glibc-20090204T2135cvs/fedora-glibc-2_9_90-3Jakub Jelinek
2009-02-042009-02-04 Ulrich Drepper <drepper@redhat.com>cvs/fedora-glibc-20090204T2135Ulrich Drepper
* libio/wfileops.c (_IO_wfile_underflow): Fix handling of incomplete characters at end of input buffer. * libio/Makefile (tests): Add tst-fgetwc. * libio/tst-fgetwc.c: New file. * libio/tst-fgetwc.input: New file.
2009-02-04Test of fgetwc on unbuffered stream.Ulrich Drepper
2008-08-29Updated to fedora-glibc-20080828T1623cvs/fedora-glibc-2_8_90-12Jakub Jelinek
2008-08-14[BZ #6544]Ulrich Drepper
* libio/fmemopen.c: Implement binary mode. In this mode no NUL byte gets added to writes and seeks from the end use the length of the buffer and not the currently terminating NUL byte.
2008-07-28Updated to fedora-glibc-20080728T2320cvs/fedora-glibc-2_8_90-10Jakub Jelinek
2008-07-27* libio/iopopen.c (_IO_new_proc_open): Remove unnecessary volatile.Ulrich Drepper
2008-07-27* posix/wordexp.c (exec_comm): Use pipe2 if possible to createUlrich Drepper
file descriptors with close-on-exec set. (exec_comm_child): Fix the case where the write end of the pipe is STDOUT_FILENO already. In case it is, clear close-on-exec.
2008-07-27* sysdeps/unix/sysv/linux/syscalls.list: Add __pipe2 alias.Ulrich Drepper
* io/pipe2.c: Likewise. * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PIPE2 instead of __ASSUME_PACCEPT. * include/unistd.h: Declare __have_pipe2. * libio/iopopen.c: Implement "e" flag. * libio/Makefile (tests): Add tst-popen1. * libio/tst-popen1.c: New file.
2008-07-27* sysdeps/unix/sysv/linux/bits/socket.h: Define PF_ISDN and AF_ISDN.Ulrich Drepper
* sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
2008-07-26[BZ #6771]Ulrich Drepper
* libio/fileops.c (_IO_new_file_attach): Preserve errno around success call of _IO_SEEKOFF or calls which failed because the descriptor is for a pipe.
2008-07-16Updated to fedora-glibc-20080716T0944cvs/fedora-glibc-2_8_90-9Jakub Jelinek
2008-07-08[BZ #6719]Ulrich Drepper
2008-07-08 Ulrich Drepper <drepper@redhat.com> [BZ #6719] * libio/iosetvbuf.c (_IO_setvbuf): Correctly clear buffering flags when selecting fully-buffered stream. Patch by Wang Xin <wxinee@gmail.com>.
2008-06-12Updated to fedora-glibc-20080612T1619cvs/fedora-glibc-2_8_90-6Jakub Jelinek
2008-05-27Remove useless more "if" tests before "free".Ulrich Drepper
* include/inline-hashtab.h (htab_delete): Likewise. * libio/freopen.c (freopen): Likewise. * libio/freopen64.c (freopen64): Likewise. * locale/programs/ld-collate.c (collate_read): Likewise. * misc/fstab.c (libc_freeres_fn): Likewise. * posix/glob.c (globfree): Likewise.
2008-05-24Updated to fedora-glibc-20080524T2218cvs/fedora-glibc-2_8_90-5Jakub Jelinek
2008-05-24* libio/stdio.h (vscanf): Fix -std=c99 redirect. Jakub Jelinek
* stdio-common/Makefile (tests): Add scanf16 and scanf17. (CFLAGS-scanf17.c): New. * stdio-common/scanf14.c (main): Add fscanf and scanf tests. * stdio-common/scanf15.c (main): Likewise. * stdio-common/scanf16.c: New test. * stdio-common/scanf17.c: New test. 2008-05-24 Jakub Jelinek <jakub@redhat.com> * libio/stdio.h (vscanf): Fix -std=c99 redirect. * stdio-common/Makefile (tests): Add scanf16 and scanf17. (CFLAGS-scanf17.c): New. * stdio-common/scanf14.c (main): Add fscanf and scanf tests. * stdio-common/scanf15.c (main): Likewise. * stdio-common/scanf16.c: New test. * stdio-common/scanf17.c: New test.
2008-04-10Updated to fedora-glibc-20080410T1907Jakub Jelinek
2008-04-09[BZ #5998]Ulrich Drepper
2008-04-09 Ulrich Drepper <drepper@redhat.com> [BZ #5998] * libio/iofwrite.c (_IO_fwrite): Return correct count if flushing in line-buffered stream failed. * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
2008-03-26Updated to fedora-glibc-20080326T1041cvs/fedora-glibc-2_7_90-12Jakub Jelinek
2008-03-19Remove useless "if" before "free".Ulrich Drepper
2008-03-05Updated to fedora-glibc-20080305T0857cvs/fedora-glibc-2_7_90-8Jakub Jelinek
2008-03-05* include/stdio.h (__asprintf_chk, __dprintf_chk,cvs/fedora-glibc-20080305T0857Ulrich Drepper
__obstack_printf_chk): New prototypes. (__vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Likewise. Add libc_hidden_proto. * libio/obprintf.c (_IO_obstack_jumps): No longer static, add attribute_hidden. * libio/bits/stdio-ldbl.h (__asprintf_chk, __dprintf_chk, __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Add __LDBL_REDIR_DECL. * libio/bits/stdio2.h (__asprintf_chk, __dprintf_chk, __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): New prototypes. (asprintf, __asprintf, dprintf, obstack_printf, vasprintf, vdprintf, obstack_vprintf): New inlines. * debug/dprintf_chk.c: New file. * debug/vdprintf_chk.c: New file. * debug/asprintf_chk.c: New file. * debug/vasprintf_chk.c: New file. * debug/obprintf_chk.c: New file. * debug/tst-chk1.c (do_test): Add asprintf and obstack_printf tests. * debug/Versions (__asprintf_chk, __dprintf_chk, __obstack_printf_chk, __vasprintf_chk, __vdprintf_chk, __obstack_vprintf_chk): Export @@GLIBC_2.8. * debug/Makefile: Build asprintf_chk, vasprintf_chk, dprintf_chk, vdprintf_chk and obprintf_chk, set CFLAGS for them. * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): Add libc_hidden_proto. * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk, __nldbl___obstack_vprintf_chk): New prototypes. * sysdeps/ieee754/ldbl-opt/Versions (__nldbl___asprintf_chk, __nldbl___vasprintf_chk, __nldbl___dprintf_chk, __nldbl___vdprintf_chk, __nldbl___obstack_printf_chk, __nldbl___obstack_vprintf_chk): Export @@GLIBC_2.8. * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add asprintf_chk, vasprintf_chk, dprintf_chk, vdprintf_chk, obstack_printf_chk and obstack_vprintf_chk. * sysdeps/ieee754/ldbl-opt/nldbl-obstack_vprintf_chk.c: New file. * sysdeps/ieee754/ldbl-opt/nldbl-dprintf_chk.c: New file. * sysdeps/ieee754/ldbl-opt/nldbl-obstack_printf_chk.c: New file. * sysdeps/ieee754/ldbl-opt/nldbl-asprintf_chk.c: New file. * sysdeps/ieee754/ldbl-opt/nldbl-vdprintf_chk.c: New file. * sysdeps/ieee754/ldbl-opt/nldbl-vasprintf_chk.c: New file.
2008-01-11Updated to fedora-glibc-20080111T0737Jakub Jelinek
2008-01-08(vscanf): Fix definition for loser compilers.Ulrich Drepper
2007-10-14Updated to fedora-glibc-20071014T1847Jakub Jelinek
2007-10-14* include/time.h: Declare __tzset_parse_tz and __tzset_compute.Ulrich Drepper
* time/tzset.c (tzset_internal): Break TZ string parsing out into __tzset_parse_tz and updating of daylight, timezone, tzname into update_vars. (__tz_compute): Renamed from tz_compute. Take additional parameters. (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now happens in __tz_compute. * time/tzfile.c (__tzfile_read): Also read TZ string. (find_transition): Fold into __tzfile_compute. (__tzfile_compute): For times beyond the last transition try to use the TZ string. * timezone/tst-timezone.c: Information in daylight and tzname does change for Asia/Tokyo timezone with more concrete information. Remove the test. * include/stdio.h: Add libc_hidden_proto for ftello. * libio/ftello.c: Add libc_hidden_def.
2007-10-13* libio/Makefile (tests): Add tst-ext2.Ulrich Drepper
* libio/tst-ext2.c: New file.
2007-10-13write-only streams. For read/write streams, check whether weUlrich Drepper
performed a read operation already.
2007-10-13[BZ #4359]Ulrich Drepper
2007-10-13 Ulrich Drepper <drepper@redhat.com> [BZ #4359] * libio/__freading.c (__freading): Don't return true for write-only streams.
2007-09-29Updated to fedora-glibc-20070929T1859cvs/fedora-glibc-2_6_90-16Jakub Jelinek
2007-09-26* misc/sys/cdefs.h (__warndecl, __errordecl): For GCC 4.3+ defineUlrich Drepper
with __warning__/__error__ attributes. (__warnattr): Define. * stdlib/bits/stdlib.h (__realpath_chk_warn, __ptsname_r_chk_warn, __mbstowcs_chk_warn, __wcstombs_chk_warn): New aliases with __warnattr. (realpath, ptsname_r, mbstowcs, wcstombs): Call __*_chk_warn instead of __*_chk if compile time detectable overflow is found. * libio/bits/stdio2.h (__fgets_chk_warn, __fread_chk_warn, __fgets_unlocked_chk_warn, __fread_unlocked_chk_warn): New aliases with __warnattr. (fgets, fread, fgets_unlocked, fread_unlocked): Call __*_chk_warn instead of __*_chk if compile time detectable overflow is found. (__gets_alias): Rename to... (__gets_warn): ... this. Add __warnattr. (gets): Call __gets_warn instead of __gets_alias. * socket/bits/socket2.h (__recv_chk_warn, __recvfrom_chk_warn): New aliases with __warnattr. (recv, recvfrom): Call __*_chk_warn instead of __*_chk if compile time detectable overflow is found. * posix/bits/unistd.h (__read_chk_warn, __pread_chk_warn, __pread64_chk_warn, __readlink_chk_warn, __readlinkat_chk_warn, __getcwd_chk_warn, __confstr_chk_warn, __getgroups_chk_warn, __ttyname_r_chk_warn, __getlogin_r_chk_warn, __gethostname_chk_warn, __getdomainname_chk_warn): New aliases with __warnattr. (read, pread, pread64, readlink, readlinkat, getcwd, confstr, getgroups, ttyname_r, getlogin_r, gethostname, getdomainname): Call __*_chk_warn instead of __*_chk if compile time detectable overflow is found. (__getgroups_chk): Rename argument to __listlen from listlen. (__getwd_alias): Rename to... (__getwd_warn): ... this. Add __warnattr. (getwd): Call __getwd_warn instead of __getwd_alias. * wcsmbs/bits/wchar2.h (__wmemcpy_chk_warn, __wmemmove_chk_warn, __wmempcpy_chk_warn, __wmemset_chk_warn, __wcsncpy_chk_warn, __wcpncpy_chk_warn, __fgetws_chk_warn, __fgetws_unlocked_chk_warn, __mbsrtowcs_chk_warn, __wcsrtombs_chk_warn, __mbsnrtowcs_chk_warn, __wcsnrtombs_chk_warn): New aliases with __warnattr. (wmemcpy, wmemmove, wmempcpy, wmemset, mbsrtowcs, wcsrtombs, mbsnrtowcs, wcsnrtombs): Call __*_chk_warn instead of __*_chk if compile time detectable overflow is found. (wcsncpy, wcpncpy): Likewise. For constant __n fix check whether to use __*_chk or not. (fgetws, fgetws_unlocked): Divide __bos by sizeof (wchar_t), both in comparisons which function should be called and in __*_chk* arguments. Call __*_chk_warn instead of __*_chk if compile time detectable overflow is found. (swprintf, vswprintf): Divide __bos by sizeof (wchar_t) in __*_chk argument. * debug/tst-chk1.c (do_test): Add a few more tests.
2007-09-18Updated to fedora-glibc-20070918T1931cvs/fedora-glibc-2_6_90-14Jakub Jelinek