From 25c8444919cc129264f7b7f31090d05403477719 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 19 Jun 2012 15:32:13 -0400 Subject: 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. --- src/linux/vhangup.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/linux/vhangup.c 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 +#include "syscall.h" + +int vhangup(void) +{ + return syscall(SYS_vhangup); +} -- cgit v1.2.1