deprecated TIOCSPGRP and TIOCGPGRP ioctl command

Giovanni Trematerra gianni at freebsd.org
Thu Nov 10 00:07:26 UTC 2011


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;


More information about the freebsd-arch mailing list