aboutsummaryrefslogtreecommitdiff
path: root/src/linux
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-06-19 15:32:13 -0400
committerRich Felker <dalias@aerifal.cx>2012-06-19 15:32:13 -0400
commit25c8444919cc129264f7b7f31090d05403477719 (patch)
treefa35a68ff49ec26891b9dd134e9638321ec3a299 /src/linux
parent5bc8e845bb4de2c472581136d2268c4bf103bcd4 (diff)
downloadmusl-25c8444919cc129264f7b7f31090d05403477719.zip
musl-25c8444919cc129264f7b7f31090d05403477719.tar.gz
musl-25c8444919cc129264f7b7f31090d05403477719.tar.bz2
add vhangup syscall wrapper
request/patch by william haddonthethird, slightly modifed to add _GNU_SOURCE feature test macro so that the compiler can verify the prototype matches.
Diffstat (limited to 'src/linux')
-rw-r--r--src/linux/vhangup.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/linux/vhangup.c b/src/linux/vhangup.c
new file mode 100644
index 0000000..0203071
--- /dev/null
+++ b/src/linux/vhangup.c
@@ -0,0 +1,8 @@
+#define _GNU_SOURCE
+#include <unistd.h>
+#include "syscall.h"
+
+int vhangup(void)
+{
+ return syscall(SYS_vhangup);
+}