diff options
Diffstat (limited to 'console-client/trans.c')
-rw-r--r-- | console-client/trans.c | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/console-client/trans.c b/console-client/trans.c index 67c84b4e..6949af5e 100644 --- a/console-client/trans.c +++ b/console-client/trans.c @@ -332,9 +332,10 @@ netfs_S_io_seek (struct protid *user, off_t offset, } -error_t -netfs_S_io_select (struct protid *user, mach_port_t reply, - mach_msg_type_name_t replytype, int *type) +static error_t +io_select_common (struct protid *user, mach_port_t reply, + mach_msg_type_name_t replytype, + struct timespec *tsp, int *type) { struct node *np; @@ -344,11 +345,28 @@ netfs_S_io_select (struct protid *user, mach_port_t reply, np = user->po->np; if (np->nn->node && np->nn->node->select) - return np->nn->node->select (user, reply, replytype, type); + return np->nn->node->select (user, reply, replytype, tsp, type); return EOPNOTSUPP; } +error_t +netfs_S_io_select (struct protid *user, mach_port_t reply, + mach_msg_type_name_t replytype, int *type) +{ + return io_select_common (user, reply, replytype, NULL, type); +} + + +error_t +netfs_S_io_select_timeout (struct protid *user, mach_port_t reply, + mach_msg_type_name_t replytype, + struct timespec ts, int *type) +{ + return io_select_common (user, reply, replytype, &ts, type); +} + + /* Delete NAME in DIR (which is locked) for USER. */ error_t netfs_attempt_unlink (struct iouser *user, struct node *dir, |