mirror of
git://git.musl-libc.org/musl
synced 2024-12-16 19:55:38 +00:00
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.
This commit is contained in:
parent
5bc8e845bb
commit
25c8444919
8
src/linux/vhangup.c
Normal file
8
src/linux/vhangup.c
Normal file
@ -0,0 +1,8 @@
|
||||
#define _GNU_SOURCE
|
||||
#include <unistd.h>
|
||||
#include "syscall.h"
|
||||
|
||||
int vhangup(void)
|
||||
{
|
||||
return syscall(SYS_vhangup);
|
||||
}
|
Loading…
Reference in New Issue
Block a user