Minor fixes + cleanup in os2 and sys/linux

Add NOFOLLOW to os2.remove
Change Dev from int to u64 and make relavant casts
Fix compat64_arg_pair
This commit is contained in:
jason
2025-01-02 11:03:24 -05:00
parent fdd3b46c10
commit ce1f3b34c0
5 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ when size_of(int) == 4 {
// xxx64 system calls take some parameters as pairs of ulongs rather than a single pointer
@(private)
compat64_arg_pair :: #force_inline proc "contextless" (a: i64) -> (hi: uint, lo: uint) {
no_sign := uint(a)
no_sign := u64(a)
hi = uint(no_sign >> 32)
lo = uint(no_sign & 0xffff_ffff)
return