From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 01 Jun 2017 22:00:38 +0200 (CEST) Received: from mx2.suse.de ([195.135.220.15]:60114 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by eddie.linux-mips.org with ESMTP id S23990557AbdFAUA3Rr67Z (ORCPT ); Thu, 1 Jun 2017 22:00:29 +0200 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 6BE93AAB4; Thu, 1 Jun 2017 20:00:28 +0000 (UTC) Subject: Re: [PATCH] tty: add TIOCGPTPEER ioctl To: Geert Uytterhoeven Cc: Greg Kroah-Hartman , Jiri Slaby , Arnd Bergmann , "linux-kernel@vger.kernel.org" , alpha , Linux MIPS Mailing List , Parisc List , "linuxppc-dev@lists.ozlabs.org" , Linux-sh list , sparclinux , "linux-xtensa@linux-xtensa.org" , Linux-Arch , Christian Brauner , Valentin Rothberg References: <20170601173803.8698-1-asarai@suse.de> From: Aleksa Sarai Message-ID: Date: Fri, 2 Jun 2017 06:00:17 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 58129 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: asarai@suse.de Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips >> --- 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) Probably. The reason I put it here is because it logically is very similar to TIOCGPTN and TIOSPTLCK, but I can move it if the hex order is more important for maintainence. -- Aleksa Sarai Software Engineer (Containers) SUSE Linux GmbH https://www.cyphar.com/