diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2007-03-18 20:33:16 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:24:04 -0400 |
commit | ae40eb1ef30ab4120bd3c8b7e3da99ee53d27a23 (patch) | |
tree | b5ae288b3c27d13bde9648c41d7db3cfe1884bc2 /include | |
parent | cb69cc52364690d7789940c480b3a9490784b680 (diff) |
[NET]: Introduce SIOCGSTAMPNS ioctl to get timestamps with nanosec resolution
Now network timestamps use ktime_t infrastructure, we can add a new
ioctl() SIOCGSTAMPNS command to get timestamps in 'struct timespec'.
User programs can thus access to nanosecond resolution.
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
CC: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-alpha/sockios.h | 3 | ||||
-rw-r--r-- | include/asm-arm/sockios.h | 3 | ||||
-rw-r--r-- | include/asm-arm26/sockios.h | 3 | ||||
-rw-r--r-- | include/asm-avr32/sockios.h | 3 | ||||
-rw-r--r-- | include/asm-cris/sockios.h | 3 | ||||
-rw-r--r-- | include/asm-frv/sockios.h | 3 | ||||
-rw-r--r-- | include/asm-h8300/sockios.h | 3 | ||||
-rw-r--r-- | include/asm-i386/sockios.h | 3 | ||||
-rw-r--r-- | include/asm-ia64/sockios.h | 3 | ||||
-rw-r--r-- | include/asm-m32r/sockios.h | 3 | ||||
-rw-r--r-- | include/asm-m68k/sockios.h | 3 | ||||
-rw-r--r-- | include/asm-mips/sockios.h | 3 | ||||
-rw-r--r-- | include/asm-parisc/sockios.h | 3 | ||||
-rw-r--r-- | include/asm-powerpc/sockios.h | 3 | ||||
-rw-r--r-- | include/asm-s390/sockios.h | 3 | ||||
-rw-r--r-- | include/asm-sh/sockios.h | 3 | ||||
-rw-r--r-- | include/asm-sh64/sockios.h | 3 | ||||
-rw-r--r-- | include/asm-sparc/sockios.h | 3 | ||||
-rw-r--r-- | include/asm-sparc64/sockios.h | 3 | ||||
-rw-r--r-- | include/asm-v850/sockios.h | 3 | ||||
-rw-r--r-- | include/asm-x86_64/sockios.h | 3 | ||||
-rw-r--r-- | include/asm-xtensa/sockios.h | 3 | ||||
-rw-r--r-- | include/net/compat.h | 1 | ||||
-rw-r--r-- | include/net/sock.h | 1 |
24 files changed, 46 insertions, 22 deletions
diff --git a/include/asm-alpha/sockios.h b/include/asm-alpha/sockios.h index e4961a740e5f..7932c7ab4a4d 100644 --- a/include/asm-alpha/sockios.h +++ b/include/asm-alpha/sockios.h | |||
@@ -10,6 +10,7 @@ | |||
10 | #define SIOCSPGRP _IOW('s', 8, pid_t) | 10 | #define SIOCSPGRP _IOW('s', 8, pid_t) |
11 | #define SIOCGPGRP _IOR('s', 9, pid_t) | 11 | #define SIOCGPGRP _IOR('s', 9, pid_t) |
12 | 12 | ||
13 | #define SIOCGSTAMP 0x8906 /* Get stamp - linux-specific */ | 13 | #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ |
14 | #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ | ||
14 | 15 | ||
15 | #endif /* _ASM_ALPHA_SOCKIOS_H */ | 16 | #endif /* _ASM_ALPHA_SOCKIOS_H */ |
diff --git a/include/asm-arm/sockios.h b/include/asm-arm/sockios.h index 77c34087d513..a2588a2512df 100644 --- a/include/asm-arm/sockios.h +++ b/include/asm-arm/sockios.h | |||
@@ -7,6 +7,7 @@ | |||
7 | #define FIOGETOWN 0x8903 | 7 | #define FIOGETOWN 0x8903 |
8 | #define SIOCGPGRP 0x8904 | 8 | #define SIOCGPGRP 0x8904 |
9 | #define SIOCATMARK 0x8905 | 9 | #define SIOCATMARK 0x8905 |
10 | #define SIOCGSTAMP 0x8906 /* Get stamp */ | 10 | #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ |
11 | #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ | ||
11 | 12 | ||
12 | #endif | 13 | #endif |
diff --git a/include/asm-arm26/sockios.h b/include/asm-arm26/sockios.h index 77c34087d513..a2588a2512df 100644 --- a/include/asm-arm26/sockios.h +++ b/include/asm-arm26/sockios.h | |||
@@ -7,6 +7,7 @@ | |||
7 | #define FIOGETOWN 0x8903 | 7 | #define FIOGETOWN 0x8903 |
8 | #define SIOCGPGRP 0x8904 | 8 | #define SIOCGPGRP 0x8904 |
9 | #define SIOCATMARK 0x8905 | 9 | #define SIOCATMARK 0x8905 |
10 | #define SIOCGSTAMP 0x8906 /* Get stamp */ | 10 | #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ |
11 | #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ | ||
11 | 12 | ||
12 | #endif | 13 | #endif |
diff --git a/include/asm-avr32/sockios.h b/include/asm-avr32/sockios.h index 84f3d65b3b3b..0802d742f97d 100644 --- a/include/asm-avr32/sockios.h +++ b/include/asm-avr32/sockios.h | |||
@@ -7,6 +7,7 @@ | |||
7 | #define FIOGETOWN 0x8903 | 7 | #define FIOGETOWN 0x8903 |
8 | #define SIOCGPGRP 0x8904 | 8 | #define SIOCGPGRP 0x8904 |
9 | #define SIOCATMARK 0x8905 | 9 | #define SIOCATMARK 0x8905 |
10 | #define SIOCGSTAMP 0x8906 /* Get stamp */ | 10 | #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ |
11 | #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ | ||
11 | 12 | ||
12 | #endif /* __ASM_AVR32_SOCKIOS_H */ | 13 | #endif /* __ASM_AVR32_SOCKIOS_H */ |
diff --git a/include/asm-cris/sockios.h b/include/asm-cris/sockios.h index 6c4012f0b29f..cfe7bfecf599 100644 --- a/include/asm-cris/sockios.h +++ b/include/asm-cris/sockios.h | |||
@@ -7,6 +7,7 @@ | |||
7 | #define FIOGETOWN 0x8903 | 7 | #define FIOGETOWN 0x8903 |
8 | #define SIOCGPGRP 0x8904 | 8 | #define SIOCGPGRP 0x8904 |
9 | #define SIOCATMARK 0x8905 | 9 | #define SIOCATMARK 0x8905 |
10 | #define SIOCGSTAMP 0x8906 /* Get stamp */ | 10 | #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ |
11 | #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ | ||
11 | 12 | ||
12 | #endif | 13 | #endif |
diff --git a/include/asm-frv/sockios.h b/include/asm-frv/sockios.h index 8a6e4b2074b7..5dbdd13e6de3 100644 --- a/include/asm-frv/sockios.h +++ b/include/asm-frv/sockios.h | |||
@@ -7,7 +7,8 @@ | |||
7 | #define FIOGETOWN 0x8903 | 7 | #define FIOGETOWN 0x8903 |
8 | #define SIOCGPGRP 0x8904 | 8 | #define SIOCGPGRP 0x8904 |
9 | #define SIOCATMARK 0x8905 | 9 | #define SIOCATMARK 0x8905 |
10 | #define SIOCGSTAMP 0x8906 /* Get stamp */ | 10 | #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ |
11 | #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ | ||
11 | 12 | ||
12 | #endif /* _ASM_SOCKIOS__ */ | 13 | #endif /* _ASM_SOCKIOS__ */ |
13 | 14 | ||
diff --git a/include/asm-h8300/sockios.h b/include/asm-h8300/sockios.h index d005d9594cc6..e9c7ec810c23 100644 --- a/include/asm-h8300/sockios.h +++ b/include/asm-h8300/sockios.h | |||
@@ -7,6 +7,7 @@ | |||
7 | #define FIOGETOWN 0x8903 | 7 | #define FIOGETOWN 0x8903 |
8 | #define SIOCGPGRP 0x8904 | 8 | #define SIOCGPGRP 0x8904 |
9 | #define SIOCATMARK 0x8905 | 9 | #define SIOCATMARK 0x8905 |
10 | #define SIOCGSTAMP 0x8906 /* Get stamp */ | 10 | #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ |
11 | #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ | ||
11 | 12 | ||
12 | #endif /* __ARCH_H8300_SOCKIOS__ */ | 13 | #endif /* __ARCH_H8300_SOCKIOS__ */ |
diff --git a/include/asm-i386/sockios.h b/include/asm-i386/sockios.h index 6b747f8e228b..ff528c7d255c 100644 --- a/include/asm-i386/sockios.h +++ b/include/asm-i386/sockios.h | |||
@@ -7,6 +7,7 @@ | |||
7 | #define FIOGETOWN 0x8903 | 7 | #define FIOGETOWN 0x8903 |
8 | #define SIOCGPGRP 0x8904 | 8 | #define SIOCGPGRP 0x8904 |
9 | #define SIOCATMARK 0x8905 | 9 | #define SIOCATMARK 0x8905 |
10 | #define SIOCGSTAMP 0x8906 /* Get stamp */ | 10 | #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ |
11 | #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ | ||
11 | 12 | ||
12 | #endif | 13 | #endif |
diff --git a/include/asm-ia64/sockios.h b/include/asm-ia64/sockios.h index cf94857c8a54..15c92468ad38 100644 --- a/include/asm-ia64/sockios.h +++ b/include/asm-ia64/sockios.h | |||
@@ -14,6 +14,7 @@ | |||
14 | #define FIOGETOWN 0x8903 | 14 | #define FIOGETOWN 0x8903 |
15 | #define SIOCGPGRP 0x8904 | 15 | #define SIOCGPGRP 0x8904 |
16 | #define SIOCATMARK 0x8905 | 16 | #define SIOCATMARK 0x8905 |
17 | #define SIOCGSTAMP 0x8906 /* Get stamp */ | 17 | #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ |
18 | #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ | ||
18 | 19 | ||
19 | #endif /* _ASM_IA64_SOCKIOS_H */ | 20 | #endif /* _ASM_IA64_SOCKIOS_H */ |
diff --git a/include/asm-m32r/sockios.h b/include/asm-m32r/sockios.h index f89962e231fe..6c1fb9b43bdb 100644 --- a/include/asm-m32r/sockios.h +++ b/include/asm-m32r/sockios.h | |||
@@ -7,6 +7,7 @@ | |||
7 | #define FIOGETOWN 0x8903 | 7 | #define FIOGETOWN 0x8903 |
8 | #define SIOCGPGRP 0x8904 | 8 | #define SIOCGPGRP 0x8904 |
9 | #define SIOCATMARK 0x8905 | 9 | #define SIOCATMARK 0x8905 |
10 | #define SIOCGSTAMP 0x8906 /* Get stamp */ | 10 | #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ |
11 | #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ | ||
11 | 12 | ||
12 | #endif /* _ASM_M32R_SOCKIOS_H */ | 13 | #endif /* _ASM_M32R_SOCKIOS_H */ |
diff --git a/include/asm-m68k/sockios.h b/include/asm-m68k/sockios.h index 9b9ed973c24e..c04a23943cb7 100644 --- a/include/asm-m68k/sockios.h +++ b/include/asm-m68k/sockios.h | |||
@@ -7,6 +7,7 @@ | |||
7 | #define FIOGETOWN 0x8903 | 7 | #define FIOGETOWN 0x8903 |
8 | #define SIOCGPGRP 0x8904 | 8 | #define SIOCGPGRP 0x8904 |
9 | #define SIOCATMARK 0x8905 | 9 | #define SIOCATMARK 0x8905 |
10 | #define SIOCGSTAMP 0x8906 /* Get stamp */ | 10 | #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ |
11 | #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ | ||
11 | 12 | ||
12 | #endif /* __ARCH_M68K_SOCKIOS__ */ | 13 | #endif /* __ARCH_M68K_SOCKIOS__ */ |
diff --git a/include/asm-mips/sockios.h b/include/asm-mips/sockios.h index 87a50bf039ed..ed1a5f78d22f 100644 --- a/include/asm-mips/sockios.h +++ b/include/asm-mips/sockios.h | |||
@@ -20,6 +20,7 @@ | |||
20 | #define SIOCSPGRP _IOW('s', 8, pid_t) | 20 | #define SIOCSPGRP _IOW('s', 8, pid_t) |
21 | #define SIOCGPGRP _IOR('s', 9, pid_t) | 21 | #define SIOCGPGRP _IOR('s', 9, pid_t) |
22 | 22 | ||
23 | #define SIOCGSTAMP 0x8906 /* Get stamp - linux-specific */ | 23 | #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ |
24 | #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ | ||
24 | 25 | ||
25 | #endif /* _ASM_SOCKIOS_H */ | 26 | #endif /* _ASM_SOCKIOS_H */ |
diff --git a/include/asm-parisc/sockios.h b/include/asm-parisc/sockios.h index aace49629949..dabfbc7483f6 100644 --- a/include/asm-parisc/sockios.h +++ b/include/asm-parisc/sockios.h | |||
@@ -7,6 +7,7 @@ | |||
7 | #define FIOGETOWN 0x8903 | 7 | #define FIOGETOWN 0x8903 |
8 | #define SIOCGPGRP 0x8904 | 8 | #define SIOCGPGRP 0x8904 |
9 | #define SIOCATMARK 0x8905 | 9 | #define SIOCATMARK 0x8905 |
10 | #define SIOCGSTAMP 0x8906 /* Get stamp */ | 10 | #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ |
11 | #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ | ||
11 | 12 | ||
12 | #endif | 13 | #endif |
diff --git a/include/asm-powerpc/sockios.h b/include/asm-powerpc/sockios.h index 590078d8ed28..55cef7675a31 100644 --- a/include/asm-powerpc/sockios.h +++ b/include/asm-powerpc/sockios.h | |||
@@ -14,6 +14,7 @@ | |||
14 | #define FIOGETOWN 0x8903 | 14 | #define FIOGETOWN 0x8903 |
15 | #define SIOCGPGRP 0x8904 | 15 | #define SIOCGPGRP 0x8904 |
16 | #define SIOCATMARK 0x8905 | 16 | #define SIOCATMARK 0x8905 |
17 | #define SIOCGSTAMP 0x8906 /* Get stamp */ | 17 | #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ |
18 | #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ | ||
18 | 19 | ||
19 | #endif /* _ASM_POWERPC_SOCKIOS_H */ | 20 | #endif /* _ASM_POWERPC_SOCKIOS_H */ |
diff --git a/include/asm-s390/sockios.h b/include/asm-s390/sockios.h index 412aeb4dd6ce..f4fc16c7da59 100644 --- a/include/asm-s390/sockios.h +++ b/include/asm-s390/sockios.h | |||
@@ -15,6 +15,7 @@ | |||
15 | #define FIOGETOWN 0x8903 | 15 | #define FIOGETOWN 0x8903 |
16 | #define SIOCGPGRP 0x8904 | 16 | #define SIOCGPGRP 0x8904 |
17 | #define SIOCATMARK 0x8905 | 17 | #define SIOCATMARK 0x8905 |
18 | #define SIOCGSTAMP 0x8906 /* Get stamp */ | 18 | #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ |
19 | #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ | ||
19 | 20 | ||
20 | #endif | 21 | #endif |
diff --git a/include/asm-sh/sockios.h b/include/asm-sh/sockios.h index 08a71df8a8be..cf8b96b1f9ab 100644 --- a/include/asm-sh/sockios.h +++ b/include/asm-sh/sockios.h | |||
@@ -9,5 +9,6 @@ | |||
9 | #define SIOCSPGRP _IOW('s', 8, pid_t) | 9 | #define SIOCSPGRP _IOW('s', 8, pid_t) |
10 | #define SIOCGPGRP _IOR('s', 9, pid_t) | 10 | #define SIOCGPGRP _IOR('s', 9, pid_t) |
11 | 11 | ||
12 | #define SIOCGSTAMP _IOR('s', 100, struct timeval) /* Get stamp - linux-specific */ | 12 | #define SIOCGSTAMP _IOR('s', 100, struct timeval) /* Get stamp (timeval) */ |
13 | #define SIOCGSTAMPNS _IOR('s', 101, struct timespec) /* Get stamp (timespec) */ | ||
13 | #endif /* __ASM_SH_SOCKIOS_H */ | 14 | #endif /* __ASM_SH_SOCKIOS_H */ |
diff --git a/include/asm-sh64/sockios.h b/include/asm-sh64/sockios.h index 1ae23ae82977..419e76f12f41 100644 --- a/include/asm-sh64/sockios.h +++ b/include/asm-sh64/sockios.h | |||
@@ -20,5 +20,6 @@ | |||
20 | #define SIOCSPGRP _IOW('s', 8, pid_t) | 20 | #define SIOCSPGRP _IOW('s', 8, pid_t) |
21 | #define SIOCGPGRP _IOR('s', 9, pid_t) | 21 | #define SIOCGPGRP _IOR('s', 9, pid_t) |
22 | 22 | ||
23 | #define SIOCGSTAMP _IOR('s', 100, struct timeval) /* Get stamp - linux-specific */ | 23 | #define SIOCGSTAMP _IOR('s', 100, struct timeval) /* Get stamp (timeval) */ |
24 | #define SIOCGSTAMPNS _IOR('s', 101, struct timespec) /* Get stamp (timespec) */ | ||
24 | #endif /* __ASM_SH64_SOCKIOS_H */ | 25 | #endif /* __ASM_SH64_SOCKIOS_H */ |
diff --git a/include/asm-sparc/sockios.h b/include/asm-sparc/sockios.h index 0c01b597b06f..990ea746486b 100644 --- a/include/asm-sparc/sockios.h +++ b/include/asm-sparc/sockios.h | |||
@@ -7,7 +7,8 @@ | |||
7 | #define FIOGETOWN 0x8903 | 7 | #define FIOGETOWN 0x8903 |
8 | #define SIOCGPGRP 0x8904 | 8 | #define SIOCGPGRP 0x8904 |
9 | #define SIOCATMARK 0x8905 | 9 | #define SIOCATMARK 0x8905 |
10 | #define SIOCGSTAMP 0x8906 /* Get stamp */ | 10 | #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ |
11 | #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ | ||
11 | 12 | ||
12 | #endif /* !(_ASM_SPARC_SOCKIOS_H) */ | 13 | #endif /* !(_ASM_SPARC_SOCKIOS_H) */ |
13 | 14 | ||
diff --git a/include/asm-sparc64/sockios.h b/include/asm-sparc64/sockios.h index 6735bab4f39d..c7d9900638d0 100644 --- a/include/asm-sparc64/sockios.h +++ b/include/asm-sparc64/sockios.h | |||
@@ -7,7 +7,8 @@ | |||
7 | #define FIOGETOWN 0x8903 | 7 | #define FIOGETOWN 0x8903 |
8 | #define SIOCGPGRP 0x8904 | 8 | #define SIOCGPGRP 0x8904 |
9 | #define SIOCATMARK 0x8905 | 9 | #define SIOCATMARK 0x8905 |
10 | #define SIOCGSTAMP 0x8906 /* Get stamp */ | 10 | #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ |
11 | #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ | ||
11 | 12 | ||
12 | #endif /* !(_ASM_SPARC64_SOCKIOS_H) */ | 13 | #endif /* !(_ASM_SPARC64_SOCKIOS_H) */ |
13 | 14 | ||
diff --git a/include/asm-v850/sockios.h b/include/asm-v850/sockios.h index cf4874c2fd8a..823e106e6cd0 100644 --- a/include/asm-v850/sockios.h +++ b/include/asm-v850/sockios.h | |||
@@ -7,6 +7,7 @@ | |||
7 | #define FIOGETOWN 0x8903 | 7 | #define FIOGETOWN 0x8903 |
8 | #define SIOCGPGRP 0x8904 | 8 | #define SIOCGPGRP 0x8904 |
9 | #define SIOCATMARK 0x8905 | 9 | #define SIOCATMARK 0x8905 |
10 | #define SIOCGSTAMP 0x8906 /* Get stamp */ | 10 | #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ |
11 | #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ | ||
11 | 12 | ||
12 | #endif /* __V850_SOCKIOS_H__ */ | 13 | #endif /* __V850_SOCKIOS_H__ */ |
diff --git a/include/asm-x86_64/sockios.h b/include/asm-x86_64/sockios.h index 2eefd10d4f48..d726ba2513e3 100644 --- a/include/asm-x86_64/sockios.h +++ b/include/asm-x86_64/sockios.h | |||
@@ -7,6 +7,7 @@ | |||
7 | #define FIOGETOWN 0x8903 | 7 | #define FIOGETOWN 0x8903 |
8 | #define SIOCGPGRP 0x8904 | 8 | #define SIOCGPGRP 0x8904 |
9 | #define SIOCATMARK 0x8905 | 9 | #define SIOCATMARK 0x8905 |
10 | #define SIOCGSTAMP 0x8906 /* Get stamp */ | 10 | #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ |
11 | #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ | ||
11 | 12 | ||
12 | #endif | 13 | #endif |
diff --git a/include/asm-xtensa/sockios.h b/include/asm-xtensa/sockios.h index 20d2ba10ecd1..efe0af379f01 100644 --- a/include/asm-xtensa/sockios.h +++ b/include/asm-xtensa/sockios.h | |||
@@ -25,6 +25,7 @@ | |||
25 | #define SIOCSPGRP _IOW('s', 8, pid_t) | 25 | #define SIOCSPGRP _IOW('s', 8, pid_t) |
26 | #define SIOCGPGRP _IOR('s', 9, pid_t) | 26 | #define SIOCGPGRP _IOR('s', 9, pid_t) |
27 | 27 | ||
28 | #define SIOCGSTAMP 0x8906 /* Get stamp - linux-specific */ | 28 | #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ |
29 | #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ | ||
29 | 30 | ||
30 | #endif /* _XTENSA_SOCKIOS_H */ | 31 | #endif /* _XTENSA_SOCKIOS_H */ |
diff --git a/include/net/compat.h b/include/net/compat.h index 9859b60280d5..406db242f73a 100644 --- a/include/net/compat.h +++ b/include/net/compat.h | |||
@@ -25,6 +25,7 @@ struct compat_cmsghdr { | |||
25 | }; | 25 | }; |
26 | 26 | ||
27 | extern int compat_sock_get_timestamp(struct sock *, struct timeval __user *); | 27 | extern int compat_sock_get_timestamp(struct sock *, struct timeval __user *); |
28 | extern int compat_sock_get_timestampns(struct sock *, struct timespec __user *); | ||
28 | 29 | ||
29 | #else /* defined(CONFIG_COMPAT) */ | 30 | #else /* defined(CONFIG_COMPAT) */ |
30 | #define compat_msghdr msghdr /* to avoid compiler warnings */ | 31 | #define compat_msghdr msghdr /* to avoid compiler warnings */ |
diff --git a/include/net/sock.h b/include/net/sock.h index 2974bacc8850..d093e49fdc85 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
@@ -1329,6 +1329,7 @@ static inline void sk_eat_skb(struct sock *sk, struct sk_buff *skb, int copied_e | |||
1329 | 1329 | ||
1330 | extern void sock_enable_timestamp(struct sock *sk); | 1330 | extern void sock_enable_timestamp(struct sock *sk); |
1331 | extern int sock_get_timestamp(struct sock *, struct timeval __user *); | 1331 | extern int sock_get_timestamp(struct sock *, struct timeval __user *); |
1332 | extern int sock_get_timestampns(struct sock *, struct timespec __user *); | ||
1332 | 1333 | ||
1333 | /* | 1334 | /* |
1334 | * Enable debug/info messages | 1335 | * Enable debug/info messages |