summaryrefslogtreecommitdiff
path: root/tools/include/nolibc/sys.h
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2025-05-15 21:57:48 +0200
committerThomas Weißschuh <linux@weissschuh.net>2025-05-21 15:32:18 +0200
commit6e7c805a93a07ca9b1de49e8a020ab6c05e93f4e (patch)
tree2f49f3067205693d90dab634c03707a28db35266 /tools/include/nolibc/sys.h
parent7281be583117d7ff12c52684ffc732e6ffca8f58 (diff)
tools/nolibc: move mount() to sys/mount.h
This is the location regular userspace expects this definition. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Acked-by: Willy Tarreau <w@1wt.eu> Link: https://lore.kernel.org/r/20250515-nolibc-sys-v1-2-74f82eea3b59@weissschuh.net
Diffstat (limited to 'tools/include/nolibc/sys.h')
-rw-r--r--tools/include/nolibc/sys.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/tools/include/nolibc/sys.h b/tools/include/nolibc/sys.h
index 313c210173c8..e66dd6e76055 100644
--- a/tools/include/nolibc/sys.h
+++ b/tools/include/nolibc/sys.h
@@ -672,26 +672,6 @@ int mknod(const char *path, mode_t mode, dev_t dev)
return __sysret(sys_mknod(path, mode, dev));
}
-/*
- * int mount(const char *source, const char *target,
- * const char *fstype, unsigned long flags,
- * const void *data);
- */
-static __attribute__((unused))
-int sys_mount(const char *src, const char *tgt, const char *fst,
- unsigned long flags, const void *data)
-{
- return my_syscall5(__NR_mount, src, tgt, fst, flags, data);
-}
-
-static __attribute__((unused))
-int mount(const char *src, const char *tgt,
- const char *fst, unsigned long flags,
- const void *data)
-{
- return __sysret(sys_mount(src, tgt, fst, flags, data));
-}
-
/*
* int pipe2(int pipefd[2], int flags);