clarify the purpose of this project
[nyanglibc.git] / posix / gai_strerror.s
blob6415650c662ae04434a9460be8662cbe9bbeb910
1 .text
2 .section .rodata.str1.1,"aMS",@progbits,1
3 .LC0:
4 .string "Unknown error"
5 .text
6 .p2align 4,,15
7 .globl gai_strerror
8 .hidden gai_strerror
9 .type gai_strerror, @function
10 gai_strerror:
11 movl $-9, %eax
12 xorl %edx, %edx
13 leaq msgidx(%rip), %rcx
14 jmp .L4
15 .p2align 4,,10
16 .p2align 3
17 .L2:
18 addq $1, %rdx
19 cmpq $17, %rdx
20 je .L5
21 movswl (%rcx,%rdx,4), %eax
22 .L4:
23 cmpl %edi, %eax
24 jne .L2
25 leaq msgidx(%rip), %rax
26 movzwl 2(%rax,%rdx,4), %esi
27 leaq msgstr(%rip), %rax
28 addq %rax, %rsi
29 .L3:
30 leaq _libc_intl_domainname(%rip), %rdi
31 movl $5, %edx
32 jmp __dcgettext
33 .p2align 4,,10
34 .p2align 3
35 .L5:
36 leaq .LC0(%rip), %rsi
37 jmp .L3
38 .size gai_strerror, .-gai_strerror
39 .section .rodata
40 .align 32
41 .type msgidx, @object
42 .size msgidx, 68
43 msgidx:
44 .value -9
45 .value 0
46 .value -3
47 .value 42
48 .value -1
49 .value 79
50 .value -4
51 .value 102
52 .value -6
53 .value 145
54 .value -10
55 .value 169
56 .value -5
57 .value 195
58 .value -2
59 .value 231
60 .value -8
61 .value 257
62 .value -7
63 .value 296
64 .value -11
65 .value 322
66 .value -100
67 .value 335
68 .value -101
69 .value 366
70 .value -102
71 .value 383
72 .value -103
73 .value 404
74 .value -104
75 .value 422
76 .value -105
77 .value 446
78 .align 32
79 .type msgstr, @object
80 .size msgstr, 485
81 msgstr:
82 .string "Address family for hostname not supported"
83 .string "Temporary failure in name resolution"
84 .string "Bad value for ai_flags"
85 .string "Non-recoverable failure in name resolution"
86 .string "ai_family not supported"
87 .string "Memory allocation failure"
88 .string "No address associated with hostname"
89 .string "Name or service not known"
90 .string "Servname not supported for ai_socktype"
91 .string "ai_socktype not supported"
92 .string "System error"
93 .string "Processing request in progress"
94 .string "Request canceled"
95 .string "Request not canceled"
96 .string "All requests done"
97 .string "Interrupted by a signal"
98 .string "Parameter string not correctly encoded"
99 .hidden __dcgettext
100 .hidden _libc_intl_domainname