svn commit: r273129 - head/sys/kern

Konstantin Belousov kib at FreeBSD.org
Wed Oct 15 12:38:27 UTC 2014


Author: kib
Date: Wed Oct 15 12:38:26 2014
New Revision: 273129
URL: https://svnweb.freebsd.org/changeset/base/273129

Log:
  Implement FIODTYPE for master ptys.
  
  Requested and reviewed by:	bde
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/kern/tty_pts.c

Modified: head/sys/kern/tty_pts.c
==============================================================================
--- head/sys/kern/tty_pts.c	Wed Oct 15 12:37:56 2014	(r273128)
+++ head/sys/kern/tty_pts.c	Wed Oct 15 12:38:26 2014	(r273129)
@@ -262,6 +262,9 @@ ptsdev_ioctl(struct file *fp, u_long cmd
 	int error = 0, sig;
 
 	switch (cmd) {
+	case FIODTYPE:
+		*(int *)data = D_TTY;
+		return (0);
 	case FIONBIO:
 		/* This device supports non-blocking operation. */
 		return (0);


More information about the svn-src-all mailing list