hare

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

commit 8fad30c773b20e1b5a2d986f6caa0cd9c1020782
parent 11d71795e6127482da33ac0a26d2badf92157959
Author: Sebastian <sebastian@sebsite.pw>
Date:   Mon, 10 Oct 2022 17:26:50 -0400

unix: make getuid, setuid, and groups platform specific

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

Diffstat:
Mscripts/gen-stdlib | 12++++++------
Mstdlib.mk | 24++++++++++++------------
Runix/getuid.ha -> unix/+freebsd/getuid.ha | 0
Runix/groups.ha -> unix/+freebsd/groups.ha | 0
Runix/setuid.ha -> unix/+freebsd/setuid.ha | 0
Runix/getuid.ha -> unix/+linux/getuid.ha | 0
Runix/groups.ha -> unix/+linux/groups.ha | 0
Runix/setuid.ha -> unix/+linux/setuid.ha | 0
8 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/scripts/gen-stdlib b/scripts/gen-stdlib @@ -1331,18 +1331,18 @@ unix() { +linux/nice.ha \ +linux/pipe.ha \ +linux/umask.ha \ - getuid.ha \ - setuid.ha \ - groups.ha + +linux/getuid.ha \ + +linux/setuid.ha \ + +linux/groups.ha gen_ssa -plinux unix errors fs io gen_srcs -pfreebsd unix \ +freebsd/nice.ha \ +freebsd/pipe.ha \ +freebsd/umask.ha \ - getuid.ha \ - setuid.ha \ - groups.ha + +freebsd/getuid.ha \ + +freebsd/setuid.ha \ + +freebsd/groups.ha gen_ssa -pfreebsd unix errors fs io } diff --git a/stdlib.mk b/stdlib.mk @@ -2018,9 +2018,9 @@ stdlib_unix_linux_srcs = \ $(STDLIB)/unix/+linux/nice.ha \ $(STDLIB)/unix/+linux/pipe.ha \ $(STDLIB)/unix/+linux/umask.ha \ - $(STDLIB)/unix/getuid.ha \ - $(STDLIB)/unix/setuid.ha \ - $(STDLIB)/unix/groups.ha + $(STDLIB)/unix/+linux/getuid.ha \ + $(STDLIB)/unix/+linux/setuid.ha \ + $(STDLIB)/unix/+linux/groups.ha $(HARECACHE)/unix/unix-linux.ssa: $(stdlib_unix_linux_srcs) $(stdlib_rt) $(stdlib_errors_$(PLATFORM)) $(stdlib_fs_$(PLATFORM)) $(stdlib_io_$(PLATFORM)) @printf 'HAREC \t$@\n' @@ -2033,9 +2033,9 @@ stdlib_unix_freebsd_srcs = \ $(STDLIB)/unix/+freebsd/nice.ha \ $(STDLIB)/unix/+freebsd/pipe.ha \ $(STDLIB)/unix/+freebsd/umask.ha \ - $(STDLIB)/unix/getuid.ha \ - $(STDLIB)/unix/setuid.ha \ - $(STDLIB)/unix/groups.ha + $(STDLIB)/unix/+freebsd/getuid.ha \ + $(STDLIB)/unix/+freebsd/setuid.ha \ + $(STDLIB)/unix/+freebsd/groups.ha $(HARECACHE)/unix/unix-freebsd.ssa: $(stdlib_unix_freebsd_srcs) $(stdlib_rt) $(stdlib_errors_$(PLATFORM)) $(stdlib_fs_$(PLATFORM)) $(stdlib_io_$(PLATFORM)) @printf 'HAREC \t$@\n' @@ -4252,9 +4252,9 @@ testlib_unix_linux_srcs = \ $(STDLIB)/unix/+linux/nice.ha \ $(STDLIB)/unix/+linux/pipe.ha \ $(STDLIB)/unix/+linux/umask.ha \ - $(STDLIB)/unix/getuid.ha \ - $(STDLIB)/unix/setuid.ha \ - $(STDLIB)/unix/groups.ha + $(STDLIB)/unix/+linux/getuid.ha \ + $(STDLIB)/unix/+linux/setuid.ha \ + $(STDLIB)/unix/+linux/groups.ha $(TESTCACHE)/unix/unix-linux.ssa: $(testlib_unix_linux_srcs) $(testlib_rt) $(testlib_errors_$(PLATFORM)) $(testlib_fs_$(PLATFORM)) $(testlib_io_$(PLATFORM)) @printf 'HAREC \t$@\n' @@ -4267,9 +4267,9 @@ testlib_unix_freebsd_srcs = \ $(STDLIB)/unix/+freebsd/nice.ha \ $(STDLIB)/unix/+freebsd/pipe.ha \ $(STDLIB)/unix/+freebsd/umask.ha \ - $(STDLIB)/unix/getuid.ha \ - $(STDLIB)/unix/setuid.ha \ - $(STDLIB)/unix/groups.ha + $(STDLIB)/unix/+freebsd/getuid.ha \ + $(STDLIB)/unix/+freebsd/setuid.ha \ + $(STDLIB)/unix/+freebsd/groups.ha $(TESTCACHE)/unix/unix-freebsd.ssa: $(testlib_unix_freebsd_srcs) $(testlib_rt) $(testlib_errors_$(PLATFORM)) $(testlib_fs_$(PLATFORM)) $(testlib_io_$(PLATFORM)) @printf 'HAREC \t$@\n' diff --git a/unix/getuid.ha b/unix/+freebsd/getuid.ha diff --git a/unix/groups.ha b/unix/+freebsd/groups.ha diff --git a/unix/setuid.ha b/unix/+freebsd/setuid.ha diff --git a/unix/getuid.ha b/unix/+linux/getuid.ha diff --git a/unix/groups.ha b/unix/+linux/groups.ha diff --git a/unix/setuid.ha b/unix/+linux/setuid.ha