aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/syscall.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-03-17 13:35:48 +0900
committerOphestra <cat@gensokyo.uk>2026-03-17 13:39:26 +0900
commitcd5959fe5ab04786cd5dee3cf09f725229ae7c7b (patch)
treec0dae3f950528e7c3b6d7359441ee8aeb9a488cd /container/syscall.go
parent08c35ca24fabc41268411cec14ea386a6d87ece9 (diff)
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 <cat@gensokyo.uk>
Diffstat (limited to 'container/syscall.go')
-rw-r--r--container/syscall.go6
1 files changed, 3 insertions, 3 deletions
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),