projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup src/linux and src/misc trees, etc.
[musl]
/
src
/
linux
/
swap.c
diff --git a/src/linux/swap.c
b/src/linux/swap.c
new file mode 100644
(file)
index 0000000..
8137d51
--- /dev/null
+++ b/
src/linux/swap.c
@@ -0,0
+1,12
@@
+#include <sys/swap.h>
+#include "syscall.h"
+
+int swapon(const char *path, int flags)
+{
+ return syscall(SYS_swapon, path, flags);
+}
+
+int swapoff(const char *path)
+{
+ return syscall(SYS_swapoff, path);
+}