From: Rich Felker Date: Tue, 19 Jun 2012 19:32:13 +0000 (-0400) Subject: add vhangup syscall wrapper X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=25c8444919cc129264f7b7f31090d05403477719;p=musl 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. --- 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); +}