summaryrefslogtreecommitdiff
path: root/src
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
parent5bc8e845bb4de2c472581136d2268c4bf103bcd4 (diff)
downloadmusl-25c8444919cc129264f7b7f31090d05403477719.tar.gz
musl-25c8444919cc129264f7b7f31090d05403477719.tar.bz2
musl-25c8444919cc129264f7b7f31090d05403477719.tar.xz
musl-25c8444919cc129264f7b7f31090d05403477719.zip
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')
-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 00000000..02030715
--- /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);
+}