diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-22 02:50:27 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-22 02:50:27 -0500 |
commit | d93699d9e795b9e9a2686b2f1447783049a452f2 (patch) | |
tree | 0c7e8a47ea46f75129c1fba75a8d2bd01bc9fe4a /system/musl/3002-ustat.patch | |
parent | f10b4ccab3230214350072239d6626c7e6acc8f7 (diff) | |
download | packages-d93699d9e795b9e9a2686b2f1447783049a452f2.tar.gz packages-d93699d9e795b9e9a2686b2f1447783049a452f2.tar.bz2 packages-d93699d9e795b9e9a2686b2f1447783049a452f2.tar.xz packages-d93699d9e795b9e9a2686b2f1447783049a452f2.zip |
system/musl: add ustat(2) support for GCC Go
Diffstat (limited to 'system/musl/3002-ustat.patch')
-rw-r--r-- | system/musl/3002-ustat.patch | 27 |
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 + |