]> git.pld-linux.org Git - packages/linux-libc-headers.git/blob - linux-kernel-headers.SuSE.TIOCGDEV.patch
- up to 2.6.30
[packages/linux-libc-headers.git] / linux-kernel-headers.SuSE.TIOCGDEV.patch
1 TIOCGDEV is used to get the kernel device name behind /dev/console
2 Temporary solution until another solution exists.
3
4 --- a/linux/arch/arm/include/asm/ioctls.h
5 +++ b/linux/arch/arm/include/asm/ioctls.h
6 @@ -52,6 +52,7 @@
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 */
11  
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
16 @@ -55,6 +55,7 @@
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 */
21  
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
26 @@ -48,6 +48,7 @@
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 */
31  
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
36 @@ -91,6 +91,7 @@
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 */
41  
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
46 @@ -56,6 +56,7 @@
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 */
51  
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
56 @@ -15,6 +15,7 @@
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 */
61  
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
66 @@ -56,6 +56,7 @@
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 */
72  #define TCSETX         0x5433
73  #define TCSETXF                0x5434
This page took 0.034898 seconds and 3 git commands to generate.