1 TIOCGDEV is used to get the kernel device name behind /dev/console
2 Temporary solution until another solution exists.
4 --- a/linux/arch/arm/include/asm/ioctls.h
5 +++ b/linux/arch/arm/include/asm/ioctls.h
7 #define TCSETSF2 _IOW('T',0x2D, struct termios2)
8 #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
9 #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
10 +#define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get real dev no below /dev/console */
12 #define FIONCLEX 0x5450 /* these numbers need to be adjusted. */
13 #define FIOCLEX 0x5451
14 --- a/linux/arch/ia64/include/asm/ioctls.h
15 +++ b/linux/arch/ia64/include/asm/ioctls.h
17 #define TIOCGSID 0x5429 /* Return the session ID of FD */
18 #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
19 #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
20 +#define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get real dev no below /dev/console */
22 #define FIONCLEX 0x5450 /* these numbers need to be adjusted. */
23 #define FIOCLEX 0x5451
24 --- a/linux/arch/parisc/include/asm/ioctls.h
25 +++ b/linux/arch/parisc/include/asm/ioctls.h
27 #define TIOCGSID _IOR('T', 20, int) /* Return the session ID of FD */
28 #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
29 #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
30 +#define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get real dev no below /dev/console */
32 #define FIONCLEX 0x5450 /* these numbers need to be adjusted. */
33 #define FIOCLEX 0x5451
34 --- a/linux/arch/powerpc/include/asm/ioctls.h
35 +++ b/linux/arch/powerpc/include/asm/ioctls.h
37 #define TIOCGSID 0x5429 /* Return the session ID of FD */
38 #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
39 #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
40 +#define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get real dev no below /dev/console */
42 #define TIOCSERCONFIG 0x5453
43 #define TIOCSERGWILD 0x5454
44 --- a/linux/arch/s390/include/asm/ioctls.h
45 +++ b/linux/arch/s390/include/asm/ioctls.h
47 #define TIOCGSID 0x5429 /* Return the session ID of FD */
48 #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
49 #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
50 +#define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get real dev no below /dev/console */
52 #define FIONCLEX 0x5450 /* these numbers need to be adjusted. */
53 #define FIOCLEX 0x5451
54 --- a/linux/arch/sparc/include/asm/ioctls.h 2007-07-08 19:32:17.000000000 -0400
55 +++ b/linux/arch/sparc/include/asm/ioctls.h 2007-08-27 14:01:21.000000000 -0400
57 #define TCSETS2 _IOW('T', 13, struct termios2)
58 #define TCSETSW2 _IOW('T', 14, struct termios2)
59 #define TCSETSF2 _IOW('T', 15, struct termios2)
60 +#define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get real dev no below /dev/console */
62 /* Note that all the ioctls that are not available in Linux have a
63 * double underscore on the front to: a) avoid some programs to
64 --- a/linux/arch/x86/include/asm/ioctls.h
65 +++ b/linux/arch/x86/include/asm/ioctls.h
67 #define TIOCGPTN _IOR('T', 0x30, unsigned int)
68 /* Get Pty Number (of pty-mux device) */
69 #define TIOCSPTLCK _IOW('T', 0x31, int) /* Lock/unlock Pty */
70 +#define TIOCGDEV _IOR('T', 0x32, unsigned int) /* Get real dev no below /dev/console */
71 #define TCGETX 0x5432 /* SYS5 TCGETX compatibility */
73 #define TCSETXF 0x5434