Adapt to sel* changes

This commit is contained in:
martin 2008-03-24 19:40:18 +00:00
parent 58f7b5e1f3
commit 99c43f077e
2 changed files with 29 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: emul.c,v 1.34 2008/03/23 14:12:39 yamt Exp $ */
/* $NetBSD: emul.c,v 1.35 2008/03/24 19:40:18 martin Exp $ */
/*
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
@ -34,6 +34,7 @@
#include <sys/null.h>
#include <sys/vnode.h>
#include <sys/stat.h>
#include <sys/select.h>
#include <sys/syslog.h>
#include <sys/namei.h>
#include <sys/kauth.h>
@ -524,3 +525,29 @@ calc_cache_size(struct vm_map *map, int pct)
}
return t;
}
int
seltrue(dev_t dev, int events, struct lwp *l)
{
return (events & (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM));
}
void
selrecord(lwp_t *selector, struct selinfo *sip)
{
}
void
selinit(struct selinfo *sip)
{
}
void
selnotify(struct selinfo *sip, int events, long knhint)
{
}
void
seldestroy(struct selinfo *sip)
{
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: rump.c,v 1.41 2008/03/22 19:27:23 ad Exp $ */
/* $NetBSD: rump.c,v 1.42 2008/03/24 19:40:18 martin Exp $ */
/*
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
@ -127,7 +127,6 @@ rump_init()
vfsinit();
bufinit();
fd_sys_init();
selsysinit(&rump_cpu);
rumpvfs_init();