diff --git a/src/kernel/core/fs/vfs_select.cpp b/src/kernel/core/fs/vfs_select.cpp index 36adfc4380..5a894c869c 100644 --- a/src/kernel/core/fs/vfs_select.cpp +++ b/src/kernel/core/fs/vfs_select.cpp @@ -1,7 +1,7 @@ -/* -** Copyright 2002-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. -** Distributed under the terms of the Haiku License. -*/ +/* + * Copyright 2002-2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved. + * Distributed under the terms of the MIT License. + */ #include @@ -130,11 +130,6 @@ common_select(int numfds, fd_set *readSet, fd_set *writeSet, fd_set *errorSet, // array position is the same as the fd for select() } - if (count < 1) { - count = B_BAD_VALUE; - goto err; - } - status = acquire_sem_etc(sync.sem, 1, B_CAN_INTERRUPT | (timeout != -1 ? B_RELATIVE_TIMEOUT : 0), timeout); @@ -478,6 +473,10 @@ _kern_poll(struct pollfd *fds, int numfds, bigtime_t timeout) } +// #pragma mark - +// User syscalls + + ssize_t _user_select(int numfds, fd_set *userReadSet, fd_set *userWriteSet, fd_set *userErrorSet, bigtime_t timeout, const sigset_t *userSigMask)