Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Oct 2014 12:38:27 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273129 - head/sys/kern
Message-ID:  <201410151238.s9FCcRMe018200@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410151238.s9FCcRMe018200>