about summary refs log tree commit diff
path: root/src/linux
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-12-20 11:52:10 -0500
committerRich Felker <dalias@aerifal.cx>2013-12-20 11:52:10 -0500
commite36d8a1d74a00e56990728508635296440ddce1c (patch)
tree0839c2bbef499685b4822ff0191986976bb5b317 /src/linux
parentc91ad4f7167bad8314b06c487ddd1c638981fc24 (diff)
downloadmusl-e36d8a1d74a00e56990728508635296440ddce1c.tar.gz
musl-e36d8a1d74a00e56990728508635296440ddce1c.tar.xz
musl-e36d8a1d74a00e56990728508635296440ddce1c.zip
add sys/quota.h and quotactl syscall wrapper
based on patch by Timo Teräs.
Diffstat (limited to 'src/linux')
-rw-r--r--src/linux/quotactl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/linux/quotactl.c b/src/linux/quotactl.c
new file mode 100644
index 00000000..344eb0d1
--- /dev/null
+++ b/src/linux/quotactl.c
@@ -0,0 +1,7 @@
+#include <sys/quota.h>
+#include "syscall.h"
+
+int quotactl(int cmd, const char *special, int id, char *addr)
+{
+	return syscall(SYS_quotactl, cmd, special, id, addr);
+}