hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 6fb4bdbc816202a4801dd80d92b8c1d3c023dcb2
parent 5da0fea18e636e03e7e1b310aac1e3d7c8e47a32
Author: Sebastian <sebastian@sebsite.pw>
Date:   Fri, 18 Aug 2023 01:28:33 -0400

rt: remove syscallsarch+*.ha

Arch-specific files for syscalls already exist.

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mrt/+linux/+x86_64.ha | 4++++
Drt/+linux/syscallsarch+aarch64.ha | 3---
Drt/+linux/syscallsarch+riscv64.ha | 3---
Drt/+linux/syscallsarch+x86_64.ha | 7-------
Mscripts/gen-stdlib | 1-
Mstdlib.mk | 2--
6 files changed, 4 insertions(+), 16 deletions(-)

diff --git a/rt/+linux/+x86_64.ha b/rt/+linux/+x86_64.ha @@ -51,3 +51,7 @@ export type epoll_event = struct @packed { export type cpu_set = struct { __bits: [16]u64, }; + +export fn alarm(seconds: uint) uint = { + return syscall1(SYS_alarm, seconds: u64): uint; +}; diff --git a/rt/+linux/syscallsarch+aarch64.ha b/rt/+linux/syscallsarch+aarch64.ha @@ -1,3 +0,0 @@ -// License: MPL-2.0 - -// Dummy to make the build work. diff --git a/rt/+linux/syscallsarch+riscv64.ha b/rt/+linux/syscallsarch+riscv64.ha @@ -1,3 +0,0 @@ -// License: MPL-2.0 - -// Dummy to make the build work. diff --git a/rt/+linux/syscallsarch+x86_64.ha b/rt/+linux/syscallsarch+x86_64.ha @@ -1,7 +0,0 @@ -// License: MPL-2.0 -// (c) 2022 Sebastian <sebastian@sebsite.pw> - -export fn alarm(seconds: uint) uint = { - return syscall1(SYS_alarm, seconds: u64): uint; -}; - diff --git a/scripts/gen-stdlib b/scripts/gen-stdlib @@ -29,7 +29,6 @@ gensrcs_rt() { +linux/'+$(ARCH)'.ha \ +linux/syscallno+'$(ARCH)'.ha \ +linux/syscalls.ha \ - +linux/syscallsarch+'$(ARCH)'.ha \ +linux/signal.ha \ +linux/stat.ha \ +linux/socket.ha \ diff --git a/stdlib.mk b/stdlib.mk @@ -13,7 +13,6 @@ stdlib_rt_linux_srcs = \ $(STDLIB)/rt/+linux/+$(ARCH).ha \ $(STDLIB)/rt/+linux/syscallno+$(ARCH).ha \ $(STDLIB)/rt/+linux/syscalls.ha \ - $(STDLIB)/rt/+linux/syscallsarch+$(ARCH).ha \ $(STDLIB)/rt/+linux/signal.ha \ $(STDLIB)/rt/+linux/stat.ha \ $(STDLIB)/rt/+linux/socket.ha \ @@ -2414,7 +2413,6 @@ testlib_rt_linux_srcs = \ $(STDLIB)/rt/+linux/+$(ARCH).ha \ $(STDLIB)/rt/+linux/syscallno+$(ARCH).ha \ $(STDLIB)/rt/+linux/syscalls.ha \ - $(STDLIB)/rt/+linux/syscallsarch+$(ARCH).ha \ $(STDLIB)/rt/+linux/signal.ha \ $(STDLIB)/rt/+linux/stat.ha \ $(STDLIB)/rt/+linux/socket.ha \