From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9870 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH 05/16] add missing TIOC* macros to ioctl.h Date: Sun, 10 Apr 2016 14:11:49 +0200 Message-ID: <17b5a9799be8ccbdf91a887353b036d70d270afa.1460250248.git.nsz@port70.net> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1460290327 22876 80.91.229.3 (10 Apr 2016 12:12:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Apr 2016 12:12:07 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9883-gllmg-musl=m.gmane.org@lists.openwall.com Sun Apr 10 14:12:07 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1apEDm-0007rZ-Rt for gllmg-musl@m.gmane.org; Sun, 10 Apr 2016 14:12:06 +0200 Original-Received: (qmail 20271 invoked by uid 550); 10 Apr 2016 12:12:05 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 20228 invoked from network); 10 Apr 2016 12:12:01 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Xref: news.gmane.org gmane.linux.lib.musl.general:9870 Archived-At: these are defined in linux asm/ioctls.h. --- arch/generic/bits/ioctl.h | 8 ++++++++ arch/mips/bits/ioctl.h | 8 ++++++++ arch/mips64/bits/ioctl.h | 8 ++++++++ arch/powerpc/bits/ioctl.h | 3 +++ arch/sh/bits/ioctl.h | 2 ++ 5 files changed, 29 insertions(+) diff --git a/arch/generic/bits/ioctl.h b/arch/generic/bits/ioctl.h index d5ac69a..649cdfc 100644 --- a/arch/generic/bits/ioctl.h +++ b/arch/generic/bits/ioctl.h @@ -49,12 +49,20 @@ #define TIOCSBRK 0x5427 #define TIOCCBRK 0x5428 #define TIOCGSID 0x5429 +#define TIOCGRS485 0x542E +#define TIOCSRS485 0x542F #define TIOCGPTN 0x80045430 #define TIOCSPTLCK 0x40045431 +#define TIOCGDEV 0x80045432 #define TCGETX 0x5432 #define TCSETX 0x5433 #define TCSETXF 0x5434 #define TCSETXW 0x5435 +#define TIOCSIG 0x40045436 +#define TIOCVHANGUP 0x5437 +#define TIOCGPKT 0x80045438 +#define TIOCGPTLCK 0x80045439 +#define TIOCGEXCL 0x80045440 #define FIONCLEX 0x5450 #define FIOCLEX 0x5451 diff --git a/arch/mips/bits/ioctl.h b/arch/mips/bits/ioctl.h index c414f5c..4e41f2a 100644 --- a/arch/mips/bits/ioctl.h +++ b/arch/mips/bits/ioctl.h @@ -58,8 +58,16 @@ #define TIOCSBRK 0x5427 #define TIOCCBRK 0x5428 #define TIOCGSID 0x7416 +#define TIOCGRS485 _IOR('T', 0x2E, char[32]) +#define TIOCSRS485 _IOWR('T', 0x2F, char[32]) #define TIOCGPTN _IOR('T', 0x30, unsigned int) #define TIOCSPTLCK _IOW('T', 0x31, int) +#define TIOCGDEV _IOR('T', 0x32, unsigned int) +#define TIOCSIG _IOW('T', 0x36, int) +#define TIOCVHANGUP 0x5437 +#define TIOCGPKT _IOR('T', 0x38, int) +#define TIOCGPTLCK _IOR('T', 0x39, int) +#define TIOCGEXCL _IOR('T', 0x40, int) #define TIOCSCTTY 0x5480 #define TIOCGSOFTCAR 0x5481 diff --git a/arch/mips64/bits/ioctl.h b/arch/mips64/bits/ioctl.h index 476b7b7..da43000 100644 --- a/arch/mips64/bits/ioctl.h +++ b/arch/mips64/bits/ioctl.h @@ -58,8 +58,16 @@ #define TIOCSBRK 0x5427 #define TIOCCBRK 0x5428 #define TIOCGSID 0x7416 +#define TIOCGRS485 _IOR('T', 0x2E, char[32]) +#define TIOCSRS485 _IOWR('T', 0x2F, char[32]) #define TIOCGPTN _IOR('T', 0x30, unsigned int) #define TIOCSPTLCK _IOW('T', 0x31, int) +#define TIOCGDEV _IOR('T', 0x32, unsigned int) +#define TIOCSIG _IOW('T', 0x36, int) +#define TIOCVHANGUP 0x5437 +#define TIOCGPKT _IOR('T', 0x38, int) +#define TIOCGPTLCK _IOR('T', 0x39, int) +#define TIOCGEXCL _IOR('T', 0x40, int) #define TIOCSCTTY 0x5480 #define TIOCGSOFTCAR 0x5481 diff --git a/arch/powerpc/bits/ioctl.h b/arch/powerpc/bits/ioctl.h index cf15580..671c633 100644 --- a/arch/powerpc/bits/ioctl.h +++ b/arch/powerpc/bits/ioctl.h @@ -101,6 +101,9 @@ #define TIOCGDEV _IOR('T',0x32, unsigned int) #define TIOCSIG _IOW('T',0x36, int) #define TIOCVHANGUP 0x5437 +#define TIOCGPKT _IOR('T', 0x38, int) +#define TIOCGPTLCK _IOR('T', 0x39, int) +#define TIOCGEXCL _IOR('T', 0x40, int) #define TIOCSERCONFIG 0x5453 #define TIOCSERGWILD 0x5454 diff --git a/arch/sh/bits/ioctl.h b/arch/sh/bits/ioctl.h index 9a87ad3..439f04e 100644 --- a/arch/sh/bits/ioctl.h +++ b/arch/sh/bits/ioctl.h @@ -89,6 +89,8 @@ #define TCSETS2 _IOW('T', 43, char[44]) #define TCSETSW2 _IOW('T', 44, char[44]) #define TCSETSF2 _IOW('T', 45, char[44]) +#define TIOCGRS485 _IOR('T', 46, char[32]) +#define TIOCSRS485 _IOWR('T', 47, char[32]) #define TIOCGPTN _IOR('T', 48, unsigned int) #define TIOCSPTLCK _IOW('T', 49, int) #define TIOCGDEV _IOR('T', 50, unsigned int) -- 2.7.2