mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Margit Schubert-While <margit@margit.com>
To: linux-kernel@vger.kernel.org
Subject: Linux 2.4.19 patch for Suse compatibility
Date: Tue, 19 Nov 2002 12:34:24 +0100	[thread overview]
Message-ID: <4.3.2.7.2.20021119122403.00b50d70@mail.dns-host.com> (raw)

Hi,
	Below is a patch to include an ioctl that Suse kernels use
	at bootup. (Against vanilla 2.4.19)
	Comments ? Can it be included in 2.4.20(-rc*) ?

	Margit

diff -ur /tmp/linux-2.4.19/include/asm-alpha/ioctls.h 
/usr/src/linux/include/asm-alpha/ioctls.h
--- /tmp/linux-2.4.19/include/asm-alpha/ioctls.h        2001-04-14 
05:26:07.000000000 +0200
+++ /usr/src/linux/include/asm-alpha/ioctls.h   2002-11-14 
10:06:16.000000000 +0100
@@ -91,6 +92,7 @@
  #define TIOCGSID       0x5429  /* Return the session ID of FD */
  #define TIOCGPTN       _IOR('T',0x30, unsigned int) /* Get Pty Number (of 
pty-mux device) */
  #define TIOCSPTLCK     _IOW('T',0x31, int)  /* Lock/unlock Pty */
+#define TIOCGDEV       _IOR('T',0x32, unsigned int) /* Get real dev no 
below /dev/console */

  #define TIOCSERCONFIG  0x5453
  #define TIOCSERGWILD   0x5454
diff -ur /tmp/linux-2.4.19/include/asm-arm/ioctls.h 
/usr/src/linux/include/asm-arm/ioctls.h
--- /tmp/linux-2.4.19/include/asm-arm/ioctls.h  2001-02-09 
01:32:44.000000000 +0100
+++ /usr/src/linux/include/asm-arm/ioctls.h     2002-11-14 
10:06:16.000000000 +0100
@@ -49,6 +49,7 @@
  #define TIOCGSID       0x5429  /* Return the session ID of FD */
  #define TIOCGPTN       _IOR('T',0x30, unsigned int) /* Get Pty Number (of 
pty-mux device) */
  #define TIOCSPTLCK     _IOW('T',0x31, int)  /* Lock/unlock Pty */
+#define TIOCGDEV       _IOR('T',0x32, unsigned int) /* Get real dev no 
below /dev/console */

  #define FIONCLEX       0x5450  /* these numbers need to be adjusted. */
  #define FIOCLEX                0x5451
diff -ur /tmp/linux-2.4.19/include/asm-i386/ioctls.h 
/usr/src/linux/include/asm-i386/ioctls.h
--- /tmp/linux-2.4.19/include/asm-i386/ioctls.h 2002-08-03 
02:39:45.000000000 +0200
+++ /usr/src/linux/include/asm-i386/ioctls.h    2002-11-14 
10:06:16.000000000 +0100
@@ -49,6 +49,7 @@
  #define TIOCGSID       0x5429  /* Return the session ID of FD */
  #define TIOCGPTN       _IOR('T',0x30, unsigned int) /* Get Pty Number (of 
pty-mux device) */
  #define TIOCSPTLCK     _IOW('T',0x31, int)  /* Lock/unlock Pty */
+#define TIOCGDEV       _IOR('T',0x32, unsigned int) /* Get real dev no 
below /dev/console */

  #define FIONCLEX       0x5450  /* these numbers need to be adjusted. */
  #define FIOCLEX                0x5451
diff -ur /tmp/linux-2.4.19/include/asm-ia64/ioctls.h 
/usr/src/linux/include/asm-ia64/ioctls.h
--- /tmp/linux-2.4.19/include/asm-ia64/ioctls.h 2000-02-07 
03:42:40.000000000 +0100
+++ /usr/src/linux/include/asm-ia64/ioctls.h    2002-11-14 
10:06:16.000000000 +0100
@@ -54,6 +54,7 @@
  #define TIOCGSID       0x5429  /* Return the session ID of FD */
  #define TIOCGPTN       _IOR('T',0x30, unsigned int) /* Get Pty Number (of 
pty-mux device) */
  #define TIOCSPTLCK     _IOW('T',0x31, int)  /* Lock/unlock Pty */
+#define TIOCGDEV       _IOR('T',0x32, unsigned int) /* Get real dev no 
below /dev/console */

  #define FIONCLEX       0x5450  /* these numbers need to be adjusted. */
  #define FIOCLEX                0x5451
diff -ur /tmp/linux-2.4.19/include/asm-m68k/ioctls.h 
/usr/src/linux/include/asm-m68k/ioctls.h
--- /tmp/linux-2.4.19/include/asm-m68k/ioctls.h 1998-02-13 
01:25:04.000000000 +0100
+++ /usr/src/linux/include/asm-m68k/ioctls.h    2002-11-14 
10:06:16.000000000 +0100
@@ -49,6 +49,7 @@
  #define TIOCGSID       0x5429  /* Return the session ID of FD */
  #define TIOCGPTN       _IOR('T',0x30, unsigned int) /* Get Pty Number (of 
pty-mux device) */
  #define TIOCSPTLCK     _IOW('T',0x31, int)  /* Lock/unlock Pty */
+#define TIOCGDEV       _IOR('T',0x32, unsigned int) /* Get real dev no 
below /dev/console */

  #define FIONCLEX       0x5450  /* these numbers need to be adjusted. */
  #define FIOCLEX                0x5451
diff -ur /tmp/linux-2.4.19/include/asm-mips/ioctls.h 
/usr/src/linux/include/asm-mips/ioctls.h
--- /tmp/linux-2.4.19/include/asm-mips/ioctls.h 2001-09-09 
19:43:01.000000000 +0200
+++ /usr/src/linux/include/asm-mips/ioctls.h    2002-11-14 
10:06:16.000000000 +0100
@@ -89,6 +89,7 @@
  #define TIOCGSID       0x7416  /* Return the session ID of FD */
  #define TIOCGPTN       _IOR('T',0x30, unsigned int) /* Get Pty Number (of 
pty-mux device) */
  #define TIOCSPTLCK     _IOW('T',0x31, int)  /* Lock/unlock Pty */
+#define TIOCGDEV       _IOR('T',0x32, unsigned int) /* Get real dev no 
below /dev/console */

  #define TIOCSERCONFIG  0x5488
  #define TIOCSERGWILD   0x5489
diff -ur /tmp/linux-2.4.19/include/asm-mips64/ioctls.h 
/usr/src/linux/include/asm-mips64/ioctls.h
--- /tmp/linux-2.4.19/include/asm-mips64/ioctls.h       2001-09-09 
19:43:02.000000000 +0200
+++ /usr/src/linux/include/asm-mips64/ioctls.h  2002-11-14 
10:06:16.000000000 +0100
@@ -89,6 +89,7 @@
  #define TIOCGSID       0x7416  /* Return the session ID of FD */
  #define TIOCGPTN       _IOR('T',0x30, unsigned int) /* Get Pty Number (of 
pty-mux device) */
  #define TIOCSPTLCK     _IOW('T',0x31, int)  /* Lock/unlock Pty */
+#define TIOCGDEV       _IOR('T',0x32, unsigned int) /* Get real dev no 
below /dev/console */

  #define TIOCSERCONFIG  0x5488
  #define TIOCSERGWILD   0x5489
diff -ur /tmp/linux-2.4.19/include/asm-ppc/ioctls.h 
/usr/src/linux/include/asm-ppc/ioctls.h
--- /tmp/linux-2.4.19/include/asm-ppc/ioctls.h  2001-05-22 
00:02:06.000000000 +0200
+++ /usr/src/linux/include/asm-ppc/ioctls.h     2002-11-14 
10:06:16.000000000 +0100
@@ -92,6 +92,7 @@
  #define TIOCGSID       0x5429  /* Return the session ID of FD */
  #define TIOCGPTN       _IOR('T',0x30, unsigned int) /* Get Pty Number (of 
pty-mux device) */
  #define TIOCSPTLCK     _IOW('T',0x31, int)  /* Lock/unlock Pty */
+#define TIOCGDEV       _IOR('T',0x32, unsigned int) /* Get real dev no 
below /dev/console */

  #define TIOCSERCONFIG  0x5453
  #define TIOCSERGWILD   0x5454
diff -ur /tmp/linux-2.4.19/include/asm-ppc64/ioctls.h 
/usr/src/linux/include/asm-ppc64/ioctls.h
--- /tmp/linux-2.4.19/include/asm-ppc64/ioctls.h        2002-08-03 
02:39:45.000000000 +0200
+++ /usr/src/linux/include/asm-ppc64/ioctls.h   2002-11-14 
10:06:16.000000000 +0100
@@ -96,6 +96,7 @@
  #define TIOCGSID       0x5429  /* Return the session ID of FD */
  #define TIOCGPTN       _IOR('T',0x30, unsigned int) /* Get Pty Number (of 
pty-mux device) */
  #define TIOCSPTLCK     _IOW('T',0x31, int)  /* Lock/unlock Pty */
+#define TIOCGDEV       _IOR('T',0x32, unsigned int) /* Get real dev no 
below /dev/console */

  #define TIOCSERCONFIG  0x5453
  #define TIOCSERGWILD   0x5454
diff -ur /tmp/linux-2.4.19/include/asm-s390/ioctls.h 
/usr/src/linux/include/asm-s390/ioctls.h
--- /tmp/linux-2.4.19/include/asm-s390/ioctls.h 2001-02-13 
23:13:44.000000000 +0100
+++ /usr/src/linux/include/asm-s390/ioctls.h    2002-11-14 
10:06:16.000000000 +0100
@@ -57,6 +57,7 @@
  #define TIOCGSID       0x5429  /* Return the session ID of FD */
  #define TIOCGPTN       _IOR('T',0x30, unsigned int) /* Get Pty Number (of 
pty-mux device) */
  #define TIOCSPTLCK     _IOW('T',0x31, int)  /* Lock/unlock Pty */
+#define TIOCGDEV       _IOR('T',0x32, unsigned int) /* Get real dev no 
below /dev/console */

  #define FIONCLEX       0x5450  /* these numbers need to be adjusted. */
  #define FIOCLEX                0x5451
diff -ur /tmp/linux-2.4.19/include/asm-s390x/ioctls.h 
/usr/src/linux/include/asm-s390x/ioctls.h
--- /tmp/linux-2.4.19/include/asm-s390x/ioctls.h        2001-02-13 
23:13:44.000000000 +0100
+++ /usr/src/linux/include/asm-s390x/ioctls.h   2002-11-14 
10:06:16.000000000 +0100
@@ -57,6 +57,7 @@
  #define TIOCGSID       0x5429  /* Return the session ID of FD */
  #define TIOCGPTN       _IOR('T',0x30, unsigned int) /* Get Pty Number (of 
pty-mux device) */
  #define TIOCSPTLCK     _IOW('T',0x31, int)  /* Lock/unlock Pty */
+#define TIOCGDEV       _IOR('T',0x32, unsigned int) /* Get real dev no 
below /dev/console */

  #define FIONCLEX       0x5450  /* these numbers need to be adjusted. */
  #define FIOCLEX                0x5451
diff -ur /tmp/linux-2.4.19/include/asm-sh/ioctls.h 
/usr/src/linux/include/asm-sh/ioctls.h
--- /tmp/linux-2.4.19/include/asm-sh/ioctls.h   1999-11-06 
19:40:31.000000000 +0100
+++ /usr/src/linux/include/asm-sh/ioctls.h      2002-11-14 
10:06:16.000000000 +0100
@@ -80,6 +81,7 @@
  #define TIOCGSID       _IOR('T', 41, pid_t) /* 0x5429 */ /* Return the 
session ID of FD */
  #define TIOCGPTN       _IOR('T',0x30, unsigned int) /* Get Pty Number (of 
pty-mux device) */
  #define TIOCSPTLCK     _IOW('T',0x31, int)  /* Lock/unlock Pty */
+#define TIOCGDEV       _IOR('T',0x32, unsigned int) /* Get real dev no 
below /dev/console */

  #define TIOCSERCONFIG  _IO('T', 83) /* 0x5453 */
  #define TIOCSERGWILD   _IOR('T', 84,  int) /* 0x5454 */
diff -ur /tmp/linux-2.4.19/include/asm-sparc/ioctls.h 
/usr/src/linux/include/asm-sparc/ioctls.h
--- /tmp/linux-2.4.19/include/asm-sparc/ioctls.h        2002-08-03 
02:39:45.000000000 +0200
+++ /usr/src/linux/include/asm-sparc/ioctls.h   2002-11-14 
10:06:16.000000000 +0100
@@ -99,6 +100,7 @@
  #define TIOCSSERIAL    0x541F
  #define TCSBRKP                0x5425
  #define TIOCTTYGSTRUCT 0x5426
+#define TIOCGDEV       _IOR('T',0x32, unsigned int) /* Get real dev no 
below /dev/console */
  #define TIOCSERCONFIG  0x5453
  #define TIOCSERGWILD   0x5454
  #define TIOCSERSWILD   0x5455
diff -ur /tmp/linux-2.4.19/include/asm-sparc64/ioctls.h 
/usr/src/linux/include/asm-sparc64/ioctls.h
--- /tmp/linux-2.4.19/include/asm-sparc64/ioctls.h      2002-08-03 
02:39:45.000000000 +0200
+++ /usr/src/linux/include/asm-sparc64/ioctls.h 2002-11-14 
10:06:16.000000000 +0100
@@ -100,6 +101,7 @@
  #define TIOCSSERIAL    0x541F
  #define TCSBRKP                0x5425
  #define TIOCTTYGSTRUCT 0x5426
+#define TIOCGDEV       _IOR('T',0x32, unsigned int) /* Get real dev no 
below /dev/console */
  #define TIOCSERCONFIG  0x5453
  #define TIOCSERGWILD   0x5454
  #define TIOCSERSWILD   0x5455
diff -u /tmp/linux-2.4.19/drivers/char/tty_io.c 
/usr/src/linux/drivers/char/tty_io.c
--- /tmp/linux-2.4.19/drivers/char/tty_io.c     2002-08-03 
02:39:43.000000000 +0200
+++ /usr/src/linux/drivers/char/tty_io.c        2002-11-14 
10:06:34.000000000 +0100
@@ -1765,7 +1806,8 @@
  #endif
                 case TIOCTTYGSTRUCT:
                         return tiocttygstruct(tty, (struct tty_struct *) arg);
-
+               case TIOCGDEV:
+                       return put_user (kdev_t_to_nr (real_tty->device), 
(unsigned int*) arg);
                 /*
                  * Break handling
                  */


             reply	other threads:[~2002-11-19 11:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-19 11:34 Margit Schubert-While [this message]
2002-11-19 12:55 ` Alan Cox
     [not found] <4.3.2.7.2.20021119122403.00b50d70@mail.dns-host.com.suse.lists.linux.kernel>
     [not found] ` <1037710510.11563.5.camel@irongate.swansea.linux.org.uk.suse.lists.linux.kernel>
2002-11-19 12:48   ` Andi Kleen
2002-11-19 13:32     ` Rik van Riel
2002-11-19 14:12       ` Andi Kleen
2002-11-19 14:48       ` Andrea Arcangeli
2002-11-19 12:53 Margit Schubert-While

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4.3.2.7.2.20021119122403.00b50d70@mail.dns-host.com \
    --to=margit@margit.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®