diff --git a/libc/SYSCALLS.TXT b/libc/SYSCALLS.TXT index 9389c9c84..369b23c76 100644 --- a/libc/SYSCALLS.TXT +++ b/libc/SYSCALLS.TXT @@ -275,10 +275,6 @@ int unshare(int) all int __sched_getaffinity:sched_getaffinity(pid_t pid, size_t setsize, cpu_set_t* set) all int __getcpu:getcpu(unsigned*, unsigned*, void*) all -# io priorities -int ioprio_set(int which, int who, int ioprio) all -int ioprio_get(int which, int who) all - # other int uname(struct utsname*) all mode_t umask(mode_t) all diff --git a/libc/arch-arm/syscalls/ioprio_get.S b/libc/arch-arm/syscalls/ioprio_get.S deleted file mode 100644 index 19e04ed1f..000000000 --- a/libc/arch-arm/syscalls/ioprio_get.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include - -ENTRY(ioprio_get) - mov ip, r7 - ldr r7, =__NR_ioprio_get - swi #0 - mov r7, ip - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno -END(ioprio_get) diff --git a/libc/arch-arm/syscalls/ioprio_set.S b/libc/arch-arm/syscalls/ioprio_set.S deleted file mode 100644 index 9b94efb59..000000000 --- a/libc/arch-arm/syscalls/ioprio_set.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include - -ENTRY(ioprio_set) - mov ip, r7 - ldr r7, =__NR_ioprio_set - swi #0 - mov r7, ip - cmn r0, #(MAX_ERRNO + 1) - bxls lr - neg r0, r0 - b __set_errno -END(ioprio_set) diff --git a/libc/arch-arm64/syscalls/ioprio_get.S b/libc/arch-arm64/syscalls/ioprio_get.S deleted file mode 100644 index 7e394c6a0..000000000 --- a/libc/arch-arm64/syscalls/ioprio_get.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include - -ENTRY(ioprio_get) - mov x8, __NR_ioprio_get - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno - - ret -END(ioprio_get) diff --git a/libc/arch-arm64/syscalls/ioprio_set.S b/libc/arch-arm64/syscalls/ioprio_set.S deleted file mode 100644 index ca43ed655..000000000 --- a/libc/arch-arm64/syscalls/ioprio_set.S +++ /dev/null @@ -1,14 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include - -ENTRY(ioprio_set) - mov x8, __NR_ioprio_set - svc #0 - - cmn x0, #(MAX_ERRNO + 1) - cneg x0, x0, hi - b.hi __set_errno - - ret -END(ioprio_set) diff --git a/libc/arch-mips/syscalls/ioprio_get.S b/libc/arch-mips/syscalls/ioprio_get.S deleted file mode 100644 index fbc8b17ea..000000000 --- a/libc/arch-mips/syscalls/ioprio_get.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include - -ENTRY(ioprio_get) - .set noreorder - .cpload t9 - li v0, __NR_ioprio_get - syscall - bnez a3, 1f - move a0, v0 - j ra - nop -1: - la t9,__set_errno - j t9 - nop - .set reorder -END(ioprio_get) diff --git a/libc/arch-mips/syscalls/ioprio_set.S b/libc/arch-mips/syscalls/ioprio_set.S deleted file mode 100644 index d0320ed89..000000000 --- a/libc/arch-mips/syscalls/ioprio_set.S +++ /dev/null @@ -1,19 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include - -ENTRY(ioprio_set) - .set noreorder - .cpload t9 - li v0, __NR_ioprio_set - syscall - bnez a3, 1f - move a0, v0 - j ra - nop -1: - la t9,__set_errno - j t9 - nop - .set reorder -END(ioprio_set) diff --git a/libc/arch-mips64/syscalls/ioprio_get.S b/libc/arch-mips64/syscalls/ioprio_get.S deleted file mode 100644 index 711890cf1..000000000 --- a/libc/arch-mips64/syscalls/ioprio_get.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include - -ENTRY(ioprio_get) - .set push - .set noreorder - li v0, __NR_ioprio_get - syscall - bnez a3, 1f - move a0, v0 - j ra - nop -1: - move t0, ra - bal 2f - nop -2: - .cpsetup ra, t1, 2b - LA t9,__set_errno - .cpreturn - j t9 - move ra, t0 - .set pop -END(ioprio_get) diff --git a/libc/arch-mips64/syscalls/ioprio_set.S b/libc/arch-mips64/syscalls/ioprio_set.S deleted file mode 100644 index 738403aed..000000000 --- a/libc/arch-mips64/syscalls/ioprio_set.S +++ /dev/null @@ -1,25 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include - -ENTRY(ioprio_set) - .set push - .set noreorder - li v0, __NR_ioprio_set - syscall - bnez a3, 1f - move a0, v0 - j ra - nop -1: - move t0, ra - bal 2f - nop -2: - .cpsetup ra, t1, 2b - LA t9,__set_errno - .cpreturn - j t9 - move ra, t0 - .set pop -END(ioprio_set) diff --git a/libc/arch-x86/syscalls/ioprio_get.S b/libc/arch-x86/syscalls/ioprio_get.S deleted file mode 100644 index 491c2f337..000000000 --- a/libc/arch-x86/syscalls/ioprio_get.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include - -ENTRY(ioprio_get) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - mov 12(%esp), %ebx - mov 16(%esp), %ecx - movl $__NR_ioprio_get, %eax - int $0x80 - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(ioprio_get) diff --git a/libc/arch-x86/syscalls/ioprio_set.S b/libc/arch-x86/syscalls/ioprio_set.S deleted file mode 100644 index e80602c2d..000000000 --- a/libc/arch-x86/syscalls/ioprio_set.S +++ /dev/null @@ -1,31 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include - -ENTRY(ioprio_set) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - pushl %edx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset edx, 0 - mov 16(%esp), %ebx - mov 20(%esp), %ecx - mov 24(%esp), %edx - movl $__NR_ioprio_set, %eax - int $0x80 - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno - addl $4, %esp -1: - popl %edx - popl %ecx - popl %ebx - ret -END(ioprio_set) diff --git a/libc/arch-x86_64/syscalls/ioprio_get.S b/libc/arch-x86_64/syscalls/ioprio_get.S deleted file mode 100644 index 729a288fb..000000000 --- a/libc/arch-x86_64/syscalls/ioprio_get.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include - -ENTRY(ioprio_get) - movl $__NR_ioprio_get, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno -1: - ret -END(ioprio_get) diff --git a/libc/arch-x86_64/syscalls/ioprio_set.S b/libc/arch-x86_64/syscalls/ioprio_set.S deleted file mode 100644 index 477fe610d..000000000 --- a/libc/arch-x86_64/syscalls/ioprio_set.S +++ /dev/null @@ -1,15 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include - -ENTRY(ioprio_set) - movl $__NR_ioprio_set, %eax - syscall - cmpq $-MAX_ERRNO, %rax - jb 1f - negl %eax - movl %eax, %edi - call __set_errno -1: - ret -END(ioprio_set)