Implement FIODTYPE for master ptys.
Requested and reviewed by: bde Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
4cdc52bdef
commit
f821fad417
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=273129
@ -262,6 +262,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…
Reference in New Issue
Block a user