1998 |
trivfs_S_io_select (struct trivfs_protid *cred, |
trivfs_S_io_select (struct trivfs_protid *cred, |
1999 |
mach_port_t reply, |
mach_port_t reply, |
2000 |
mach_msg_type_name_t reply_type, |
mach_msg_type_name_t reply_type, |
2001 |
int *type, |
int *type) |
|
int *idtag) |
|
2002 |
{ |
{ |
2003 |
if (!cred) |
if (!cred) |
2004 |
return EOPNOTSUPP; |
return EOPNOTSUPP; |
2005 |
|
|
2006 |
if (cred->pi.class == pty_class) |
if (cred->pi.class == pty_class) |
2007 |
return pty_io_select (cred, reply, type, idtag); |
return pty_io_select (cred, reply, type); |
2008 |
|
|
2009 |
if ((cred->po->openmodes & O_READ) == 0) |
if ((cred->po->openmodes & O_READ) == 0) |
2010 |
*type &= ~SELECT_READ; |
*type &= ~SELECT_READ; |