haiku/src/tests
Simon South dbf060a3f7 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>
2015-11-22 17:59:22 +01:00
..
add-ons Assorted whitespace cleanup and typo fixes. 2015-08-20 21:54:41 +02:00
apps Use libstdc++, libsupc++ and libgcc from gcc_syslibs. 2014-08-13 13:32:44 +02:00
bin Use libstdc++, libsupc++ and libgcc from gcc_syslibs. 2014-08-13 13:32:44 +02:00
kits unittests: Build copied BAppTest files 2015-11-01 14:19:04 +01:00
libs linprog test: fix build. 2014-12-24 11:52:01 +01:00
misc Add script that prints the uptime after waiting for all servers. 2015-08-29 19:15:47 +02:00
servers test_app_server: fix build 2015-11-18 14:04:19 +01:00
system libroot: Add brk() and sbrk(). 2015-11-22 17:59:22 +01:00
ExampleTest.cpp Fixed unit tests build for platforms libbe_test and r5. Only randomly tested 2005-11-09 16:17:31 +00:00
ExampleTest.h + Moved BAutolock and BArchivable over to new testing framework. 2002-07-19 06:45:28 +00:00
ExampleTestAddon.cpp Fixed unit tests build for platforms libbe_test and r5. Only randomly tested 2005-11-09 16:17:31 +00:00
Jamfile tests: Convert a lot of RSRCs to RDEFs. 2015-06-22 15:39:47 -04:00
UnitTester.cpp * indent is obviously only 2 spaces. 2010-11-29 18:51:33 +00:00
UnitTester.h * Build fix for GCC4. 2010-11-29 18:05:32 +00:00
UnitTester.rdef tests: Convert a lot of RSRCs to RDEFs. 2015-06-22 15:39:47 -04:00