cosmopolitan/libc/nt/ws2_32/getpeername.S

15 lines
270 B
ArmAsm
Raw Normal View History

2023-05-02 02:43:59 +00:00
#include "libc/nt/codegen.h"
2020-06-15 14:18:57 +00:00
.imp ws2_32,__imp_getpeername,getpeername,5
2023-05-02 02:43:59 +00:00
#ifdef __x86_64__
2020-06-15 14:18:57 +00:00
.text.windows
__sys_getpeername_nt:
2020-06-15 14:18:57 +00:00
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_getpeername(%rip),%rax
jmp __sysv2nt
.endfn __sys_getpeername_nt,globl
2020-06-15 14:18:57 +00:00
.previous
2023-05-02 02:43:59 +00:00
#endif