diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-06-19 15:32:13 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-06-19 15:32:13 -0400 |
commit | 25c8444919cc129264f7b7f31090d05403477719 (patch) | |
tree | fa35a68ff49ec26891b9dd134e9638321ec3a299 | |
parent | 5bc8e845bb4de2c472581136d2268c4bf103bcd4 (diff) | |
download | musl-25c8444919cc129264f7b7f31090d05403477719.tar.gz 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.
-rw-r--r-- | src/linux/vhangup.c | 8 |
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); +} |