vfs: check userland buffers before reading them.
[haiku.git] / src / system / libroot / os / wait_for_objects.cpp
blob0f9fcb0ede72c06c071eb401ccab04f4d5f09a92
1 /*
2 * Copyright 2007, Ingo Weinhold, bonefish@cs.tu-berlin.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
6 #include <OS.h>
7 #include <syscalls.h>
11 ssize_t
12 wait_for_objects(object_wait_info* infos, int numInfos)
14 return _kern_wait_for_objects(infos, numInfos, 0, 0);
18 ssize_t
19 wait_for_objects_etc(object_wait_info* infos, int numInfos, uint32 flags,
20 bigtime_t timeout)
22 return _kern_wait_for_objects(infos, numInfos, flags, timeout);