From cd5959fe5ab04786cd5dee3cf09f725229ae7c7b Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 17 Mar 2026 13:35:48 +0900 Subject: ext: isolate from container/std These are too general to belong in the container package. This targets the v0.4 release to reduce the wrapper maintenance burden. Signed-off-by: Ophestra --- container/syscall.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'container/syscall.go') diff --git a/container/syscall.go b/container/syscall.go index 35f6d006..f5c634b0 100644 --- a/container/syscall.go +++ b/container/syscall.go @@ -4,7 +4,7 @@ import ( . "syscall" "unsafe" - "hakurei.app/container/std" + "hakurei.app/ext" ) // Prctl manipulates various aspects of the behavior of the calling thread or process. @@ -46,7 +46,7 @@ func Isatty(fd int) bool { // schedParam is equivalent to struct sched_param from include/linux/sched.h. type schedParam struct { // sched_priority - priority std.Int + priority ext.Int } // schedSetscheduler sets both the scheduling policy and parameters for the @@ -62,7 +62,7 @@ type schedParam struct { // this if you do not have something similar in place! // // [very subtle to use correctly]: https://www.openwall.com/lists/musl/2016/03/01/4 -func schedSetscheduler(tid int, policy std.SchedPolicy, param *schedParam) error { +func schedSetscheduler(tid int, policy ext.SchedPolicy, param *schedParam) error { if _, _, errno := Syscall( SYS_SCHED_SETSCHEDULER, uintptr(tid), -- cgit v1.3.1