MFC r273129:
Implement FIODTYPE for master ptys.
This commit is contained in:
parent
0895e1be7f
commit
a9088c78cb
@ -269,6 +269,9 @@ ptsdev_ioctl(struct file *fp, u_long cmd, void *data,
|
||||
int error = 0, sig;
|
||||
|
||||
switch (cmd) {
|
||||
case FIODTYPE:
|
||||
*(int *)data = D_TTY;
|
||||
return (0);
|
||||
case FIONBIO:
|
||||
/* This device supports non-blocking operation. */
|
||||
return (0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user