This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix BZ #16734 (fopen calls mmap to allocate buffers)


Greetings,

Previous discussion of this patch:
https://sourceware.org/ml/libc-alpha/2015-02/msg00427.html

Now that all the test failures exposed by previous patch have been
fixed, it's time to do it for realz.

Tested on Linux/x86_64, no new failures.

Thanks,


2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>

        [BZ #16734]
        * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
        (FREE_BUF): Delete.
        * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
        * libio/genops.c (_IO_setb): Use malloc and free directly.
        (_IO_default_doallocate, _IO_default_finish): Likewise.
        ( _IO_unbuffer_all): Likewise.
        ( libc_freeres_fn): Likewise.
        * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
        * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
        * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
        (_IO_wdefault_doallocate): Likewise.



-- 
Paul Pluzhnikov

Attachment: pr16734-20150808.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]