aboutsummaryrefslogtreecommitdiff
path: root/libc/musl/src/linux/cache.c
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-03-13 12:56:58 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-03-13 12:56:58 -0400
commit54edbc6815e42457cd28fa9f1b94e732504b3fc9 (patch)
tree36c97169bf0cd59326a93b8c3c0d458f94aed8a9 /libc/musl/src/linux/cache.c
parent4cb55d3af6a71467b7d4399bedb961c81e9ad3d5 (diff)
parentd495dcc3c952c99e5358d9610cf09eb856f643b0 (diff)
downloadzig-54edbc6815e42457cd28fa9f1b94e732504b3fc9.tar.gz
zig-54edbc6815e42457cd28fa9f1b94e732504b3fc9.zip
Merge remote-tracking branch 'origin/master' into llvm8
Diffstat (limited to 'libc/musl/src/linux/cache.c')
-rw-r--r--libc/musl/src/linux/cache.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/libc/musl/src/linux/cache.c b/libc/musl/src/linux/cache.c
new file mode 100644
index 0000000000..84a138a415
--- /dev/null
+++ b/libc/musl/src/linux/cache.c
@@ -0,0 +1,17 @@
+#include "syscall.h"
+
+#ifdef SYS_cacheflush
+int _flush_cache(void *addr, int len, int op)
+{
+ return syscall(SYS_cacheflush, addr, len, op);
+}
+weak_alias(_flush_cache, cacheflush);
+#endif
+
+#ifdef SYS_cachectl
+int __cachectl(void *addr, int len, int op)
+{
+ return syscall(SYS_cachectl, addr, len, op);
+}
+weak_alias(__cachectl, cachectl);
+#endif