projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bc8e84
)
add vhangup syscall wrapper
author
Rich Felker
<dalias@aerifal.cx>
Tue, 19 Jun 2012 19:32:13 +0000
(15:32 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Tue, 19 Jun 2012 19:32:13 +0000
(15:32 -0400)
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
[new file with mode: 0644]
patch
|
blob
diff --git a/src/linux/vhangup.c
b/src/linux/vhangup.c
new file mode 100644
(file)
index 0000000..
0203071
--- /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);
+}