* Added a "flags" parameter to vm_create_anonymous_area() and

create_area_etc().
* When the new flag CREATE_AREA_DONT_WAIT is specified, the functions
  don't wait for memory or pages to become available. They fail
  immediately instead.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27117 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2008-08-21 22:50:11 +00:00
parent 2e8e6c9c6e
commit 1e90630527
6 changed files with 40 additions and 21 deletions
+1 -1
View File
@@ -1470,7 +1470,7 @@ elf_load_user_image(const char *path, struct team *team, int flags,
regionAddress += fileUpperBound;
id = create_area_etc(team->id, regionName,
(void **)&regionAddress, B_EXACT_ADDRESS, bssSize,
B_NO_LOCK, B_READ_AREA | B_WRITE_AREA);
B_NO_LOCK, B_READ_AREA | B_WRITE_AREA, 0);
if (id < B_OK) {
dprintf("error allocating bss area: %s!\n", strerror(id));
status = B_NOT_AN_EXECUTABLE;