7332005370
Change-Id: Ifd6cb7082dd528f1698a0ca070de447aad85ba60
28 lines
621 B
C
28 lines
621 B
C
#include <sys/cdefs.h>
|
|
#include <lib.h>
|
|
#include "namespace.h"
|
|
|
|
#include <string.h>
|
|
#include <sys/time.h>
|
|
#include <sys/select.h>
|
|
|
|
int select(int nfds,
|
|
fd_set *readfds, fd_set *writefds, fd_set *errorfds,
|
|
struct timeval *timeout)
|
|
{
|
|
message m;
|
|
|
|
memset(&m, 0, sizeof(m));
|
|
m.m_lc_vfs_select.nfds = nfds;
|
|
m.m_lc_vfs_select.readfds = readfds;
|
|
m.m_lc_vfs_select.writefds = writefds;
|
|
m.m_lc_vfs_select.errorfds = errorfds;
|
|
m.m_lc_vfs_select.timeout = (vir_bytes)timeout;
|
|
|
|
return (_syscall(VFS_PROC_NR, VFS_SELECT, &m));
|
|
}
|
|
|
|
|
|
#if defined(__minix) && defined(__weak_alias)
|
|
__weak_alias(select, __select50)
|
|
#endif
|