add vhangup syscall wrapper
authorRich Felker <dalias@aerifal.cx>
Tue, 19 Jun 2012 19:32:13 +0000 (15:32 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 19 Jun 2012 19:32:13 +0000 (15:32 -0400)
request/patch by william haddonthethird, slightly modifed to add
_GNU_SOURCE feature test macro so that the compiler can verify the
prototype matches.

src/linux/vhangup.c [new file with mode: 0644]

diff --git a/src/linux/vhangup.c b/src/linux/vhangup.c
new file mode 100644 (file)
index 0000000..0203071
--- /dev/null
@@ -0,0 +1,8 @@
+#define _GNU_SOURCE
+#include <unistd.h>
+#include "syscall.h"
+
+int vhangup(void)
+{
+       return syscall(SYS_vhangup);
+}