Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Oct 2014 09:04:56 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r273460 - stable/10/sys/kern
Message-ID:  <201410220904.s9M94uUH034077@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Wed Oct 22 09:04:56 2014
New Revision: 273460
URL: https://svnweb.freebsd.org/changeset/base/273460

Log:
  MFC r273129:
  Implement FIODTYPE for master ptys.

Modified:
  stable/10/sys/kern/tty_pts.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/kern/tty_pts.c
==============================================================================
--- stable/10/sys/kern/tty_pts.c	Wed Oct 22 08:59:23 2014	(r273459)
+++ stable/10/sys/kern/tty_pts.c	Wed Oct 22 09:04:56 2014	(r273460)
@@ -269,6 +269,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?201410220904.s9M94uUH034077>