| author | |
| committer | |
| log | 934df5bd448e7e27f2142d0d9ceec534f391c7f5 |
| tree | bc6609f7fe68c2e946dfcf6c7a0f5337544e6c72 |
| parent | b465037a65dd6a31c5865086ec4392a1d3a372bc |
10 files changed, 10 insertions(+), 0 deletions(-)
lib/std/os/linux/arm-eabi.zig+1| ... | ... | @@ -4,6 +4,7 @@ |
| 4 | 4 | // The MIT license requires this copyright notice to be included in all copies |
| 5 | 5 | // and substantial portions of the software. |
| 6 | 6 | usingnamespace @import("../bits.zig"); |
| 7 | usingnamespace @import("../bits/linux.zig"); | |
| 7 | 8 | |
| 8 | 9 | pub fn syscall0(number: SYS) usize { |
| 9 | 10 | return asm volatile ("svc #0" |
lib/std/os/linux/arm64.zig+1| ... | ... | @@ -4,6 +4,7 @@ |
| 4 | 4 | // The MIT license requires this copyright notice to be included in all copies |
| 5 | 5 | // and substantial portions of the software. |
| 6 | 6 | usingnamespace @import("../bits.zig"); |
| 7 | usingnamespace @import("../bits/linux.zig"); | |
| 7 | 8 | |
| 8 | 9 | pub fn syscall0(number: SYS) usize { |
| 9 | 10 | return asm volatile ("svc #0" |
lib/std/os/linux/i386.zig+1| ... | ... | @@ -4,6 +4,7 @@ |
| 4 | 4 | // The MIT license requires this copyright notice to be included in all copies |
| 5 | 5 | // and substantial portions of the software. |
| 6 | 6 | usingnamespace @import("../bits.zig"); |
| 7 | usingnamespace @import("../bits/linux.zig"); | |
| 7 | 8 | |
| 8 | 9 | pub fn syscall0(number: SYS) usize { |
| 9 | 10 | return asm volatile ("int $0x80" |
lib/std/os/linux/mips.zig+1| ... | ... | @@ -4,6 +4,7 @@ |
| 4 | 4 | // The MIT license requires this copyright notice to be included in all copies |
| 5 | 5 | // and substantial portions of the software. |
| 6 | 6 | usingnamespace @import("../bits.zig"); |
| 7 | usingnamespace @import("../bits/linux.zig"); | |
| 7 | 8 | |
| 8 | 9 | pub fn syscall0(number: SYS) usize { |
| 9 | 10 | return asm volatile ( |
lib/std/os/linux/powerpc.zig+1| ... | ... | @@ -5,6 +5,7 @@ |
| 5 | 5 | // and substantial portions of the software. |
| 6 | 6 | |
| 7 | 7 | usingnamespace @import("../bits.zig"); |
| 8 | usingnamespace @import("../bits/linux.zig"); | |
| 8 | 9 | |
| 9 | 10 | pub fn syscall0(number: SYS) usize { |
| 10 | 11 | return asm volatile ( |
lib/std/os/linux/powerpc64.zig+1| ... | ... | @@ -5,6 +5,7 @@ |
| 5 | 5 | // and substantial portions of the software. |
| 6 | 6 | |
| 7 | 7 | usingnamespace @import("../bits.zig"); |
| 8 | usingnamespace @import("../bits/linux.zig"); | |
| 8 | 9 | |
| 9 | 10 | pub fn syscall0(number: SYS) usize { |
| 10 | 11 | return asm volatile ( |
lib/std/os/linux/riscv64.zig+1| ... | ... | @@ -4,6 +4,7 @@ |
| 4 | 4 | // The MIT license requires this copyright notice to be included in all copies |
| 5 | 5 | // and substantial portions of the software. |
| 6 | 6 | usingnamespace @import("../bits.zig"); |
| 7 | usingnamespace @import("../bits/linux.zig"); | |
| 7 | 8 | |
| 8 | 9 | pub fn syscall0(number: SYS) usize { |
| 9 | 10 | return asm volatile ("ecall" |
lib/std/os/linux/sparc64.zig+1| ... | ... | @@ -1,4 +1,5 @@ |
| 1 | 1 | usingnamespace @import("../bits.zig"); |
| 2 | usingnamespace @import("../bits/linux.zig"); | |
| 2 | 3 | |
| 3 | 4 | pub fn syscall_pipe(fd: *[2]i32) usize { |
| 4 | 5 | return asm volatile ( |
lib/std/os/linux/thumb.zig+1| ... | ... | @@ -4,6 +4,7 @@ |
| 4 | 4 | // The MIT license requires this copyright notice to be included in all copies |
| 5 | 5 | // and substantial portions of the software. |
| 6 | 6 | usingnamespace @import("../bits.zig"); |
| 7 | usingnamespace @import("../bits/linux.zig"); | |
| 7 | 8 | |
| 8 | 9 | // The syscall interface is identical to the ARM one but we're facing an extra |
| 9 | 10 | // challenge: r7, the register where the syscall number is stored, may be |
lib/std/os/linux/x86_64.zig+1| ... | ... | @@ -4,6 +4,7 @@ |
| 4 | 4 | // The MIT license requires this copyright notice to be included in all copies |
| 5 | 5 | // and substantial portions of the software. |
| 6 | 6 | usingnamespace @import("../bits.zig"); |
| 7 | usingnamespace @import("../bits/linux.zig"); | |
| 7 | 8 | |
| 8 | 9 | pub fn syscall0(number: SYS) usize { |
| 9 | 10 | return asm volatile ("syscall" |