summaryrefslogtreecommitdiff
path: root/system/musl/3002-ustat.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/musl/3002-ustat.patch')
-rw-r--r--system/musl/3002-ustat.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/system/musl/3002-ustat.patch b/system/musl/3002-ustat.patch
new file mode 100644
index 000000000..fd10fd2b6
--- /dev/null
+++ b/system/musl/3002-ustat.patch
@@ -0,0 +1,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
+