5af32e7526
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12359 a95241bf-73f2-0310-859d-f6bbb57e9c96
81 lines
1.4 KiB
C
81 lines
1.4 KiB
C
/*
|
|
** Copyright 2002, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
|
** Distributed under the terms of the OpenBeOS License.
|
|
*/
|
|
|
|
|
|
#include <OS.h>
|
|
#include "syscalls.h"
|
|
|
|
|
|
area_id
|
|
create_area(const char *name, void **address, uint32 addressSpec, size_t size,
|
|
uint32 lock, uint32 protection)
|
|
{
|
|
return _kern_create_area(name, address, addressSpec, size, lock, protection);
|
|
}
|
|
|
|
|
|
area_id
|
|
clone_area(const char *name, void **address, uint32 addressSpec,
|
|
uint32 protection, area_id sourceArea)
|
|
{
|
|
return _kern_clone_area(name, address, addressSpec, protection, sourceArea);
|
|
}
|
|
|
|
|
|
area_id
|
|
find_area(const char *name)
|
|
{
|
|
return _kern_find_area(name);
|
|
}
|
|
|
|
|
|
area_id
|
|
area_for(void *address)
|
|
{
|
|
return _kern_area_for(address);
|
|
}
|
|
|
|
|
|
status_t
|
|
delete_area(area_id id)
|
|
{
|
|
return _kern_delete_area(id);
|
|
}
|
|
|
|
|
|
status_t
|
|
resize_area(area_id id, size_t newSize)
|
|
{
|
|
return _kern_resize_area(id, newSize);
|
|
}
|
|
|
|
|
|
status_t
|
|
set_area_protection(area_id id, uint32 protection)
|
|
{
|
|
return _kern_set_area_protection(id, protection);
|
|
}
|
|
|
|
|
|
status_t
|
|
_get_area_info(area_id id, area_info *areaInfo, size_t size)
|
|
{
|
|
// size is not yet used, but may, if area_info changes
|
|
(void)size;
|
|
|
|
return _kern_get_area_info(id, areaInfo);
|
|
}
|
|
|
|
|
|
status_t
|
|
_get_next_area_info(team_id team, int32 *cookie, area_info *areaInfo, size_t size)
|
|
{
|
|
// size is not yet used, but may, if area_info changes
|
|
(void)size;
|
|
|
|
return _kern_get_next_area_info(team, cookie, areaInfo);
|
|
}
|
|
|