diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-06-02 11:59:28 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-06-02 11:59:28 +0200 |
commit | 91b6eb1140eda6bab324821ee3785e5d0ca155b8 (patch) | |
tree | c8b630c412611a9b9f5e600e8824661f403bfa7f /ChangeLog | |
parent | 09103e40252454e906a0b8543a142fc96b4c17c1 (diff) | |
download | glibc-91b6eb1140eda6bab324821ee3785e5d0ca155b8.zip glibc-91b6eb1140eda6bab324821ee3785e5d0ca155b8.tar.gz glibc-91b6eb1140eda6bab324821ee3785e5d0ca155b8.tar.bz2 |
Add internal facility for dynamic array handling
This is intended as a type-safe alternative to obstacks and
hand-written realloc constructs. The implementation avoids
writing function pointers to the heap.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -1,3 +1,40 @@ +2017-06-02 Florian Weimer <fweimer@redhat.com> + + * malloc/Makefile (routines): Add dynarray_at_failure, + dynarray_emplace_enlarge, dynarray_finalize. + (tests-internal): Add tst-dynarray, tst-dynarray-fail, + tst-dynarray-at-fail. + (tests-srcs): Add tst-dynarray, tst-dynarray-fail. + (tests-special): Add tst-dynarray-mem.out, + tst-dynarray-mem-fail.out. + (tst-dynarray-ENV, tst-dynarray-fail-ENV): Set. + (tst-dynarray-mem.out, tst-dynarray-fail-mem.out): Generate using + mtrace. + * malloc/Versions (__libc_dynarray_at_failure) + (__libc_dynarray_emplace_enlarge, __libc_dynarray_finalize) + (__libc_dynarray_resize, __libc_dynarray_resize_clear): Export as + GLIBC_PRIVATE. + * malloc/dynarray.h: New file. + * malloc/dynarray-skeleton.c: Likewise. + * malloc/dynarray_at_failure.c: Likewise. + * malloc/dynarray_emplace_enlarge.c: Likewise. + * malloc/dynarray_finalize.c: Likewise. + * malloc/dynarray_resize.c: Likewise. + * malloc/dynarray_resize_clear.c: Likewise. + * malloc/tst-dynarray.c: Likewise. + * malloc/tst-dynarray-fail.c: Likewise. + * malloc/tst-dynarray-at-fail.c: Likewise. + * malloc/tst-dynarray-shared.h: Likewise. + * support/Makefile (libsupport-routines): Add + support_capture_subprocess, xdup2, xpipe. + (tests): Add tst-support_capture_subprocess. + * support/capture_subprocess.h: New file. + * support/support_capture_subprocess.c: Likewise. + * support/tst-support_capture_subprocess.c: Likewise. + * support/xdup2.c: Likewise. + * support/xpipe.c: Likewise. + * support/xunistd.h (xdup2, xpipe): Declare. + 2017-06-01 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com> * stdlib/gmp-impl.h: Include sys/param.h instead of redefining the |