[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMuHMdXkaWg70OidDi0_xALbzwZ+o0eEVEzT5U_6HdewBs4WwA@mail.gmail.com>
Date: Thu, 1 Jun 2017 20:46:29 +0200
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Aleksa Sarai <asarai@...e.de>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jiri Slaby <jslaby@...e.com>, Arnd Bergmann <arnd@...db.de>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
alpha <linux-alpha@...r.kernel.org>,
Linux MIPS Mailing List <linux-mips@...ux-mips.org>,
Parisc List <linux-parisc@...r.kernel.org>,
"linuxppc-dev@...ts.ozlabs.org" <linuxppc-dev@...ts.ozlabs.org>,
Linux-sh list <linux-sh@...r.kernel.org>,
sparclinux <sparclinux@...r.kernel.org>,
"linux-xtensa@...ux-xtensa.org" <linux-xtensa@...ux-xtensa.org>,
Linux-Arch <linux-arch@...r.kernel.org>,
Christian Brauner <christian.brauner@...ntu.com>,
Valentin Rothberg <vrothberg@...e.com>
Subject: Re: [PATCH] tty: add TIOCGPTPEER ioctl
Hi Aleksa,
On Thu, Jun 1, 2017 at 7:38 PM, Aleksa Sarai <asarai@...e.de> wrote:
> --- a/arch/alpha/include/uapi/asm/ioctls.h
> +++ b/arch/alpha/include/uapi/asm/ioctls.h
> @@ -94,6 +94,7 @@
> #define TIOCSRS485 _IOWR('T', 0x2F, struct serial_rs485)
> #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
> #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
> +#define TIOCGPTPEER _IOR('T', 0x41, int) /* Safely open the slave */
Shouldn't the list of definitions be kept sorted, by hex number?
(everywhere)
> #define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get primary device node of /dev/console */
> #define TIOCSIG _IOW('T',0x36, int) /* Generate signal on Pty slave */
> #define TIOCVHANGUP 0x5437
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Powered by blists - more mailing lists