* Changed some parameters of VM syscalls from int to uint32, mostly for sake
of consistency. * Moved the B_OVERCOMMITTING_AREA flag from B_KERNEL_AREA_FLAGS to B_USER_AREA_FLAGS, since we really allow it to be passed from userland. * Most VM syscalls check the provided protection against B_USER_AREA_FLAGS instead of B_USER_PROTECTION, now. This way they allow for B_OVERCOMMITTING_AREA as well. * _user_map_file(), _user_set_memory_protection(): Check the protection like the other syscalls do and use fix_protection() instead of doing that manually. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36572 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -148,14 +148,14 @@ area_id _user_create_area(const char *name, void **address, uint32 addressSpec,
|
||||
size_t size, uint32 lock, uint32 protection);
|
||||
status_t _user_delete_area(area_id area);
|
||||
|
||||
area_id _user_map_file(const char *uname, void **uaddress, int addressSpec,
|
||||
size_t size, int protection, int mapping, bool unmapAddressRange,
|
||||
int fd, off_t offset);
|
||||
area_id _user_map_file(const char *uname, void **uaddress, uint32 addressSpec,
|
||||
size_t size, uint32 protection, uint32 mapping,
|
||||
bool unmapAddressRange, int fd, off_t offset);
|
||||
status_t _user_unmap_memory(void *address, size_t size);
|
||||
status_t _user_set_memory_protection(void* address, size_t size,
|
||||
int protection);
|
||||
status_t _user_sync_memory(void *address, size_t size, int flags);
|
||||
status_t _user_memory_advice(void* address, size_t size, int advice);
|
||||
uint32 protection);
|
||||
status_t _user_sync_memory(void *address, size_t size, uint32 flags);
|
||||
status_t _user_memory_advice(void* address, size_t size, uint32 advice);
|
||||
|
||||
area_id _user_area_for(void *address);
|
||||
area_id _user_find_area(const char *name);
|
||||
|
||||
Reference in New Issue
Block a user