blob: fd10fd2b60231e3651a6a385ee2ec807dda543fb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
From 02561fa14b2c6a97e3975187a5664cc44bdea8ce Mon Sep 17 00:00:00 2001
From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
Date: Fri, 22 Jun 2018 01:45:18 -0500
Subject: [PATCH] Add legacy ustat(2) syscall support for GCC Go
---
src/legacy/ustat.c | 8 ++++++++
1 file changed, 8 insertions(+)
create mode 100644 src/legacy/ustat.c
diff --git a/src/legacy/ustat.c b/src/legacy/ustat.c
new file mode 100644
index 00000000..1774a466
--- /dev/null
+++ b/src/legacy/ustat.c
@@ -0,0 +1,8 @@
+#include <sys/types.h>
+#include "syscall.h"
+
+int ustat(dev_t dev, void *ubuf)
+{
+ int ret = __syscall(SYS_ustat, dev, ubuf);
+ return __syscall_ret(ret);
+}
--
2.15.0
|