cosmopolitan/libc/sysv/errfuns/elibscn.S

15 lines
224 B
ArmAsm
Raw Normal View History

#include "libc/macros.internal.h"
2020-06-15 14:18:57 +00:00
.text.unlikely
2022-05-16 20:20:08 +00:00
.section .privileged,"ax",@progbits
2020-06-15 14:18:57 +00:00
elibscn:
.leafprologue
2022-05-16 20:20:08 +00:00
mov ELIBSCN(%rip),%ecx
.errno
mov %ecx,(%rax)
2020-06-15 14:18:57 +00:00
push $-1
pop %rax
.leafepilogue
.endfn elibscn,globl,hidden