浏览代码

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.
Rich Felker 13 年之前
父节点
当前提交
25c8444919
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/linux/vhangup.c

+ 8 - 0
src/linux/vhangup.c

@@ -0,0 +1,8 @@
+#define _GNU_SOURCE
+#include <unistd.h>
+#include "syscall.h"
+
+int vhangup(void)
+{
+	return syscall(SYS_vhangup);
+}