clarify the purpose of this project
[nyanglibc.git] / stdio-common / errlist.s
blob21773965ff2b1bd7b3095c19f63cd84b243d29e0
1 .text
2 .hidden _sys_errlist_internal
3 .globl _sys_errlist_internal
4 .section .rodata.str1.1,"aMS",@progbits,1
5 .LC0:
6 .string "Success"
7 .LC1:
8 .string "Operation not permitted"
9 .LC2:
10 .string "No such file or directory"
11 .LC3:
12 .string "No such process"
13 .LC4:
14 .string "Interrupted system call"
15 .LC5:
16 .string "Input/output error"
17 .LC6:
18 .string "No such device or address"
19 .LC7:
20 .string "Argument list too long"
21 .LC8:
22 .string "Exec format error"
23 .LC9:
24 .string "Bad file descriptor"
25 .LC10:
26 .string "No child processes"
27 .section .rodata.str1.8,"aMS",@progbits,1
28 .align 8
29 .LC11:
30 .string "Resource temporarily unavailable"
31 .section .rodata.str1.1
32 .LC12:
33 .string "Cannot allocate memory"
34 .LC13:
35 .string "Permission denied"
36 .LC14:
37 .string "Bad address"
38 .LC15:
39 .string "Block device required"
40 .LC16:
41 .string "Device or resource busy"
42 .LC17:
43 .string "File exists"
44 .LC18:
45 .string "Invalid cross-device link"
46 .LC19:
47 .string "No such device"
48 .LC20:
49 .string "Not a directory"
50 .LC21:
51 .string "Is a directory"
52 .LC22:
53 .string "Invalid argument"
54 .LC23:
55 .string "Too many open files in system"
56 .LC24:
57 .string "Too many open files"
58 .section .rodata.str1.8
59 .align 8
60 .LC25:
61 .string "Inappropriate ioctl for device"
62 .section .rodata.str1.1
63 .LC26:
64 .string "Text file busy"
65 .LC27:
66 .string "File too large"
67 .LC28:
68 .string "No space left on device"
69 .LC29:
70 .string "Illegal seek"
71 .LC30:
72 .string "Read-only file system"
73 .LC31:
74 .string "Too many links"
75 .LC32:
76 .string "Broken pipe"
77 .section .rodata.str1.8
78 .align 8
79 .LC33:
80 .string "Numerical argument out of domain"
81 .section .rodata.str1.1
82 .LC34:
83 .string "Numerical result out of range"
84 .LC35:
85 .string "Resource deadlock avoided"
86 .LC36:
87 .string "File name too long"
88 .LC37:
89 .string "No locks available"
90 .LC38:
91 .string "Function not implemented"
92 .LC39:
93 .string "Directory not empty"
94 .section .rodata.str1.8
95 .align 8
96 .LC40:
97 .string "Too many levels of symbolic links"
98 .section .rodata.str1.1
99 .LC41:
100 .string "No message of desired type"
101 .LC42:
102 .string "Identifier removed"
103 .LC43:
104 .string "Channel number out of range"
105 .LC44:
106 .string "Level 2 not synchronized"
107 .LC45:
108 .string "Level 3 halted"
109 .LC46:
110 .string "Level 3 reset"
111 .LC47:
112 .string "Link number out of range"
113 .LC48:
114 .string "Protocol driver not attached"
115 .LC49:
116 .string "No CSI structure available"
117 .LC50:
118 .string "Level 2 halted"
119 .LC51:
120 .string "Invalid exchange"
121 .LC52:
122 .string "Invalid request descriptor"
123 .LC53:
124 .string "Exchange full"
125 .LC54:
126 .string "No anode"
127 .LC55:
128 .string "Invalid request code"
129 .LC56:
130 .string "Invalid slot"
131 .LC57:
132 .string "Bad font file format"
133 .LC58:
134 .string "Device not a stream"
135 .LC59:
136 .string "No data available"
137 .LC60:
138 .string "Timer expired"
139 .LC61:
140 .string "Out of streams resources"
141 .LC62:
142 .string "Machine is not on the network"
143 .LC63:
144 .string "Package not installed"
145 .LC64:
146 .string "Object is remote"
147 .LC65:
148 .string "Link has been severed"
149 .LC66:
150 .string "Advertise error"
151 .LC67:
152 .string "Srmount error"
153 .LC68:
154 .string "Communication error on send"
155 .LC69:
156 .string "Protocol error"
157 .LC70:
158 .string "Multihop attempted"
159 .LC71:
160 .string "RFS specific error"
161 .LC72:
162 .string "Bad message"
163 .section .rodata.str1.8
164 .align 8
165 .LC73:
166 .string "Value too large for defined data type"
167 .section .rodata.str1.1
168 .LC74:
169 .string "Name not unique on network"
170 .LC75:
171 .string "File descriptor in bad state"
172 .LC76:
173 .string "Remote address changed"
174 .section .rodata.str1.8
175 .align 8
176 .LC77:
177 .string "Can not access a needed shared library"
178 .align 8
179 .LC78:
180 .string "Accessing a corrupted shared library"
181 .align 8
182 .LC79:
183 .string ".lib section in a.out corrupted"
184 .align 8
185 .LC80:
186 .string "Attempting to link in too many shared libraries"
187 .align 8
188 .LC81:
189 .string "Cannot exec a shared library directly"
190 .align 8
191 .LC82:
192 .string "Invalid or incomplete multibyte or wide character"
193 .align 8
194 .LC83:
195 .string "Interrupted system call should be restarted"
196 .section .rodata.str1.1
197 .LC84:
198 .string "Streams pipe error"
199 .LC85:
200 .string "Too many users"
201 .section .rodata.str1.8
202 .align 8
203 .LC86:
204 .string "Socket operation on non-socket"
205 .section .rodata.str1.1
206 .LC87:
207 .string "Destination address required"
208 .LC88:
209 .string "Message too long"
210 .section .rodata.str1.8
211 .align 8
212 .LC89:
213 .string "Protocol wrong type for socket"
214 .section .rodata.str1.1
215 .LC90:
216 .string "Protocol not available"
217 .LC91:
218 .string "Protocol not supported"
219 .LC92:
220 .string "Socket type not supported"
221 .LC93:
222 .string "Operation not supported"
223 .LC94:
224 .string "Protocol family not supported"
225 .section .rodata.str1.8
226 .align 8
227 .LC95:
228 .string "Address family not supported by protocol"
229 .section .rodata.str1.1
230 .LC96:
231 .string "Address already in use"
232 .section .rodata.str1.8
233 .align 8
234 .LC97:
235 .string "Cannot assign requested address"
236 .section .rodata.str1.1
237 .LC98:
238 .string "Network is down"
239 .LC99:
240 .string "Network is unreachable"
241 .section .rodata.str1.8
242 .align 8
243 .LC100:
244 .string "Network dropped connection on reset"
245 .align 8
246 .LC101:
247 .string "Software caused connection abort"
248 .section .rodata.str1.1
249 .LC102:
250 .string "Connection reset by peer"
251 .LC103:
252 .string "No buffer space available"
253 .section .rodata.str1.8
254 .align 8
255 .LC104:
256 .string "Transport endpoint is already connected"
257 .align 8
258 .LC105:
259 .string "Transport endpoint is not connected"
260 .align 8
261 .LC106:
262 .string "Cannot send after transport endpoint shutdown"
263 .align 8
264 .LC107:
265 .string "Too many references: cannot splice"
266 .section .rodata.str1.1
267 .LC108:
268 .string "Connection timed out"
269 .LC109:
270 .string "Connection refused"
271 .LC110:
272 .string "Host is down"
273 .LC111:
274 .string "No route to host"
275 .LC112:
276 .string "Operation already in progress"
277 .LC113:
278 .string "Operation now in progress"
279 .LC114:
280 .string "Stale file handle"
281 .LC115:
282 .string "Structure needs cleaning"
283 .LC116:
284 .string "Not a XENIX named type file"
285 .LC117:
286 .string "No XENIX semaphores available"
287 .LC118:
288 .string "Is a named type file"
289 .LC119:
290 .string "Remote I/O error"
291 .LC120:
292 .string "Disk quota exceeded"
293 .LC121:
294 .string "No medium found"
295 .LC122:
296 .string "Wrong medium type"
297 .LC123:
298 .string "Operation canceled"
299 .LC124:
300 .string "Required key not available"
301 .LC125:
302 .string "Key has expired"
303 .LC126:
304 .string "Key has been revoked"
305 .LC127:
306 .string "Key was rejected by service"
307 .LC128:
308 .string "Owner died"
309 .LC129:
310 .string "State not recoverable"
311 .section .rodata.str1.8
312 .align 8
313 .LC130:
314 .string "Operation not possible due to RF-kill"
315 .align 8
316 .LC131:
317 .string "Memory page has hardware error"
318 .section .data.rel.ro.local,"aw",@progbits
319 .align 32
320 .type _sys_errlist_internal, @object
321 .size _sys_errlist_internal, 1072
322 _sys_errlist_internal:
323 .quad .LC0
324 .quad .LC1
325 .quad .LC2
326 .quad .LC3
327 .quad .LC4
328 .quad .LC5
329 .quad .LC6
330 .quad .LC7
331 .quad .LC8
332 .quad .LC9
333 .quad .LC10
334 .quad .LC11
335 .quad .LC12
336 .quad .LC13
337 .quad .LC14
338 .quad .LC15
339 .quad .LC16
340 .quad .LC17
341 .quad .LC18
342 .quad .LC19
343 .quad .LC20
344 .quad .LC21
345 .quad .LC22
346 .quad .LC23
347 .quad .LC24
348 .quad .LC25
349 .quad .LC26
350 .quad .LC27
351 .quad .LC28
352 .quad .LC29
353 .quad .LC30
354 .quad .LC31
355 .quad .LC32
356 .quad .LC33
357 .quad .LC34
358 .quad .LC35
359 .quad .LC36
360 .quad .LC37
361 .quad .LC38
362 .quad .LC39
363 .quad .LC40
364 .zero 8
365 .quad .LC41
366 .quad .LC42
367 .quad .LC43
368 .quad .LC44
369 .quad .LC45
370 .quad .LC46
371 .quad .LC47
372 .quad .LC48
373 .quad .LC49
374 .quad .LC50
375 .quad .LC51
376 .quad .LC52
377 .quad .LC53
378 .quad .LC54
379 .quad .LC55
380 .quad .LC56
381 .zero 8
382 .quad .LC57
383 .quad .LC58
384 .quad .LC59
385 .quad .LC60
386 .quad .LC61
387 .quad .LC62
388 .quad .LC63
389 .quad .LC64
390 .quad .LC65
391 .quad .LC66
392 .quad .LC67
393 .quad .LC68
394 .quad .LC69
395 .quad .LC70
396 .quad .LC71
397 .quad .LC72
398 .quad .LC73
399 .quad .LC74
400 .quad .LC75
401 .quad .LC76
402 .quad .LC77
403 .quad .LC78
404 .quad .LC79
405 .quad .LC80
406 .quad .LC81
407 .quad .LC82
408 .quad .LC83
409 .quad .LC84
410 .quad .LC85
411 .quad .LC86
412 .quad .LC87
413 .quad .LC88
414 .quad .LC89
415 .quad .LC90
416 .quad .LC91
417 .quad .LC92
418 .quad .LC93
419 .quad .LC94
420 .quad .LC95
421 .quad .LC96
422 .quad .LC97
423 .quad .LC98
424 .quad .LC99
425 .quad .LC100
426 .quad .LC101
427 .quad .LC102
428 .quad .LC103
429 .quad .LC104
430 .quad .LC105
431 .quad .LC106
432 .quad .LC107
433 .quad .LC108
434 .quad .LC109
435 .quad .LC110
436 .quad .LC111
437 .quad .LC112
438 .quad .LC113
439 .quad .LC114
440 .quad .LC115
441 .quad .LC116
442 .quad .LC117
443 .quad .LC118
444 .quad .LC119
445 .quad .LC120
446 .quad .LC121
447 .quad .LC122
448 .quad .LC123
449 .quad .LC124
450 .quad .LC125
451 .quad .LC126
452 .quad .LC127
453 .quad .LC128
454 .quad .LC129
455 .quad .LC130
456 .quad .LC131
457 .text
458 .p2align 4,,15
459 .globl __get_errlist
460 .hidden __get_errlist
461 .type __get_errlist, @function
462 __get_errlist:
463 cmpl $133, %edi
464 ja .L3
465 leaq _sys_errlist_internal(%rip), %rax
466 movslq %edi, %rdi
467 movq (%rax,%rdi,8), %rax
469 .p2align 4,,10
470 .p2align 3
471 .L3:
472 xorl %eax, %eax
474 .size __get_errlist, .-__get_errlist
475 .section .rodata
476 .align 32
477 .type _sys_errname, @object
478 .size _sys_errname, 1109
479 _sys_errname:
480 .string "0"
481 .string "EPERM"
482 .string "ENOENT"
483 .string "ESRCH"
484 .string "EINTR"
485 .string "EIO"
486 .string "ENXIO"
487 .string "E2BIG"
488 .string "ENOEXEC"
489 .string "EBADF"
490 .string "ECHILD"
491 .string "EDEADLK"
492 .string "ENOMEM"
493 .string "EACCES"
494 .string "EFAULT"
495 .string "ENOTBLK"
496 .string "EBUSY"
497 .string "EEXIST"
498 .string "EXDEV"
499 .string "ENODEV"
500 .string "ENOTDIR"
501 .string "EISDIR"
502 .string "EINVAL"
503 .string "EMFILE"
504 .string "ENFILE"
505 .string "ENOTTY"
506 .string "ETXTBSY"
507 .string "EFBIG"
508 .string "ENOSPC"
509 .string "ESPIPE"
510 .string "EROFS"
511 .string "EMLINK"
512 .string "EPIPE"
513 .string "EDOM"
514 .string "ERANGE"
515 .string "EAGAIN"
516 .string "EINPROGRESS"
517 .string "EALREADY"
518 .string "ENOTSOCK"
519 .string "EMSGSIZE"
520 .string "EPROTOTYPE"
521 .string "ENOPROTOOPT"
522 .string "EPROTONOSUPPORT"
523 .string "ESOCKTNOSUPPORT"
524 .string "EOPNOTSUPP"
525 .string "EPFNOSUPPORT"
526 .string "EAFNOSUPPORT"
527 .string "EADDRINUSE"
528 .string "EADDRNOTAVAIL"
529 .string "ENETDOWN"
530 .string "ENETUNREACH"
531 .string "ENETRESET"
532 .string "ECONNABORTED"
533 .string "ECONNRESET"
534 .string "ENOBUFS"
535 .string "EISCONN"
536 .string "ENOTCONN"
537 .string "EDESTADDRREQ"
538 .string "ESHUTDOWN"
539 .string "ETOOMANYREFS"
540 .string "ETIMEDOUT"
541 .string "ECONNREFUSED"
542 .string "ELOOP"
543 .string "ENAMETOOLONG"
544 .string "EHOSTDOWN"
545 .string "EHOSTUNREACH"
546 .string "ENOTEMPTY"
547 .string "EUSERS"
548 .string "EDQUOT"
549 .string "ESTALE"
550 .string "EREMOTE"
551 .string "ENOLCK"
552 .string "ENOSYS"
553 .string "EILSEQ"
554 .string "EBADMSG"
555 .string "EIDRM"
556 .string "EMULTIHOP"
557 .string "ENODATA"
558 .string "ENOLINK"
559 .string "ENOMSG"
560 .string "ENOSR"
561 .string "ENOSTR"
562 .string "EOVERFLOW"
563 .string "EPROTO"
564 .string "ETIME"
565 .string "ECANCELED"
566 .string "EOWNERDEAD"
567 .string "ENOTRECOVERABLE"
568 .string "ERESTART"
569 .string "ECHRNG"
570 .string "EL2NSYNC"
571 .string "EL3HLT"
572 .string "EL3RST"
573 .string "ELNRNG"
574 .string "EUNATCH"
575 .string "ENOCSI"
576 .string "EL2HLT"
577 .string "EBADE"
578 .string "EBADR"
579 .string "EXFULL"
580 .string "ENOANO"
581 .string "EBADRQC"
582 .string "EBADSLT"
583 .string "EBFONT"
584 .string "ENONET"
585 .string "ENOPKG"
586 .string "EADV"
587 .string "ESRMNT"
588 .string "ECOMM"
589 .string "EDOTDOT"
590 .string "ENOTUNIQ"
591 .string "EBADFD"
592 .string "EREMCHG"
593 .string "ELIBACC"
594 .string "ELIBBAD"
595 .string "ELIBSCN"
596 .string "ELIBMAX"
597 .string "ELIBEXEC"
598 .string "ESTRPIPE"
599 .string "EUCLEAN"
600 .string "ENOTNAM"
601 .string "ENAVAIL"
602 .string "EISNAM"
603 .string "EREMOTEIO"
604 .string "ENOMEDIUM"
605 .string "EMEDIUMTYPE"
606 .string "ENOKEY"
607 .string "EKEYEXPIRED"
608 .string "EKEYREVOKED"
609 .string "EKEYREJECTED"
610 .string "ERFKILL"
611 .string "EHWPOISON"
612 .align 32
613 .type _sys_errnameidx, @object
614 .size _sys_errnameidx, 268
615 _sys_errnameidx:
616 .value 0
617 .value 2
618 .value 8
619 .value 15
620 .value 21
621 .value 27
622 .value 31
623 .value 37
624 .value 43
625 .value 51
626 .value 57
627 .value 229
628 .value 72
629 .value 79
630 .value 86
631 .value 93
632 .value 101
633 .value 107
634 .value 114
635 .value 120
636 .value 127
637 .value 135
638 .value 142
639 .value 156
640 .value 149
641 .value 163
642 .value 170
643 .value 178
644 .value 184
645 .value 191
646 .value 198
647 .value 204
648 .value 211
649 .value 217
650 .value 222
651 .value 64
652 .value 537
653 .value 612
654 .value 619
655 .value 573
656 .value 531
657 .zero 2
658 .value 673
659 .value 641
660 .value 762
661 .value 769
662 .value 778
663 .value 785
664 .value 792
665 .value 799
666 .value 807
667 .value 814
668 .value 821
669 .value 827
670 .value 833
671 .value 840
672 .value 847
673 .value 855
674 .zero 2
675 .value 863
676 .value 686
677 .value 657
678 .value 710
679 .value 680
680 .value 870
681 .value 877
682 .value 604
683 .value 665
684 .value 884
685 .value 889
686 .value 896
687 .value 703
688 .value 647
689 .value 902
690 .value 633
691 .value 693
692 .value 910
693 .value 919
694 .value 926
695 .value 934
696 .value 942
697 .value 950
698 .value 958
699 .value 966
700 .value 626
701 .value 753
702 .value 975
703 .value 583
704 .value 257
705 .value 472
706 .value 266
707 .value 275
708 .value 286
709 .value 298
710 .value 314
711 .value 330
712 .value 341
713 .value 354
714 .value 367
715 .value 378
716 .value 392
717 .value 401
718 .value 413
719 .value 423
720 .value 436
721 .value 447
722 .value 455
723 .value 463
724 .value 485
725 .value 495
726 .value 508
727 .value 518
728 .value 550
729 .value 560
730 .value 248
731 .value 236
732 .value 597
733 .value 984
734 .value 992
735 .value 1000
736 .value 1008
737 .value 1015
738 .value 590
739 .value 1025
740 .value 1035
741 .value 716
742 .value 1047
743 .value 1054
744 .value 1066
745 .value 1078
746 .value 726
747 .value 737
748 .value 1091
749 .value 1099
750 .text
751 .p2align 4,,15
752 .globl __get_errname
753 .hidden __get_errname
754 .type __get_errname, @function
755 __get_errname:
756 cmpl $133, %edi
757 ja .L9
758 leaq _sys_errnameidx(%rip), %rax
759 movslq %edi, %rdx
760 testl %edi, %edi
761 movzwl (%rax,%rdx,2), %eax
762 je .L7
763 testw %ax, %ax
764 je .L9
765 .L7:
766 leaq _sys_errname(%rip), %rdx
767 addq %rdx, %rax
769 .p2align 4,,10
770 .p2align 3
771 .L9:
772 xorl %eax, %eax
774 .size __get_errname, .-__get_errname