1 TIOCGDEV is used to get the kernel device name behind /dev/console
2 Temoprary solution until another solution exists.
5 usr/include/asm-arm/ioctls.h | 1 +
6 usr/include/asm-ia64/ioctls.h | 1 +
7 usr/include/asm-parisc/ioctls.h | 1 +
8 usr/include/asm-powerpc/ioctls.h | 1 +
9 usr/include/asm-s390/ioctls.h | 1 +
10 usr/include/asm-x86/ioctls.h | 1 +
11 6 files changed, 6 insertions(+)
13 --- a/usr/include/asm-arm/ioctls.h
14 +++ b/usr/include/asm-arm/ioctls.h
16 #define TCSETSF2 _IOW('T',0x2D, struct termios2)
17 #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
18 #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
19 +#define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get real dev no below /dev/console */
21 #define FIONCLEX 0x5450 /* these numbers need to be adjusted. */
22 #define FIOCLEX 0x5451
23 --- a/usr/include/asm-ia64/ioctls.h
24 +++ b/usr/include/asm-ia64/ioctls.h
26 #define TIOCGSID 0x5429 /* Return the session ID of FD */
27 #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
28 #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
29 +#define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get real dev no below /dev/console */
31 #define FIONCLEX 0x5450 /* these numbers need to be adjusted. */
32 #define FIOCLEX 0x5451
33 --- a/usr/include/asm-parisc/ioctls.h
34 +++ b/usr/include/asm-parisc/ioctls.h
36 #define TIOCGSID _IOR('T', 20, int) /* Return the session ID of FD */
37 #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
38 #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
39 +#define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get real dev no below /dev/console */
41 #define FIONCLEX 0x5450 /* these numbers need to be adjusted. */
42 #define FIOCLEX 0x5451
43 --- a/usr/include/asm-powerpc/ioctls.h
44 +++ b/usr/include/asm-powerpc/ioctls.h
46 #define TIOCGSID 0x5429 /* Return the session ID of FD */
47 #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
48 #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
49 +#define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get real dev no below /dev/console */
51 #define TIOCSERCONFIG 0x5453
52 #define TIOCSERGWILD 0x5454
53 --- a/usr/include/asm-s390/ioctls.h
54 +++ b/usr/include/asm-s390/ioctls.h
56 #define TIOCGSID 0x5429 /* Return the session ID of FD */
57 #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
58 #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
59 +#define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get real dev no below /dev/console */
61 #define FIONCLEX 0x5450 /* these numbers need to be adjusted. */
62 #define FIOCLEX 0x5451
63 --- a/usr/include/asm-x86/ioctls.h
64 +++ b/usr/include/asm-x86/ioctls.h
66 #define TCSETSF2 _IOW('T',0x2D, struct termios2)
67 #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
68 #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
69 +#define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get real dev no below /dev/console */
71 #define FIONCLEX 0x5450 /* these numbers need to be adjusted. */
72 #define FIOCLEX 0x5451