From: Szabolcs Nagy Date: Mon, 11 Sep 2017 22:38:05 +0000 (+0000) Subject: ioctl TIOCGPTPEER from linux v4.13 X-Git-Tag: v1.1.19~64 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=754f66afb76f59bb4c43f303fb9406a3841a448f;p=oweals%2Fmusl.git ioctl TIOCGPTPEER from linux v4.13 added for safe opening of peer end of pty in a mount namespace. new in linux commit c6325179238f1d4683edbec53d8322575d76d7e2 --- diff --git a/arch/generic/bits/ioctl.h b/arch/generic/bits/ioctl.h index 44deb11a..42a8f1a2 100644 --- a/arch/generic/bits/ioctl.h +++ b/arch/generic/bits/ioctl.h @@ -63,6 +63,7 @@ #define TIOCGPKT 0x80045438 #define TIOCGPTLCK 0x80045439 #define TIOCGEXCL 0x80045440 +#define TIOCGPTPEER 0x5441 #define FIONCLEX 0x5450 #define FIOCLEX 0x5451 diff --git a/arch/mips/bits/ioctl.h b/arch/mips/bits/ioctl.h index 71394449..b8f77cb5 100644 --- a/arch/mips/bits/ioctl.h +++ b/arch/mips/bits/ioctl.h @@ -68,6 +68,7 @@ #define TIOCGPKT _IOR('T', 0x38, int) #define TIOCGPTLCK _IOR('T', 0x39, int) #define TIOCGEXCL _IOR('T', 0x40, int) +#define TIOCGPTPEER _IO('T', 0x41) #define TIOCSCTTY 0x5480 #define TIOCGSOFTCAR 0x5481 diff --git a/arch/mips64/bits/ioctl.h b/arch/mips64/bits/ioctl.h index 71394449..b8f77cb5 100644 --- a/arch/mips64/bits/ioctl.h +++ b/arch/mips64/bits/ioctl.h @@ -68,6 +68,7 @@ #define TIOCGPKT _IOR('T', 0x38, int) #define TIOCGPTLCK _IOR('T', 0x39, int) #define TIOCGEXCL _IOR('T', 0x40, int) +#define TIOCGPTPEER _IO('T', 0x41) #define TIOCSCTTY 0x5480 #define TIOCGSOFTCAR 0x5481 diff --git a/arch/mipsn32/bits/ioctl.h b/arch/mipsn32/bits/ioctl.h index 71394449..b8f77cb5 100644 --- a/arch/mipsn32/bits/ioctl.h +++ b/arch/mipsn32/bits/ioctl.h @@ -68,6 +68,7 @@ #define TIOCGPKT _IOR('T', 0x38, int) #define TIOCGPTLCK _IOR('T', 0x39, int) #define TIOCGEXCL _IOR('T', 0x40, int) +#define TIOCGPTPEER _IO('T', 0x41) #define TIOCSCTTY 0x5480 #define TIOCGSOFTCAR 0x5481 diff --git a/arch/powerpc/bits/ioctl.h b/arch/powerpc/bits/ioctl.h index d3771dd3..47586234 100644 --- a/arch/powerpc/bits/ioctl.h +++ b/arch/powerpc/bits/ioctl.h @@ -104,6 +104,7 @@ #define TIOCGPKT _IOR('T', 0x38, int) #define TIOCGPTLCK _IOR('T', 0x39, int) #define TIOCGEXCL _IOR('T', 0x40, int) +#define TIOCGPTPEER _IO('T', 0x41) #define TIOCSERCONFIG 0x5453 #define TIOCSERGWILD 0x5454 diff --git a/arch/powerpc64/bits/ioctl.h b/arch/powerpc64/bits/ioctl.h index d3771dd3..47586234 100644 --- a/arch/powerpc64/bits/ioctl.h +++ b/arch/powerpc64/bits/ioctl.h @@ -104,6 +104,7 @@ #define TIOCGPKT _IOR('T', 0x38, int) #define TIOCGPTLCK _IOR('T', 0x39, int) #define TIOCGEXCL _IOR('T', 0x40, int) +#define TIOCGPTPEER _IO('T', 0x41) #define TIOCSERCONFIG 0x5453 #define TIOCSERGWILD 0x5454 diff --git a/arch/sh/bits/ioctl.h b/arch/sh/bits/ioctl.h index 15256c51..3c7ab4bb 100644 --- a/arch/sh/bits/ioctl.h +++ b/arch/sh/bits/ioctl.h @@ -95,6 +95,7 @@ #define TIOCGPKT _IOR('T', 56, int) #define TIOCGPTLCK _IOR('T', 57, int) #define TIOCGEXCL _IOR('T', 64, int) +#define TIOCGPTPEER _IO('T', 0x41) #define TIOCSERCONFIG _IO('T', 83) #define TIOCSERGWILD _IOR('T', 84, int)