History log of /haiku/src/system/libroot/stubbed/libroot_stubs.c
Revision Date Author Comments
# 9ba45ef9 07-Mar-2019 Jérôme Duval <jerome.duval@gmail.com>

Update libroot stubs.


# e4103b1b 25-Dec-2018 Michael Lotz <mmlr@mlotz.ch>

libroot: Introduce thread specific heap init/exit hooks.

This allows heap implementations to initialize and clean up any thread
specific structures. The current default hoard heap does not use these.

Note that the thread exit hook will not be called for the main thread as
the heap may be needed during process termination (__cxa_finalize for
example).

Change-Id: I703fbd34dec0d9029d619a2125c5b19d8c1933aa
Reviewed-on: https://review.haiku-os.org/799
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# defd975a 06-Jul-2018 Jérôme Duval <jerome.duval@gmail.com>

Update libroot stubs.


# 857d600a 29-Jan-2018 Jérôme Duval <jerome.duval@gmail.com>

Add missing libroot stub on x86 (different from x86_64).


# f57e467b 18-Nov-2017 Jérôme Duval <jerome.duval@gmail.com>

Update libroot stubs.


# 33e68be4 01-Nov-2016 Jérôme Duval <jerome.duval@gmail.com>

Update libroot stubs.


# dbf060a3 29-Oct-2015 Simon South <ssouth@simonsouth.com>

libroot: Add brk() and sbrk().

This commit replaces the placeholder implementation of sbrk(), which
operated on a process' heap, with real implementations of brk() and
sbrk() that adjust a process' program break.

* unistd.h: Add standard definitions of brk() and sbrk(); include
stdint.h for intptr_t.
* thread.cpp: Recognize RLIMIT_AS and RLIMIT_DATA resource limits
(both currently unlimited); order limit identifiers alphabetically.
* arch-specific.cpp: Remove sbrk_hook().
* malloc_debug_api.cpp: Remove sbrk_hook().
* unistd/Jamfile: Build brk.c instead of sbrk.c.
* unistd/brk.c: Add.
* unistd/sbrk.c: Delete (placeholder implementation).
* libroot_stubs.c: Remove sbrk_hook().
* libroot_stubs_legacy.c: Remove sbrk_hook().
* src/tests/.../posix/Jamfile: Build brk_test.c.
* brk_test.c: Add (simple unit test that demonstrates behaviour of
sbrk()).

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>


# f474606e 12-Aug-2015 Michael Lotz <mmlr@mlotz.ch>

libroot_debug: Merge guarded heap into libroot_debug.

The individual debug heap implementations are now exposed via a
structure of function pointers and a common frontend dispatches the
malloc and malloc_debug APIs through them.

The MALLOC_DEBUG environment variable can be used to select the guarded
heap by adding 'g', otherwise the debug heap is used as the default.
Consequently the separate libroot_guarded is not needed anymore and has
been removed.

To allow the use of environment variables this early, init_env_post_heap
has been added and the heap dependent atfork() moved there. This allowed
to fold the code of init_heap_post_env into init_heap so the former has
been removed.


# 445257ff 11-Aug-2014 Oliver Tappe <zooey@hirschkaefer.de>

Fix missing symbols in <stubbed>libroot.so.

* A couple of symbols reuse the same address (via weak symbols), so
we adjust generate_stubs.py accordingly.


# b2883f6a 04-Aug-2014 Oliver Tappe <zooey@hirschkaefer.de>

Add support for building <stubbed>libroot.so.

* <stubbed>libroot.so is a shared library which contains all the symbols
from libroot, but without any code. This library will be required by
the (to be introduced) stage0 of the bootstrap process, in order to
be able to link the shared gcc syslibs (libstdc++.so, libsupc++.so
and libgcc_s.so).


# f474606ee92a7afddb5b3b6350a97ffd31e22c42 12-Aug-2015 Michael Lotz <mmlr@mlotz.ch>

libroot_debug: Merge guarded heap into libroot_debug.

The individual debug heap implementations are now exposed via a
structure of function pointers and a common frontend dispatches the
malloc and malloc_debug APIs through them.

The MALLOC_DEBUG environment variable can be used to select the guarded
heap by adding 'g', otherwise the debug heap is used as the default.
Consequently the separate libroot_guarded is not needed anymore and has
been removed.

To allow the use of environment variables this early, init_env_post_heap
has been added and the heap dependent atfork() moved there. This allowed
to fold the code of init_heap_post_env into init_heap so the former has
been removed.


# 445257ffd662d791b35e94b0065e88f051aa3aee 11-Aug-2014 Oliver Tappe <zooey@hirschkaefer.de>

Fix missing symbols in <stubbed>libroot.so.

* A couple of symbols reuse the same address (via weak symbols), so
we adjust generate_stubs.py accordingly.


# b2883f6a0dc07c455e81e39494645e31d713d7ac 04-Aug-2014 Oliver Tappe <zooey@hirschkaefer.de>

Add support for building <stubbed>libroot.so.

* <stubbed>libroot.so is a shared library which contains all the symbols
from libroot, but without any code. This library will be required by
the (to be introduced) stage0 of the bootstrap process, in order to
be able to link the shared gcc syslibs (libstdc++.so, libsupc++.so
and libgcc_s.so).