summaryrefslogtreecommitdiffstats
path: root/compiler-rt-no-ustat.patch
blob: 2499d66fefc4f896169697105e780f093bab4636 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
--- compiler-rt-orig/lib/sanitizer_common/sanitizer_common_syscalls.inc	2018-05-21 10:41:12.089534263 -0500
+++ compiler-rt/lib/sanitizer_common/sanitizer_common_syscalls.inc	2018-05-21 10:47:21.172510188 -0500
@@ -923,16 +923,6 @@
   }
 }
 
-#if !SANITIZER_ANDROID
-PRE_SYSCALL(ustat)(long dev, void *ubuf) {}
-
-POST_SYSCALL(ustat)(long res, long dev, void *ubuf) {
-  if (res >= 0) {
-    if (ubuf) POST_WRITE(ubuf, struct_ustat_sz);
-  }
-}
-#endif  // !SANITIZER_ANDROID
-
 PRE_SYSCALL(stat64)(const void *filename, void *statbuf) {
   if (filename)
     PRE_READ(filename,
diff -Naur compiler-rt-orig/lib/sanitizer_common/sanitizer_platform_limits_posix.cc compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
--- compiler-rt-orig/lib/sanitizer_common/sanitizer_platform_limits_posix.cc	2018-05-21 10:41:12.080534263 -0500
+++ compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc	2018-05-21 10:45:29.503517472 -0500
@@ -159,7 +159,6 @@
 # include <sys/procfs.h>
 #endif
 #include <sys/user.h>
-#include <sys/ustat.h>
 #include <linux/cyclades.h>
 #include <linux/if_eql.h>
 #include <linux/if_plip.h>
@@ -253,7 +252,6 @@
 #endif // SANITIZER_LINUX || SANITIZER_FREEBSD
 
 #if SANITIZER_LINUX && !SANITIZER_ANDROID
-  unsigned struct_ustat_sz = sizeof(struct ustat);
   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
   unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
 #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
diff -Naur compiler-rt-orig/lib/sanitizer_common/sanitizer_platform_limits_posix.h compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
--- compiler-rt-orig/lib/sanitizer_common/sanitizer_platform_limits_posix.h	2018-05-21 10:41:12.081534263 -0500
+++ compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h	2018-05-21 10:44:28.392521458 -0500
@@ -197,7 +197,6 @@
     int v[10];
   };
 
-  extern unsigned struct_ustat_sz;
   extern unsigned struct_rlimit64_sz;
   extern unsigned struct_statvfs64_sz;