Am Mittwoch, 1. Januar 2003 15:20 schrieb Thomas Hertweck:
By the way, hier ist der TIOCGDEV patch fuer Kernel 2.4.20 und 2.4.21pre(1,2) fuer i386 Architektur. Ich habe ihn von Margit Schubert-While (siehe LKML) zugeschickt bekommen - vielen Dank dafuer! Fuer den Vanilla-Kernel 2.4.19 muesste der Patch in der Gegend um 19/11/2002 im Archiv von LKML zu finden sein.
=====8< ====== suseblogdpatch ====================================
diff -Naur a/include/asm-i386/ioctls.h b/include/asm-i386/ioctls.h --- a/include/asm-i386/ioctls.h 2002-08-03 02:39:45.000000000 +0200 +++ b/include/asm-i386/ioctls.h 2002-12-31 17:15:00.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 -Naur a/drivers/char/tty_io.c d/drivers/char/tty_io.c --- a/drivers/char/tty_io.c 2002-11-29 00:53:12.000000000 +0100 +++ d/drivers/char/tty_io.c 2002-12-10 13:45:09.000000000 +0100 @@ -1783,6 +1783,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
=====8< ==========================================================
Mal ne ganz dumme Frage , Wie muss ich diese patch anwenden , dh wie muss die entsprechende Datei heißen und wo muss man es platzieren. Wird es bei eine Kompilation automatisch eingefügt ? thx nader