summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2017-09-11 22:38:05 +0000
committerRich Felker <dalias@aerifal.cx>2017-11-05 18:41:22 -0500
commit754f66afb76f59bb4c43f303fb9406a3841a448f (patch)
tree08f489821e6779761f345f74e0c8e2afd962d031
parentc35a8bf456ca6ef74e3cc7c4d8f63572bc1e1167 (diff)
downloadmusl-754f66afb76f59bb4c43f303fb9406a3841a448f.tar.gz
musl-754f66afb76f59bb4c43f303fb9406a3841a448f.tar.bz2
musl-754f66afb76f59bb4c43f303fb9406a3841a448f.tar.xz
musl-754f66afb76f59bb4c43f303fb9406a3841a448f.zip
ioctl TIOCGPTPEER from linux v4.13
added for safe opening of peer end of pty in a mount namespace. new in linux commit c6325179238f1d4683edbec53d8322575d76d7e2
-rw-r--r--arch/generic/bits/ioctl.h1
-rw-r--r--arch/mips/bits/ioctl.h1
-rw-r--r--arch/mips64/bits/ioctl.h1
-rw-r--r--arch/mipsn32/bits/ioctl.h1
-rw-r--r--arch/powerpc/bits/ioctl.h1
-rw-r--r--arch/powerpc64/bits/ioctl.h1
-rw-r--r--arch/sh/bits/ioctl.h1
7 files changed, 7 insertions, 0 deletions
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)