Date: Thu, 10 Nov 2011 00:39:56 +0100 From: Giovanni Trematerra <gianni@freebsd.org> To: freebsd-arch@freebsd.org Subject: deprecated TIOCSPGRP and TIOCGPGRP ioctl command Message-ID: <CACfq09210zdar=%2BM40gLoVtZnwLda88T1FJBbLXiy9e3t8-9NQ@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Are they deprecated enough to be removed, now?
FYI FIFO doesn't support them.
--
Gianni
=================================
--- sys/kern/sys_pipe.c (revision 227233)
+++ sys/kern/sys_pipe.c (working copy)
@@ -1304,17 +1304,6 @@ pipe_ioctl(fp, cmd, data, active_cred, td)
*(int *)data = fgetown(&mpipe->pipe_sigio);
break;
- /* This is deprecated, FIOSETOWN should be used instead. */
- case TIOCSPGRP:
- PIPE_UNLOCK(mpipe);
- error = fsetown(-(*(int *)data), &mpipe->pipe_sigio);
- goto out_unlocked;
-
- /* This is deprecated, FIOGETOWN should be used instead. */
- case TIOCGPGRP:
- *(int *)data = -fgetown(&mpipe->pipe_sigio);
- break;
-
default:
error = ENOTTY;
break;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACfq09210zdar=%2BM40gLoVtZnwLda88T1FJBbLXiy9e3t8-9NQ>
