blob: 3cb68ac36cb6692b8e8ac02371045521eca80def [file] [log] [blame]
Elliott Hughesd67b0372019-04-15 14:18:26 -07001/* Generated by gensyscalls.py. Do not edit. */
2#include <private/bionic_asm.h>
3
4ENTRY(execve)
5 pushl %ebx
6 .cfi_def_cfa_offset 8
7 .cfi_rel_offset ebx, 0
8 pushl %ecx
9 .cfi_adjust_cfa_offset 4
10 .cfi_rel_offset ecx, 0
11 pushl %edx
12 .cfi_adjust_cfa_offset 4
13 .cfi_rel_offset edx, 0
14
15 call __kernel_syscall
16 pushl %eax
17 .cfi_adjust_cfa_offset 4
18 .cfi_rel_offset eax, 0
19
20 mov 20(%esp), %ebx
21 mov 24(%esp), %ecx
22 mov 28(%esp), %edx
23 movl $__NR_execve, %eax
24 call *(%esp)
25 addl $4, %esp
26
27 cmpl $-MAX_ERRNO, %eax
28 jb 1f
29 negl %eax
30 pushl %eax
31 call __set_errno_internal
32 addl $4, %esp
331:
34 popl %edx
35 popl %ecx
36 popl %ebx
37 ret
38END(execve)
39
40ENTRY(getuid)
41
42 call __kernel_syscall
43 pushl %eax
44 .cfi_adjust_cfa_offset 4
45 .cfi_rel_offset eax, 0
46
47 movl $__NR_getuid32, %eax
48 call *(%esp)
49 addl $4, %esp
50
51 cmpl $-MAX_ERRNO, %eax
52 jb 1f
53 negl %eax
54 pushl %eax
55 call __set_errno_internal
56 addl $4, %esp
571:
58 ret
59END(getuid)
60
61ENTRY(getgid)
62
63 call __kernel_syscall
64 pushl %eax
65 .cfi_adjust_cfa_offset 4
66 .cfi_rel_offset eax, 0
67
68 movl $__NR_getgid32, %eax
69 call *(%esp)
70 addl $4, %esp
71
72 cmpl $-MAX_ERRNO, %eax
73 jb 1f
74 negl %eax
75 pushl %eax
76 call __set_errno_internal
77 addl $4, %esp
781:
79 ret
80END(getgid)
81
82ENTRY(geteuid)
83
84 call __kernel_syscall
85 pushl %eax
86 .cfi_adjust_cfa_offset 4
87 .cfi_rel_offset eax, 0
88
89 movl $__NR_geteuid32, %eax
90 call *(%esp)
91 addl $4, %esp
92
93 cmpl $-MAX_ERRNO, %eax
94 jb 1f
95 negl %eax
96 pushl %eax
97 call __set_errno_internal
98 addl $4, %esp
991:
100 ret
101END(geteuid)
102
103ENTRY(getegid)
104
105 call __kernel_syscall
106 pushl %eax
107 .cfi_adjust_cfa_offset 4
108 .cfi_rel_offset eax, 0
109
110 movl $__NR_getegid32, %eax
111 call *(%esp)
112 addl $4, %esp
113
114 cmpl $-MAX_ERRNO, %eax
115 jb 1f
116 negl %eax
117 pushl %eax
118 call __set_errno_internal
119 addl $4, %esp
1201:
121 ret
122END(getegid)
123
124ENTRY(getresuid)
125 pushl %ebx
126 .cfi_def_cfa_offset 8
127 .cfi_rel_offset ebx, 0
128 pushl %ecx
129 .cfi_adjust_cfa_offset 4
130 .cfi_rel_offset ecx, 0
131 pushl %edx
132 .cfi_adjust_cfa_offset 4
133 .cfi_rel_offset edx, 0
134
135 call __kernel_syscall
136 pushl %eax
137 .cfi_adjust_cfa_offset 4
138 .cfi_rel_offset eax, 0
139
140 mov 20(%esp), %ebx
141 mov 24(%esp), %ecx
142 mov 28(%esp), %edx
143 movl $__NR_getresuid32, %eax
144 call *(%esp)
145 addl $4, %esp
146
147 cmpl $-MAX_ERRNO, %eax
148 jb 1f
149 negl %eax
150 pushl %eax
151 call __set_errno_internal
152 addl $4, %esp
1531:
154 popl %edx
155 popl %ecx
156 popl %ebx
157 ret
158END(getresuid)
159
160ENTRY(getresgid)
161 pushl %ebx
162 .cfi_def_cfa_offset 8
163 .cfi_rel_offset ebx, 0
164 pushl %ecx
165 .cfi_adjust_cfa_offset 4
166 .cfi_rel_offset ecx, 0
167 pushl %edx
168 .cfi_adjust_cfa_offset 4
169 .cfi_rel_offset edx, 0
170
171 call __kernel_syscall
172 pushl %eax
173 .cfi_adjust_cfa_offset 4
174 .cfi_rel_offset eax, 0
175
176 mov 20(%esp), %ebx
177 mov 24(%esp), %ecx
178 mov 28(%esp), %edx
179 movl $__NR_getresgid32, %eax
180 call *(%esp)
181 addl $4, %esp
182
183 cmpl $-MAX_ERRNO, %eax
184 jb 1f
185 negl %eax
186 pushl %eax
187 call __set_errno_internal
188 addl $4, %esp
1891:
190 popl %edx
191 popl %ecx
192 popl %ebx
193 ret
194END(getresgid)
195
196ENTRY(readahead)
197 pushl %ebx
198 .cfi_def_cfa_offset 8
199 .cfi_rel_offset ebx, 0
200 pushl %ecx
201 .cfi_adjust_cfa_offset 4
202 .cfi_rel_offset ecx, 0
203 pushl %edx
204 .cfi_adjust_cfa_offset 4
205 .cfi_rel_offset edx, 0
206 pushl %esi
207 .cfi_adjust_cfa_offset 4
208 .cfi_rel_offset esi, 0
209
210 call __kernel_syscall
211 pushl %eax
212 .cfi_adjust_cfa_offset 4
213 .cfi_rel_offset eax, 0
214
215 mov 24(%esp), %ebx
216 mov 28(%esp), %ecx
217 mov 32(%esp), %edx
218 mov 36(%esp), %esi
219 movl $__NR_readahead, %eax
220 call *(%esp)
221 addl $4, %esp
222
223 cmpl $-MAX_ERRNO, %eax
224 jb 1f
225 negl %eax
226 pushl %eax
227 call __set_errno_internal
228 addl $4, %esp
2291:
230 popl %esi
231 popl %edx
232 popl %ecx
233 popl %ebx
234 ret
235END(readahead)
236
237ENTRY(getgroups)
238 pushl %ebx
239 .cfi_def_cfa_offset 8
240 .cfi_rel_offset ebx, 0
241 pushl %ecx
242 .cfi_adjust_cfa_offset 4
243 .cfi_rel_offset ecx, 0
244
245 call __kernel_syscall
246 pushl %eax
247 .cfi_adjust_cfa_offset 4
248 .cfi_rel_offset eax, 0
249
250 mov 16(%esp), %ebx
251 mov 20(%esp), %ecx
252 movl $__NR_getgroups32, %eax
253 call *(%esp)
254 addl $4, %esp
255
256 cmpl $-MAX_ERRNO, %eax
257 jb 1f
258 negl %eax
259 pushl %eax
260 call __set_errno_internal
261 addl $4, %esp
2621:
263 popl %ecx
264 popl %ebx
265 ret
266END(getgroups)
267
268ENTRY(getpgid)
269 pushl %ebx
270 .cfi_def_cfa_offset 8
271 .cfi_rel_offset ebx, 0
272
273 call __kernel_syscall
274 pushl %eax
275 .cfi_adjust_cfa_offset 4
276 .cfi_rel_offset eax, 0
277
278 mov 12(%esp), %ebx
279 movl $__NR_getpgid, %eax
280 call *(%esp)
281 addl $4, %esp
282
283 cmpl $-MAX_ERRNO, %eax
284 jb 1f
285 negl %eax
286 pushl %eax
287 call __set_errno_internal
288 addl $4, %esp
2891:
290 popl %ebx
291 ret
292END(getpgid)
293
294ENTRY(getppid)
295
296 call __kernel_syscall
297 pushl %eax
298 .cfi_adjust_cfa_offset 4
299 .cfi_rel_offset eax, 0
300
301 movl $__NR_getppid, %eax
302 call *(%esp)
303 addl $4, %esp
304
305 cmpl $-MAX_ERRNO, %eax
306 jb 1f
307 negl %eax
308 pushl %eax
309 call __set_errno_internal
310 addl $4, %esp
3111:
312 ret
313END(getppid)
314
315ENTRY(getsid)
316 pushl %ebx
317 .cfi_def_cfa_offset 8
318 .cfi_rel_offset ebx, 0
319
320 call __kernel_syscall
321 pushl %eax
322 .cfi_adjust_cfa_offset 4
323 .cfi_rel_offset eax, 0
324
325 mov 12(%esp), %ebx
326 movl $__NR_getsid, %eax
327 call *(%esp)
328 addl $4, %esp
329
330 cmpl $-MAX_ERRNO, %eax
331 jb 1f
332 negl %eax
333 pushl %eax
334 call __set_errno_internal
335 addl $4, %esp
3361:
337 popl %ebx
338 ret
339END(getsid)
340
341ENTRY(setsid)
342
343 call __kernel_syscall
344 pushl %eax
345 .cfi_adjust_cfa_offset 4
346 .cfi_rel_offset eax, 0
347
348 movl $__NR_setsid, %eax
349 call *(%esp)
350 addl $4, %esp
351
352 cmpl $-MAX_ERRNO, %eax
353 jb 1f
354 negl %eax
355 pushl %eax
356 call __set_errno_internal
357 addl $4, %esp
3581:
359 ret
360END(setsid)
361
362ENTRY(setgid)
363 pushl %ebx
364 .cfi_def_cfa_offset 8
365 .cfi_rel_offset ebx, 0
366
367 call __kernel_syscall
368 pushl %eax
369 .cfi_adjust_cfa_offset 4
370 .cfi_rel_offset eax, 0
371
372 mov 12(%esp), %ebx
373 movl $__NR_setgid32, %eax
374 call *(%esp)
375 addl $4, %esp
376
377 cmpl $-MAX_ERRNO, %eax
378 jb 1f
379 negl %eax
380 pushl %eax
381 call __set_errno_internal
382 addl $4, %esp
3831:
384 popl %ebx
385 ret
386END(setgid)
387
388ENTRY(setuid)
389 pushl %ebx
390 .cfi_def_cfa_offset 8
391 .cfi_rel_offset ebx, 0
392
393 call __kernel_syscall
394 pushl %eax
395 .cfi_adjust_cfa_offset 4
396 .cfi_rel_offset eax, 0
397
398 mov 12(%esp), %ebx
399 movl $__NR_setuid32, %eax
400 call *(%esp)
401 addl $4, %esp
402
403 cmpl $-MAX_ERRNO, %eax
404 jb 1f
405 negl %eax
406 pushl %eax
407 call __set_errno_internal
408 addl $4, %esp
4091:
410 popl %ebx
411 ret
412END(setuid)
413
414ENTRY(setreuid)
415 pushl %ebx
416 .cfi_def_cfa_offset 8
417 .cfi_rel_offset ebx, 0
418 pushl %ecx
419 .cfi_adjust_cfa_offset 4
420 .cfi_rel_offset ecx, 0
421
422 call __kernel_syscall
423 pushl %eax
424 .cfi_adjust_cfa_offset 4
425 .cfi_rel_offset eax, 0
426
427 mov 16(%esp), %ebx
428 mov 20(%esp), %ecx
429 movl $__NR_setreuid32, %eax
430 call *(%esp)
431 addl $4, %esp
432
433 cmpl $-MAX_ERRNO, %eax
434 jb 1f
435 negl %eax
436 pushl %eax
437 call __set_errno_internal
438 addl $4, %esp
4391:
440 popl %ecx
441 popl %ebx
442 ret
443END(setreuid)
444
445ENTRY(setresuid)
446 pushl %ebx
447 .cfi_def_cfa_offset 8
448 .cfi_rel_offset ebx, 0
449 pushl %ecx
450 .cfi_adjust_cfa_offset 4
451 .cfi_rel_offset ecx, 0
452 pushl %edx
453 .cfi_adjust_cfa_offset 4
454 .cfi_rel_offset edx, 0
455
456 call __kernel_syscall
457 pushl %eax
458 .cfi_adjust_cfa_offset 4
459 .cfi_rel_offset eax, 0
460
461 mov 20(%esp), %ebx
462 mov 24(%esp), %ecx
463 mov 28(%esp), %edx
464 movl $__NR_setresuid32, %eax
465 call *(%esp)
466 addl $4, %esp
467
468 cmpl $-MAX_ERRNO, %eax
469 jb 1f
470 negl %eax
471 pushl %eax
472 call __set_errno_internal
473 addl $4, %esp
4741:
475 popl %edx
476 popl %ecx
477 popl %ebx
478 ret
479END(setresuid)
480
481ENTRY(setresgid)
482 pushl %ebx
483 .cfi_def_cfa_offset 8
484 .cfi_rel_offset ebx, 0
485 pushl %ecx
486 .cfi_adjust_cfa_offset 4
487 .cfi_rel_offset ecx, 0
488 pushl %edx
489 .cfi_adjust_cfa_offset 4
490 .cfi_rel_offset edx, 0
491
492 call __kernel_syscall
493 pushl %eax
494 .cfi_adjust_cfa_offset 4
495 .cfi_rel_offset eax, 0
496
497 mov 20(%esp), %ebx
498 mov 24(%esp), %ecx
499 mov 28(%esp), %edx
500 movl $__NR_setresgid32, %eax
501 call *(%esp)
502 addl $4, %esp
503
504 cmpl $-MAX_ERRNO, %eax
505 jb 1f
506 negl %eax
507 pushl %eax
508 call __set_errno_internal
509 addl $4, %esp
5101:
511 popl %edx
512 popl %ecx
513 popl %ebx
514 ret
515END(setresgid)
516
517ENTRY(__brk)
518 pushl %ebx
519 .cfi_def_cfa_offset 8
520 .cfi_rel_offset ebx, 0
521
522 call __kernel_syscall
523 pushl %eax
524 .cfi_adjust_cfa_offset 4
525 .cfi_rel_offset eax, 0
526
527 mov 12(%esp), %ebx
528 movl $__NR_brk, %eax
529 call *(%esp)
530 addl $4, %esp
531
532 cmpl $-MAX_ERRNO, %eax
533 jb 1f
534 negl %eax
535 pushl %eax
536 call __set_errno_internal
537 addl $4, %esp
5381:
539 popl %ebx
540 ret
541END(__brk)
542
543ENTRY(kill)
544 pushl %ebx
545 .cfi_def_cfa_offset 8
546 .cfi_rel_offset ebx, 0
547 pushl %ecx
548 .cfi_adjust_cfa_offset 4
549 .cfi_rel_offset ecx, 0
550
551 call __kernel_syscall
552 pushl %eax
553 .cfi_adjust_cfa_offset 4
554 .cfi_rel_offset eax, 0
555
556 mov 16(%esp), %ebx
557 mov 20(%esp), %ecx
558 movl $__NR_kill, %eax
559 call *(%esp)
560 addl $4, %esp
561
562 cmpl $-MAX_ERRNO, %eax
563 jb 1f
564 negl %eax
565 pushl %eax
566 call __set_errno_internal
567 addl $4, %esp
5681:
569 popl %ecx
570 popl %ebx
571 ret
572END(kill)
573
574ENTRY(tgkill)
575 pushl %ebx
576 .cfi_def_cfa_offset 8
577 .cfi_rel_offset ebx, 0
578 pushl %ecx
579 .cfi_adjust_cfa_offset 4
580 .cfi_rel_offset ecx, 0
581 pushl %edx
582 .cfi_adjust_cfa_offset 4
583 .cfi_rel_offset edx, 0
584
585 call __kernel_syscall
586 pushl %eax
587 .cfi_adjust_cfa_offset 4
588 .cfi_rel_offset eax, 0
589
590 mov 20(%esp), %ebx
591 mov 24(%esp), %ecx
592 mov 28(%esp), %edx
593 movl $__NR_tgkill, %eax
594 call *(%esp)
595 addl $4, %esp
596
597 cmpl $-MAX_ERRNO, %eax
598 jb 1f
599 negl %eax
600 pushl %eax
601 call __set_errno_internal
602 addl $4, %esp
6031:
604 popl %edx
605 popl %ecx
606 popl %ebx
607 ret
608END(tgkill)
609
610ENTRY(__ptrace)
611 pushl %ebx
612 .cfi_def_cfa_offset 8
613 .cfi_rel_offset ebx, 0
614 pushl %ecx
615 .cfi_adjust_cfa_offset 4
616 .cfi_rel_offset ecx, 0
617 pushl %edx
618 .cfi_adjust_cfa_offset 4
619 .cfi_rel_offset edx, 0
620 pushl %esi
621 .cfi_adjust_cfa_offset 4
622 .cfi_rel_offset esi, 0
623
624 call __kernel_syscall
625 pushl %eax
626 .cfi_adjust_cfa_offset 4
627 .cfi_rel_offset eax, 0
628
629 mov 24(%esp), %ebx
630 mov 28(%esp), %ecx
631 mov 32(%esp), %edx
632 mov 36(%esp), %esi
633 movl $__NR_ptrace, %eax
634 call *(%esp)
635 addl $4, %esp
636
637 cmpl $-MAX_ERRNO, %eax
638 jb 1f
639 negl %eax
640 pushl %eax
641 call __set_errno_internal
642 addl $4, %esp
6431:
644 popl %esi
645 popl %edx
646 popl %ecx
647 popl %ebx
648 ret
649END(__ptrace)
650
651ENTRY(getrusage)
652 pushl %ebx
653 .cfi_def_cfa_offset 8
654 .cfi_rel_offset ebx, 0
655 pushl %ecx
656 .cfi_adjust_cfa_offset 4
657 .cfi_rel_offset ecx, 0
658
659 call __kernel_syscall
660 pushl %eax
661 .cfi_adjust_cfa_offset 4
662 .cfi_rel_offset eax, 0
663
664 mov 16(%esp), %ebx
665 mov 20(%esp), %ecx
666 movl $__NR_getrusage, %eax
667 call *(%esp)
668 addl $4, %esp
669
670 cmpl $-MAX_ERRNO, %eax
671 jb 1f
672 negl %eax
673 pushl %eax
674 call __set_errno_internal
675 addl $4, %esp
6761:
677 popl %ecx
678 popl %ebx
679 ret
680END(getrusage)
681
682ENTRY(__getpriority)
683 pushl %ebx
684 .cfi_def_cfa_offset 8
685 .cfi_rel_offset ebx, 0
686 pushl %ecx
687 .cfi_adjust_cfa_offset 4
688 .cfi_rel_offset ecx, 0
689
690 call __kernel_syscall
691 pushl %eax
692 .cfi_adjust_cfa_offset 4
693 .cfi_rel_offset eax, 0
694
695 mov 16(%esp), %ebx
696 mov 20(%esp), %ecx
697 movl $__NR_getpriority, %eax
698 call *(%esp)
699 addl $4, %esp
700
701 cmpl $-MAX_ERRNO, %eax
702 jb 1f
703 negl %eax
704 pushl %eax
705 call __set_errno_internal
706 addl $4, %esp
7071:
708 popl %ecx
709 popl %ebx
710 ret
711END(__getpriority)
712
713ENTRY(setpriority)
714 pushl %ebx
715 .cfi_def_cfa_offset 8
716 .cfi_rel_offset ebx, 0
717 pushl %ecx
718 .cfi_adjust_cfa_offset 4
719 .cfi_rel_offset ecx, 0
720 pushl %edx
721 .cfi_adjust_cfa_offset 4
722 .cfi_rel_offset edx, 0
723
724 call __kernel_syscall
725 pushl %eax
726 .cfi_adjust_cfa_offset 4
727 .cfi_rel_offset eax, 0
728
729 mov 20(%esp), %ebx
730 mov 24(%esp), %ecx
731 mov 28(%esp), %edx
732 movl $__NR_setpriority, %eax
733 call *(%esp)
734 addl $4, %esp
735
736 cmpl $-MAX_ERRNO, %eax
737 jb 1f
738 negl %eax
739 pushl %eax
740 call __set_errno_internal
741 addl $4, %esp
7421:
743 popl %edx
744 popl %ecx
745 popl %ebx
746 ret
747END(setpriority)
748
749ENTRY(getrlimit)
750 pushl %ebx
751 .cfi_def_cfa_offset 8
752 .cfi_rel_offset ebx, 0
753 pushl %ecx
754 .cfi_adjust_cfa_offset 4
755 .cfi_rel_offset ecx, 0
756
757 call __kernel_syscall
758 pushl %eax
759 .cfi_adjust_cfa_offset 4
760 .cfi_rel_offset eax, 0
761
762 mov 16(%esp), %ebx
763 mov 20(%esp), %ecx
764 movl $__NR_ugetrlimit, %eax
765 call *(%esp)
766 addl $4, %esp
767
768 cmpl $-MAX_ERRNO, %eax
769 jb 1f
770 negl %eax
771 pushl %eax
772 call __set_errno_internal
773 addl $4, %esp
7741:
775 popl %ecx
776 popl %ebx
777 ret
778END(getrlimit)
779
780ENTRY(setrlimit)
781 pushl %ebx
782 .cfi_def_cfa_offset 8
783 .cfi_rel_offset ebx, 0
784 pushl %ecx
785 .cfi_adjust_cfa_offset 4
786 .cfi_rel_offset ecx, 0
787
788 call __kernel_syscall
789 pushl %eax
790 .cfi_adjust_cfa_offset 4
791 .cfi_rel_offset eax, 0
792
793 mov 16(%esp), %ebx
794 mov 20(%esp), %ecx
795 movl $__NR_setrlimit, %eax
796 call *(%esp)
797 addl $4, %esp
798
799 cmpl $-MAX_ERRNO, %eax
800 jb 1f
801 negl %eax
802 pushl %eax
803 call __set_errno_internal
804 addl $4, %esp
8051:
806 popl %ecx
807 popl %ebx
808 ret
809END(setrlimit)
810
811ENTRY(prlimit64)
812 pushl %ebx
813 .cfi_def_cfa_offset 8
814 .cfi_rel_offset ebx, 0
815 pushl %ecx
816 .cfi_adjust_cfa_offset 4
817 .cfi_rel_offset ecx, 0
818 pushl %edx
819 .cfi_adjust_cfa_offset 4
820 .cfi_rel_offset edx, 0
821 pushl %esi
822 .cfi_adjust_cfa_offset 4
823 .cfi_rel_offset esi, 0
824
825 call __kernel_syscall
826 pushl %eax
827 .cfi_adjust_cfa_offset 4
828 .cfi_rel_offset eax, 0
829
830 mov 24(%esp), %ebx
831 mov 28(%esp), %ecx
832 mov 32(%esp), %edx
833 mov 36(%esp), %esi
834 movl $__NR_prlimit64, %eax
835 call *(%esp)
836 addl $4, %esp
837
838 cmpl $-MAX_ERRNO, %eax
839 jb 1f
840 negl %eax
841 pushl %eax
842 call __set_errno_internal
843 addl $4, %esp
8441:
845 popl %esi
846 popl %edx
847 popl %ecx
848 popl %ebx
849 ret
850END(prlimit64)
851
852ENTRY(setgroups)
853 pushl %ebx
854 .cfi_def_cfa_offset 8
855 .cfi_rel_offset ebx, 0
856 pushl %ecx
857 .cfi_adjust_cfa_offset 4
858 .cfi_rel_offset ecx, 0
859
860 call __kernel_syscall
861 pushl %eax
862 .cfi_adjust_cfa_offset 4
863 .cfi_rel_offset eax, 0
864
865 mov 16(%esp), %ebx
866 mov 20(%esp), %ecx
867 movl $__NR_setgroups32, %eax
868 call *(%esp)
869 addl $4, %esp
870
871 cmpl $-MAX_ERRNO, %eax
872 jb 1f
873 negl %eax
874 pushl %eax
875 call __set_errno_internal
876 addl $4, %esp
8771:
878 popl %ecx
879 popl %ebx
880 ret
881END(setgroups)
882
883ENTRY(setpgid)
884 pushl %ebx
885 .cfi_def_cfa_offset 8
886 .cfi_rel_offset ebx, 0
887 pushl %ecx
888 .cfi_adjust_cfa_offset 4
889 .cfi_rel_offset ecx, 0
890
891 call __kernel_syscall
892 pushl %eax
893 .cfi_adjust_cfa_offset 4
894 .cfi_rel_offset eax, 0
895
896 mov 16(%esp), %ebx
897 mov 20(%esp), %ecx
898 movl $__NR_setpgid, %eax
899 call *(%esp)
900 addl $4, %esp
901
902 cmpl $-MAX_ERRNO, %eax
903 jb 1f
904 negl %eax
905 pushl %eax
906 call __set_errno_internal
907 addl $4, %esp
9081:
909 popl %ecx
910 popl %ebx
911 ret
912END(setpgid)
913
914ENTRY(setregid)
915 pushl %ebx
916 .cfi_def_cfa_offset 8
917 .cfi_rel_offset ebx, 0
918 pushl %ecx
919 .cfi_adjust_cfa_offset 4
920 .cfi_rel_offset ecx, 0
921
922 call __kernel_syscall
923 pushl %eax
924 .cfi_adjust_cfa_offset 4
925 .cfi_rel_offset eax, 0
926
927 mov 16(%esp), %ebx
928 mov 20(%esp), %ecx
929 movl $__NR_setregid32, %eax
930 call *(%esp)
931 addl $4, %esp
932
933 cmpl $-MAX_ERRNO, %eax
934 jb 1f
935 negl %eax
936 pushl %eax
937 call __set_errno_internal
938 addl $4, %esp
9391:
940 popl %ecx
941 popl %ebx
942 ret
943END(setregid)
944
945ENTRY(chroot)
946 pushl %ebx
947 .cfi_def_cfa_offset 8
948 .cfi_rel_offset ebx, 0
949
950 call __kernel_syscall
951 pushl %eax
952 .cfi_adjust_cfa_offset 4
953 .cfi_rel_offset eax, 0
954
955 mov 12(%esp), %ebx
956 movl $__NR_chroot, %eax
957 call *(%esp)
958 addl $4, %esp
959
960 cmpl $-MAX_ERRNO, %eax
961 jb 1f
962 negl %eax
963 pushl %eax
964 call __set_errno_internal
965 addl $4, %esp
9661:
967 popl %ebx
968 ret
969END(chroot)
970
971ENTRY(prctl)
972 pushl %ebx
973 .cfi_def_cfa_offset 8
974 .cfi_rel_offset ebx, 0
975 pushl %ecx
976 .cfi_adjust_cfa_offset 4
977 .cfi_rel_offset ecx, 0
978 pushl %edx
979 .cfi_adjust_cfa_offset 4
980 .cfi_rel_offset edx, 0
981 pushl %esi
982 .cfi_adjust_cfa_offset 4
983 .cfi_rel_offset esi, 0
984 pushl %edi
985 .cfi_adjust_cfa_offset 4
986 .cfi_rel_offset edi, 0
987
988 call __kernel_syscall
989 pushl %eax
990 .cfi_adjust_cfa_offset 4
991 .cfi_rel_offset eax, 0
992
993 mov 28(%esp), %ebx
994 mov 32(%esp), %ecx
995 mov 36(%esp), %edx
996 mov 40(%esp), %esi
997 mov 44(%esp), %edi
998 movl $__NR_prctl, %eax
999 call *(%esp)
1000 addl $4, %esp
1001
1002 cmpl $-MAX_ERRNO, %eax
1003 jb 1f
1004 negl %eax
1005 pushl %eax
1006 call __set_errno_internal
1007 addl $4, %esp
10081:
1009 popl %edi
1010 popl %esi
1011 popl %edx
1012 popl %ecx
1013 popl %ebx
1014 ret
1015END(prctl)
1016
1017ENTRY(capget)
1018 pushl %ebx
1019 .cfi_def_cfa_offset 8
1020 .cfi_rel_offset ebx, 0
1021 pushl %ecx
1022 .cfi_adjust_cfa_offset 4
1023 .cfi_rel_offset ecx, 0
1024
1025 call __kernel_syscall
1026 pushl %eax
1027 .cfi_adjust_cfa_offset 4
1028 .cfi_rel_offset eax, 0
1029
1030 mov 16(%esp), %ebx
1031 mov 20(%esp), %ecx
1032 movl $__NR_capget, %eax
1033 call *(%esp)
1034 addl $4, %esp
1035
1036 cmpl $-MAX_ERRNO, %eax
1037 jb 1f
1038 negl %eax
1039 pushl %eax
1040 call __set_errno_internal
1041 addl $4, %esp
10421:
1043 popl %ecx
1044 popl %ebx
1045 ret
1046END(capget)
1047
1048ENTRY(capset)
1049 pushl %ebx
1050 .cfi_def_cfa_offset 8
1051 .cfi_rel_offset ebx, 0
1052 pushl %ecx
1053 .cfi_adjust_cfa_offset 4
1054 .cfi_rel_offset ecx, 0
1055
1056 call __kernel_syscall
1057 pushl %eax
1058 .cfi_adjust_cfa_offset 4
1059 .cfi_rel_offset eax, 0
1060
1061 mov 16(%esp), %ebx
1062 mov 20(%esp), %ecx
1063 movl $__NR_capset, %eax
1064 call *(%esp)
1065 addl $4, %esp
1066
1067 cmpl $-MAX_ERRNO, %eax
1068 jb 1f
1069 negl %eax
1070 pushl %eax
1071 call __set_errno_internal
1072 addl $4, %esp
10731:
1074 popl %ecx
1075 popl %ebx
1076 ret
1077END(capset)
1078
1079ENTRY(sigaltstack)
1080 pushl %ebx
1081 .cfi_def_cfa_offset 8
1082 .cfi_rel_offset ebx, 0
1083 pushl %ecx
1084 .cfi_adjust_cfa_offset 4
1085 .cfi_rel_offset ecx, 0
1086
1087 call __kernel_syscall
1088 pushl %eax
1089 .cfi_adjust_cfa_offset 4
1090 .cfi_rel_offset eax, 0
1091
1092 mov 16(%esp), %ebx
1093 mov 20(%esp), %ecx
1094 movl $__NR_sigaltstack, %eax
1095 call *(%esp)
1096 addl $4, %esp
1097
1098 cmpl $-MAX_ERRNO, %eax
1099 jb 1f
1100 negl %eax
1101 pushl %eax
1102 call __set_errno_internal
1103 addl $4, %esp
11041:
1105 popl %ecx
1106 popl %ebx
1107 ret
1108END(sigaltstack)
1109
1110ENTRY(acct)
1111 pushl %ebx
1112 .cfi_def_cfa_offset 8
1113 .cfi_rel_offset ebx, 0
1114
1115 call __kernel_syscall
1116 pushl %eax
1117 .cfi_adjust_cfa_offset 4
1118 .cfi_rel_offset eax, 0
1119
1120 mov 12(%esp), %ebx
1121 movl $__NR_acct, %eax
1122 call *(%esp)
1123 addl $4, %esp
1124
1125 cmpl $-MAX_ERRNO, %eax
1126 jb 1f
1127 negl %eax
1128 pushl %eax
1129 call __set_errno_internal
1130 addl $4, %esp
11311:
1132 popl %ebx
1133 ret
1134END(acct)
1135
1136ENTRY(read)
1137 pushl %ebx
1138 .cfi_def_cfa_offset 8
1139 .cfi_rel_offset ebx, 0
1140 pushl %ecx
1141 .cfi_adjust_cfa_offset 4
1142 .cfi_rel_offset ecx, 0
1143 pushl %edx
1144 .cfi_adjust_cfa_offset 4
1145 .cfi_rel_offset edx, 0
1146
1147 call __kernel_syscall
1148 pushl %eax
1149 .cfi_adjust_cfa_offset 4
1150 .cfi_rel_offset eax, 0
1151
1152 mov 20(%esp), %ebx
1153 mov 24(%esp), %ecx
1154 mov 28(%esp), %edx
1155 movl $__NR_read, %eax
1156 call *(%esp)
1157 addl $4, %esp
1158
1159 cmpl $-MAX_ERRNO, %eax
1160 jb 1f
1161 negl %eax
1162 pushl %eax
1163 call __set_errno_internal
1164 addl $4, %esp
11651:
1166 popl %edx
1167 popl %ecx
1168 popl %ebx
1169 ret
1170END(read)
1171
1172ENTRY(write)
1173 pushl %ebx
1174 .cfi_def_cfa_offset 8
1175 .cfi_rel_offset ebx, 0
1176 pushl %ecx
1177 .cfi_adjust_cfa_offset 4
1178 .cfi_rel_offset ecx, 0
1179 pushl %edx
1180 .cfi_adjust_cfa_offset 4
1181 .cfi_rel_offset edx, 0
1182
1183 call __kernel_syscall
1184 pushl %eax
1185 .cfi_adjust_cfa_offset 4
1186 .cfi_rel_offset eax, 0
1187
1188 mov 20(%esp), %ebx
1189 mov 24(%esp), %ecx
1190 mov 28(%esp), %edx
1191 movl $__NR_write, %eax
1192 call *(%esp)
1193 addl $4, %esp
1194
1195 cmpl $-MAX_ERRNO, %eax
1196 jb 1f
1197 negl %eax
1198 pushl %eax
1199 call __set_errno_internal
1200 addl $4, %esp
12011:
1202 popl %edx
1203 popl %ecx
1204 popl %ebx
1205 ret
1206END(write)
1207
1208ENTRY(pread64)
1209 pushl %ebx
1210 .cfi_def_cfa_offset 8
1211 .cfi_rel_offset ebx, 0
1212 pushl %ecx
1213 .cfi_adjust_cfa_offset 4
1214 .cfi_rel_offset ecx, 0
1215 pushl %edx
1216 .cfi_adjust_cfa_offset 4
1217 .cfi_rel_offset edx, 0
1218 pushl %esi
1219 .cfi_adjust_cfa_offset 4
1220 .cfi_rel_offset esi, 0
1221 pushl %edi
1222 .cfi_adjust_cfa_offset 4
1223 .cfi_rel_offset edi, 0
1224
1225 call __kernel_syscall
1226 pushl %eax
1227 .cfi_adjust_cfa_offset 4
1228 .cfi_rel_offset eax, 0
1229
1230 mov 28(%esp), %ebx
1231 mov 32(%esp), %ecx
1232 mov 36(%esp), %edx
1233 mov 40(%esp), %esi
1234 mov 44(%esp), %edi
1235 movl $__NR_pread64, %eax
1236 call *(%esp)
1237 addl $4, %esp
1238
1239 cmpl $-MAX_ERRNO, %eax
1240 jb 1f
1241 negl %eax
1242 pushl %eax
1243 call __set_errno_internal
1244 addl $4, %esp
12451:
1246 popl %edi
1247 popl %esi
1248 popl %edx
1249 popl %ecx
1250 popl %ebx
1251 ret
1252END(pread64)
1253
1254ENTRY(pwrite64)
1255 pushl %ebx
1256 .cfi_def_cfa_offset 8
1257 .cfi_rel_offset ebx, 0
1258 pushl %ecx
1259 .cfi_adjust_cfa_offset 4
1260 .cfi_rel_offset ecx, 0
1261 pushl %edx
1262 .cfi_adjust_cfa_offset 4
1263 .cfi_rel_offset edx, 0
1264 pushl %esi
1265 .cfi_adjust_cfa_offset 4
1266 .cfi_rel_offset esi, 0
1267 pushl %edi
1268 .cfi_adjust_cfa_offset 4
1269 .cfi_rel_offset edi, 0
1270
1271 call __kernel_syscall
1272 pushl %eax
1273 .cfi_adjust_cfa_offset 4
1274 .cfi_rel_offset eax, 0
1275
1276 mov 28(%esp), %ebx
1277 mov 32(%esp), %ecx
1278 mov 36(%esp), %edx
1279 mov 40(%esp), %esi
1280 mov 44(%esp), %edi
1281 movl $__NR_pwrite64, %eax
1282 call *(%esp)
1283 addl $4, %esp
1284
1285 cmpl $-MAX_ERRNO, %eax
1286 jb 1f
1287 negl %eax
1288 pushl %eax
1289 call __set_errno_internal
1290 addl $4, %esp
12911:
1292 popl %edi
1293 popl %esi
1294 popl %edx
1295 popl %ecx
1296 popl %ebx
1297 ret
1298END(pwrite64)
1299
1300ENTRY(__preadv64)
1301 pushl %ebx
1302 .cfi_def_cfa_offset 8
1303 .cfi_rel_offset ebx, 0
1304 pushl %ecx
1305 .cfi_adjust_cfa_offset 4
1306 .cfi_rel_offset ecx, 0
1307 pushl %edx
1308 .cfi_adjust_cfa_offset 4
1309 .cfi_rel_offset edx, 0
1310 pushl %esi
1311 .cfi_adjust_cfa_offset 4
1312 .cfi_rel_offset esi, 0
1313 pushl %edi
1314 .cfi_adjust_cfa_offset 4
1315 .cfi_rel_offset edi, 0
1316
1317 call __kernel_syscall
1318 pushl %eax
1319 .cfi_adjust_cfa_offset 4
1320 .cfi_rel_offset eax, 0
1321
1322 mov 28(%esp), %ebx
1323 mov 32(%esp), %ecx
1324 mov 36(%esp), %edx
1325 mov 40(%esp), %esi
1326 mov 44(%esp), %edi
1327 movl $__NR_preadv, %eax
1328 call *(%esp)
1329 addl $4, %esp
1330
1331 cmpl $-MAX_ERRNO, %eax
1332 jb 1f
1333 negl %eax
1334 pushl %eax
1335 call __set_errno_internal
1336 addl $4, %esp
13371:
1338 popl %edi
1339 popl %esi
1340 popl %edx
1341 popl %ecx
1342 popl %ebx
1343 ret
1344END(__preadv64)
1345
1346ENTRY(__pwritev64)
1347 pushl %ebx
1348 .cfi_def_cfa_offset 8
1349 .cfi_rel_offset ebx, 0
1350 pushl %ecx
1351 .cfi_adjust_cfa_offset 4
1352 .cfi_rel_offset ecx, 0
1353 pushl %edx
1354 .cfi_adjust_cfa_offset 4
1355 .cfi_rel_offset edx, 0
1356 pushl %esi
1357 .cfi_adjust_cfa_offset 4
1358 .cfi_rel_offset esi, 0
1359 pushl %edi
1360 .cfi_adjust_cfa_offset 4
1361 .cfi_rel_offset edi, 0
1362
1363 call __kernel_syscall
1364 pushl %eax
1365 .cfi_adjust_cfa_offset 4
1366 .cfi_rel_offset eax, 0
1367
1368 mov 28(%esp), %ebx
1369 mov 32(%esp), %ecx
1370 mov 36(%esp), %edx
1371 mov 40(%esp), %esi
1372 mov 44(%esp), %edi
1373 movl $__NR_pwritev, %eax
1374 call *(%esp)
1375 addl $4, %esp
1376
1377 cmpl $-MAX_ERRNO, %eax
1378 jb 1f
1379 negl %eax
1380 pushl %eax
1381 call __set_errno_internal
1382 addl $4, %esp
13831:
1384 popl %edi
1385 popl %esi
1386 popl %edx
1387 popl %ecx
1388 popl %ebx
1389 ret
1390END(__pwritev64)
1391
1392ENTRY(___close)
1393 pushl %ebx
1394 .cfi_def_cfa_offset 8
1395 .cfi_rel_offset ebx, 0
1396
1397 call __kernel_syscall
1398 pushl %eax
1399 .cfi_adjust_cfa_offset 4
1400 .cfi_rel_offset eax, 0
1401
1402 mov 12(%esp), %ebx
1403 movl $__NR_close, %eax
1404 call *(%esp)
1405 addl $4, %esp
1406
1407 cmpl $-MAX_ERRNO, %eax
1408 jb 1f
1409 negl %eax
1410 pushl %eax
1411 call __set_errno_internal
1412 addl $4, %esp
14131:
1414 popl %ebx
1415 ret
1416END(___close)
1417.hidden ___close
1418
1419ENTRY(__getpid)
1420
1421 call __kernel_syscall
1422 pushl %eax
1423 .cfi_adjust_cfa_offset 4
1424 .cfi_rel_offset eax, 0
1425
1426 movl $__NR_getpid, %eax
1427 call *(%esp)
1428 addl $4, %esp
1429
1430 cmpl $-MAX_ERRNO, %eax
1431 jb 1f
1432 negl %eax
1433 pushl %eax
1434 call __set_errno_internal
1435 addl $4, %esp
14361:
1437 ret
1438END(__getpid)
1439
1440ENTRY(munmap)
1441 pushl %ebx
1442 .cfi_def_cfa_offset 8
1443 .cfi_rel_offset ebx, 0
1444 pushl %ecx
1445 .cfi_adjust_cfa_offset 4
1446 .cfi_rel_offset ecx, 0
1447
1448 call __kernel_syscall
1449 pushl %eax
1450 .cfi_adjust_cfa_offset 4
1451 .cfi_rel_offset eax, 0
1452
1453 mov 16(%esp), %ebx
1454 mov 20(%esp), %ecx
1455 movl $__NR_munmap, %eax
1456 call *(%esp)
1457 addl $4, %esp
1458
1459 cmpl $-MAX_ERRNO, %eax
1460 jb 1f
1461 negl %eax
1462 pushl %eax
1463 call __set_errno_internal
1464 addl $4, %esp
14651:
1466 popl %ecx
1467 popl %ebx
1468 ret
1469END(munmap)
1470
1471ENTRY(___mremap)
1472 pushl %ebx
1473 .cfi_def_cfa_offset 8
1474 .cfi_rel_offset ebx, 0
1475 pushl %ecx
1476 .cfi_adjust_cfa_offset 4
1477 .cfi_rel_offset ecx, 0
1478 pushl %edx
1479 .cfi_adjust_cfa_offset 4
1480 .cfi_rel_offset edx, 0
1481 pushl %esi
1482 .cfi_adjust_cfa_offset 4
1483 .cfi_rel_offset esi, 0
1484 pushl %edi
1485 .cfi_adjust_cfa_offset 4
1486 .cfi_rel_offset edi, 0
1487
1488 call __kernel_syscall
1489 pushl %eax
1490 .cfi_adjust_cfa_offset 4
1491 .cfi_rel_offset eax, 0
1492
1493 mov 28(%esp), %ebx
1494 mov 32(%esp), %ecx
1495 mov 36(%esp), %edx
1496 mov 40(%esp), %esi
1497 mov 44(%esp), %edi
1498 movl $__NR_mremap, %eax
1499 call *(%esp)
1500 addl $4, %esp
1501
1502 cmpl $-MAX_ERRNO, %eax
1503 jb 1f
1504 negl %eax
1505 pushl %eax
1506 call __set_errno_internal
1507 addl $4, %esp
15081:
1509 popl %edi
1510 popl %esi
1511 popl %edx
1512 popl %ecx
1513 popl %ebx
1514 ret
1515END(___mremap)
1516.hidden ___mremap
1517
1518ENTRY(msync)
1519 pushl %ebx
1520 .cfi_def_cfa_offset 8
1521 .cfi_rel_offset ebx, 0
1522 pushl %ecx
1523 .cfi_adjust_cfa_offset 4
1524 .cfi_rel_offset ecx, 0
1525 pushl %edx
1526 .cfi_adjust_cfa_offset 4
1527 .cfi_rel_offset edx, 0
1528
1529 call __kernel_syscall
1530 pushl %eax
1531 .cfi_adjust_cfa_offset 4
1532 .cfi_rel_offset eax, 0
1533
1534 mov 20(%esp), %ebx
1535 mov 24(%esp), %ecx
1536 mov 28(%esp), %edx
1537 movl $__NR_msync, %eax
1538 call *(%esp)
1539 addl $4, %esp
1540
1541 cmpl $-MAX_ERRNO, %eax
1542 jb 1f
1543 negl %eax
1544 pushl %eax
1545 call __set_errno_internal
1546 addl $4, %esp
15471:
1548 popl %edx
1549 popl %ecx
1550 popl %ebx
1551 ret
1552END(msync)
1553
1554ENTRY(mprotect)
1555 pushl %ebx
1556 .cfi_def_cfa_offset 8
1557 .cfi_rel_offset ebx, 0
1558 pushl %ecx
1559 .cfi_adjust_cfa_offset 4
1560 .cfi_rel_offset ecx, 0
1561 pushl %edx
1562 .cfi_adjust_cfa_offset 4
1563 .cfi_rel_offset edx, 0
1564
1565 call __kernel_syscall
1566 pushl %eax
1567 .cfi_adjust_cfa_offset 4
1568 .cfi_rel_offset eax, 0
1569
1570 mov 20(%esp), %ebx
1571 mov 24(%esp), %ecx
1572 mov 28(%esp), %edx
1573 movl $__NR_mprotect, %eax
1574 call *(%esp)
1575 addl $4, %esp
1576
1577 cmpl $-MAX_ERRNO, %eax
1578 jb 1f
1579 negl %eax
1580 pushl %eax
1581 call __set_errno_internal
1582 addl $4, %esp
15831:
1584 popl %edx
1585 popl %ecx
1586 popl %ebx
1587 ret
1588END(mprotect)
1589
1590ENTRY(madvise)
1591 pushl %ebx
1592 .cfi_def_cfa_offset 8
1593 .cfi_rel_offset ebx, 0
1594 pushl %ecx
1595 .cfi_adjust_cfa_offset 4
1596 .cfi_rel_offset ecx, 0
1597 pushl %edx
1598 .cfi_adjust_cfa_offset 4
1599 .cfi_rel_offset edx, 0
1600
1601 call __kernel_syscall
1602 pushl %eax
1603 .cfi_adjust_cfa_offset 4
1604 .cfi_rel_offset eax, 0
1605
1606 mov 20(%esp), %ebx
1607 mov 24(%esp), %ecx
1608 mov 28(%esp), %edx
1609 movl $__NR_madvise, %eax
1610 call *(%esp)
1611 addl $4, %esp
1612
1613 cmpl $-MAX_ERRNO, %eax
1614 jb 1f
1615 negl %eax
1616 pushl %eax
1617 call __set_errno_internal
1618 addl $4, %esp
16191:
1620 popl %edx
1621 popl %ecx
1622 popl %ebx
1623 ret
1624END(madvise)
1625
1626ENTRY(mlock)
1627 pushl %ebx
1628 .cfi_def_cfa_offset 8
1629 .cfi_rel_offset ebx, 0
1630 pushl %ecx
1631 .cfi_adjust_cfa_offset 4
1632 .cfi_rel_offset ecx, 0
1633
1634 call __kernel_syscall
1635 pushl %eax
1636 .cfi_adjust_cfa_offset 4
1637 .cfi_rel_offset eax, 0
1638
1639 mov 16(%esp), %ebx
1640 mov 20(%esp), %ecx
1641 movl $__NR_mlock, %eax
1642 call *(%esp)
1643 addl $4, %esp
1644
1645 cmpl $-MAX_ERRNO, %eax
1646 jb 1f
1647 negl %eax
1648 pushl %eax
1649 call __set_errno_internal
1650 addl $4, %esp
16511:
1652 popl %ecx
1653 popl %ebx
1654 ret
1655END(mlock)
1656
1657ENTRY(munlock)
1658 pushl %ebx
1659 .cfi_def_cfa_offset 8
1660 .cfi_rel_offset ebx, 0
1661 pushl %ecx
1662 .cfi_adjust_cfa_offset 4
1663 .cfi_rel_offset ecx, 0
1664
1665 call __kernel_syscall
1666 pushl %eax
1667 .cfi_adjust_cfa_offset 4
1668 .cfi_rel_offset eax, 0
1669
1670 mov 16(%esp), %ebx
1671 mov 20(%esp), %ecx
1672 movl $__NR_munlock, %eax
1673 call *(%esp)
1674 addl $4, %esp
1675
1676 cmpl $-MAX_ERRNO, %eax
1677 jb 1f
1678 negl %eax
1679 pushl %eax
1680 call __set_errno_internal
1681 addl $4, %esp
16821:
1683 popl %ecx
1684 popl %ebx
1685 ret
1686END(munlock)
1687
1688ENTRY(mlockall)
1689 pushl %ebx
1690 .cfi_def_cfa_offset 8
1691 .cfi_rel_offset ebx, 0
1692
1693 call __kernel_syscall
1694 pushl %eax
1695 .cfi_adjust_cfa_offset 4
1696 .cfi_rel_offset eax, 0
1697
1698 mov 12(%esp), %ebx
1699 movl $__NR_mlockall, %eax
1700 call *(%esp)
1701 addl $4, %esp
1702
1703 cmpl $-MAX_ERRNO, %eax
1704 jb 1f
1705 negl %eax
1706 pushl %eax
1707 call __set_errno_internal
1708 addl $4, %esp
17091:
1710 popl %ebx
1711 ret
1712END(mlockall)
1713
1714ENTRY(munlockall)
1715
1716 call __kernel_syscall
1717 pushl %eax
1718 .cfi_adjust_cfa_offset 4
1719 .cfi_rel_offset eax, 0
1720
1721 movl $__NR_munlockall, %eax
1722 call *(%esp)
1723 addl $4, %esp
1724
1725 cmpl $-MAX_ERRNO, %eax
1726 jb 1f
1727 negl %eax
1728 pushl %eax
1729 call __set_errno_internal
1730 addl $4, %esp
17311:
1732 ret
1733END(munlockall)
1734
1735ENTRY(mincore)
1736 pushl %ebx
1737 .cfi_def_cfa_offset 8
1738 .cfi_rel_offset ebx, 0
1739 pushl %ecx
1740 .cfi_adjust_cfa_offset 4
1741 .cfi_rel_offset ecx, 0
1742 pushl %edx
1743 .cfi_adjust_cfa_offset 4
1744 .cfi_rel_offset edx, 0
1745
1746 call __kernel_syscall
1747 pushl %eax
1748 .cfi_adjust_cfa_offset 4
1749 .cfi_rel_offset eax, 0
1750
1751 mov 20(%esp), %ebx
1752 mov 24(%esp), %ecx
1753 mov 28(%esp), %edx
1754 movl $__NR_mincore, %eax
1755 call *(%esp)
1756 addl $4, %esp
1757
1758 cmpl $-MAX_ERRNO, %eax
1759 jb 1f
1760 negl %eax
1761 pushl %eax
1762 call __set_errno_internal
1763 addl $4, %esp
17641:
1765 popl %edx
1766 popl %ecx
1767 popl %ebx
1768 ret
1769END(mincore)
1770
1771ENTRY(__ioctl)
1772 pushl %ebx
1773 .cfi_def_cfa_offset 8
1774 .cfi_rel_offset ebx, 0
1775 pushl %ecx
1776 .cfi_adjust_cfa_offset 4
1777 .cfi_rel_offset ecx, 0
1778 pushl %edx
1779 .cfi_adjust_cfa_offset 4
1780 .cfi_rel_offset edx, 0
1781
1782 call __kernel_syscall
1783 pushl %eax
1784 .cfi_adjust_cfa_offset 4
1785 .cfi_rel_offset eax, 0
1786
1787 mov 20(%esp), %ebx
1788 mov 24(%esp), %ecx
1789 mov 28(%esp), %edx
1790 movl $__NR_ioctl, %eax
1791 call *(%esp)
1792 addl $4, %esp
1793
1794 cmpl $-MAX_ERRNO, %eax
1795 jb 1f
1796 negl %eax
1797 pushl %eax
1798 call __set_errno_internal
1799 addl $4, %esp
18001:
1801 popl %edx
1802 popl %ecx
1803 popl %ebx
1804 ret
1805END(__ioctl)
1806
1807ENTRY(readv)
1808 pushl %ebx
1809 .cfi_def_cfa_offset 8
1810 .cfi_rel_offset ebx, 0
1811 pushl %ecx
1812 .cfi_adjust_cfa_offset 4
1813 .cfi_rel_offset ecx, 0
1814 pushl %edx
1815 .cfi_adjust_cfa_offset 4
1816 .cfi_rel_offset edx, 0
1817
1818 call __kernel_syscall
1819 pushl %eax
1820 .cfi_adjust_cfa_offset 4
1821 .cfi_rel_offset eax, 0
1822
1823 mov 20(%esp), %ebx
1824 mov 24(%esp), %ecx
1825 mov 28(%esp), %edx
1826 movl $__NR_readv, %eax
1827 call *(%esp)
1828 addl $4, %esp
1829
1830 cmpl $-MAX_ERRNO, %eax
1831 jb 1f
1832 negl %eax
1833 pushl %eax
1834 call __set_errno_internal
1835 addl $4, %esp
18361:
1837 popl %edx
1838 popl %ecx
1839 popl %ebx
1840 ret
1841END(readv)
1842
1843ENTRY(writev)
1844 pushl %ebx
1845 .cfi_def_cfa_offset 8
1846 .cfi_rel_offset ebx, 0
1847 pushl %ecx
1848 .cfi_adjust_cfa_offset 4
1849 .cfi_rel_offset ecx, 0
1850 pushl %edx
1851 .cfi_adjust_cfa_offset 4
1852 .cfi_rel_offset edx, 0
1853
1854 call __kernel_syscall
1855 pushl %eax
1856 .cfi_adjust_cfa_offset 4
1857 .cfi_rel_offset eax, 0
1858
1859 mov 20(%esp), %ebx
1860 mov 24(%esp), %ecx
1861 mov 28(%esp), %edx
1862 movl $__NR_writev, %eax
1863 call *(%esp)
1864 addl $4, %esp
1865
1866 cmpl $-MAX_ERRNO, %eax
1867 jb 1f
1868 negl %eax
1869 pushl %eax
1870 call __set_errno_internal
1871 addl $4, %esp
18721:
1873 popl %edx
1874 popl %ecx
1875 popl %ebx
1876 ret
1877END(writev)
1878
1879ENTRY(__fcntl64)
1880 pushl %ebx
1881 .cfi_def_cfa_offset 8
1882 .cfi_rel_offset ebx, 0
1883 pushl %ecx
1884 .cfi_adjust_cfa_offset 4
1885 .cfi_rel_offset ecx, 0
1886 pushl %edx
1887 .cfi_adjust_cfa_offset 4
1888 .cfi_rel_offset edx, 0
1889
1890 call __kernel_syscall
1891 pushl %eax
1892 .cfi_adjust_cfa_offset 4
1893 .cfi_rel_offset eax, 0
1894
1895 mov 20(%esp), %ebx
1896 mov 24(%esp), %ecx
1897 mov 28(%esp), %edx
1898 movl $__NR_fcntl64, %eax
1899 call *(%esp)
1900 addl $4, %esp
1901
1902 cmpl $-MAX_ERRNO, %eax
1903 jb 1f
1904 negl %eax
1905 pushl %eax
1906 call __set_errno_internal
1907 addl $4, %esp
19081:
1909 popl %edx
1910 popl %ecx
1911 popl %ebx
1912 ret
1913END(__fcntl64)
1914
1915ENTRY(flock)
1916 pushl %ebx
1917 .cfi_def_cfa_offset 8
1918 .cfi_rel_offset ebx, 0
1919 pushl %ecx
1920 .cfi_adjust_cfa_offset 4
1921 .cfi_rel_offset ecx, 0
1922
1923 call __kernel_syscall
1924 pushl %eax
1925 .cfi_adjust_cfa_offset 4
1926 .cfi_rel_offset eax, 0
1927
1928 mov 16(%esp), %ebx
1929 mov 20(%esp), %ecx
1930 movl $__NR_flock, %eax
1931 call *(%esp)
1932 addl $4, %esp
1933
1934 cmpl $-MAX_ERRNO, %eax
1935 jb 1f
1936 negl %eax
1937 pushl %eax
1938 call __set_errno_internal
1939 addl $4, %esp
19401:
1941 popl %ecx
1942 popl %ebx
1943 ret
1944END(flock)
1945
1946ENTRY(___fchmod)
1947 pushl %ebx
1948 .cfi_def_cfa_offset 8
1949 .cfi_rel_offset ebx, 0
1950 pushl %ecx
1951 .cfi_adjust_cfa_offset 4
1952 .cfi_rel_offset ecx, 0
1953
1954 call __kernel_syscall
1955 pushl %eax
1956 .cfi_adjust_cfa_offset 4
1957 .cfi_rel_offset eax, 0
1958
1959 mov 16(%esp), %ebx
1960 mov 20(%esp), %ecx
1961 movl $__NR_fchmod, %eax
1962 call *(%esp)
1963 addl $4, %esp
1964
1965 cmpl $-MAX_ERRNO, %eax
1966 jb 1f
1967 negl %eax
1968 pushl %eax
1969 call __set_errno_internal
1970 addl $4, %esp
19711:
1972 popl %ecx
1973 popl %ebx
1974 ret
1975END(___fchmod)
1976.hidden ___fchmod
1977
1978ENTRY(dup)
1979 pushl %ebx
1980 .cfi_def_cfa_offset 8
1981 .cfi_rel_offset ebx, 0
1982
1983 call __kernel_syscall
1984 pushl %eax
1985 .cfi_adjust_cfa_offset 4
1986 .cfi_rel_offset eax, 0
1987
1988 mov 12(%esp), %ebx
1989 movl $__NR_dup, %eax
1990 call *(%esp)
1991 addl $4, %esp
1992
1993 cmpl $-MAX_ERRNO, %eax
1994 jb 1f
1995 negl %eax
1996 pushl %eax
1997 call __set_errno_internal
1998 addl $4, %esp
19991:
2000 popl %ebx
2001 ret
2002END(dup)
2003
2004ENTRY(pipe2)
2005 pushl %ebx
2006 .cfi_def_cfa_offset 8
2007 .cfi_rel_offset ebx, 0
2008 pushl %ecx
2009 .cfi_adjust_cfa_offset 4
2010 .cfi_rel_offset ecx, 0
2011
2012 call __kernel_syscall
2013 pushl %eax
2014 .cfi_adjust_cfa_offset 4
2015 .cfi_rel_offset eax, 0
2016
2017 mov 16(%esp), %ebx
2018 mov 20(%esp), %ecx
2019 movl $__NR_pipe2, %eax
2020 call *(%esp)
2021 addl $4, %esp
2022
2023 cmpl $-MAX_ERRNO, %eax
2024 jb 1f
2025 negl %eax
2026 pushl %eax
2027 call __set_errno_internal
2028 addl $4, %esp
20291:
2030 popl %ecx
2031 popl %ebx
2032 ret
2033END(pipe2)
2034
2035ENTRY(dup3)
2036 pushl %ebx
2037 .cfi_def_cfa_offset 8
2038 .cfi_rel_offset ebx, 0
2039 pushl %ecx
2040 .cfi_adjust_cfa_offset 4
2041 .cfi_rel_offset ecx, 0
2042 pushl %edx
2043 .cfi_adjust_cfa_offset 4
2044 .cfi_rel_offset edx, 0
2045
2046 call __kernel_syscall
2047 pushl %eax
2048 .cfi_adjust_cfa_offset 4
2049 .cfi_rel_offset eax, 0
2050
2051 mov 20(%esp), %ebx
2052 mov 24(%esp), %ecx
2053 mov 28(%esp), %edx
2054 movl $__NR_dup3, %eax
2055 call *(%esp)
2056 addl $4, %esp
2057
2058 cmpl $-MAX_ERRNO, %eax
2059 jb 1f
2060 negl %eax
2061 pushl %eax
2062 call __set_errno_internal
2063 addl $4, %esp
20641:
2065 popl %edx
2066 popl %ecx
2067 popl %ebx
2068 ret
2069END(dup3)
2070
2071ENTRY(fsync)
2072 pushl %ebx
2073 .cfi_def_cfa_offset 8
2074 .cfi_rel_offset ebx, 0
2075
2076 call __kernel_syscall
2077 pushl %eax
2078 .cfi_adjust_cfa_offset 4
2079 .cfi_rel_offset eax, 0
2080
2081 mov 12(%esp), %ebx
2082 movl $__NR_fsync, %eax
2083 call *(%esp)
2084 addl $4, %esp
2085
2086 cmpl $-MAX_ERRNO, %eax
2087 jb 1f
2088 negl %eax
2089 pushl %eax
2090 call __set_errno_internal
2091 addl $4, %esp
20921:
2093 popl %ebx
2094 ret
2095END(fsync)
2096
2097ENTRY(fdatasync)
2098 pushl %ebx
2099 .cfi_def_cfa_offset 8
2100 .cfi_rel_offset ebx, 0
2101
2102 call __kernel_syscall
2103 pushl %eax
2104 .cfi_adjust_cfa_offset 4
2105 .cfi_rel_offset eax, 0
2106
2107 mov 12(%esp), %ebx
2108 movl $__NR_fdatasync, %eax
2109 call *(%esp)
2110 addl $4, %esp
2111
2112 cmpl $-MAX_ERRNO, %eax
2113 jb 1f
2114 negl %eax
2115 pushl %eax
2116 call __set_errno_internal
2117 addl $4, %esp
21181:
2119 popl %ebx
2120 ret
2121END(fdatasync)
2122
2123ENTRY(fchown)
2124 pushl %ebx
2125 .cfi_def_cfa_offset 8
2126 .cfi_rel_offset ebx, 0
2127 pushl %ecx
2128 .cfi_adjust_cfa_offset 4
2129 .cfi_rel_offset ecx, 0
2130 pushl %edx
2131 .cfi_adjust_cfa_offset 4
2132 .cfi_rel_offset edx, 0
2133
2134 call __kernel_syscall
2135 pushl %eax
2136 .cfi_adjust_cfa_offset 4
2137 .cfi_rel_offset eax, 0
2138
2139 mov 20(%esp), %ebx
2140 mov 24(%esp), %ecx
2141 mov 28(%esp), %edx
2142 movl $__NR_fchown32, %eax
2143 call *(%esp)
2144 addl $4, %esp
2145
2146 cmpl $-MAX_ERRNO, %eax
2147 jb 1f
2148 negl %eax
2149 pushl %eax
2150 call __set_errno_internal
2151 addl $4, %esp
21521:
2153 popl %edx
2154 popl %ecx
2155 popl %ebx
2156 ret
2157END(fchown)
2158
2159ENTRY(sync)
2160 pushl %ebx
2161 .cfi_def_cfa_offset 8
2162 .cfi_rel_offset ebx, 0
2163
2164 call __kernel_syscall
2165 pushl %eax
2166 .cfi_adjust_cfa_offset 4
2167 .cfi_rel_offset eax, 0
2168
2169 mov 12(%esp), %ebx
2170 movl $__NR_sync, %eax
2171 call *(%esp)
2172 addl $4, %esp
2173
2174 cmpl $-MAX_ERRNO, %eax
2175 jb 1f
2176 negl %eax
2177 pushl %eax
2178 call __set_errno_internal
2179 addl $4, %esp
21801:
2181 popl %ebx
2182 ret
2183END(sync)
2184
2185ENTRY(syncfs)
2186 pushl %ebx
2187 .cfi_def_cfa_offset 8
2188 .cfi_rel_offset ebx, 0
2189
2190 call __kernel_syscall
2191 pushl %eax
2192 .cfi_adjust_cfa_offset 4
2193 .cfi_rel_offset eax, 0
2194
2195 mov 12(%esp), %ebx
2196 movl $__NR_syncfs, %eax
2197 call *(%esp)
2198 addl $4, %esp
2199
2200 cmpl $-MAX_ERRNO, %eax
2201 jb 1f
2202 negl %eax
2203 pushl %eax
2204 call __set_errno_internal
2205 addl $4, %esp
22061:
2207 popl %ebx
2208 ret
2209END(syncfs)
2210
2211ENTRY(___fsetxattr)
2212 pushl %ebx
2213 .cfi_def_cfa_offset 8
2214 .cfi_rel_offset ebx, 0
2215 pushl %ecx
2216 .cfi_adjust_cfa_offset 4
2217 .cfi_rel_offset ecx, 0
2218 pushl %edx
2219 .cfi_adjust_cfa_offset 4
2220 .cfi_rel_offset edx, 0
2221 pushl %esi
2222 .cfi_adjust_cfa_offset 4
2223 .cfi_rel_offset esi, 0
2224 pushl %edi
2225 .cfi_adjust_cfa_offset 4
2226 .cfi_rel_offset edi, 0
2227
2228 call __kernel_syscall
2229 pushl %eax
2230 .cfi_adjust_cfa_offset 4
2231 .cfi_rel_offset eax, 0
2232
2233 mov 28(%esp), %ebx
2234 mov 32(%esp), %ecx
2235 mov 36(%esp), %edx
2236 mov 40(%esp), %esi
2237 mov 44(%esp), %edi
2238 movl $__NR_fsetxattr, %eax
2239 call *(%esp)
2240 addl $4, %esp
2241
2242 cmpl $-MAX_ERRNO, %eax
2243 jb 1f
2244 negl %eax
2245 pushl %eax
2246 call __set_errno_internal
2247 addl $4, %esp
22481:
2249 popl %edi
2250 popl %esi
2251 popl %edx
2252 popl %ecx
2253 popl %ebx
2254 ret
2255END(___fsetxattr)
2256.hidden ___fsetxattr
2257
2258ENTRY(___fgetxattr)
2259 pushl %ebx
2260 .cfi_def_cfa_offset 8
2261 .cfi_rel_offset ebx, 0
2262 pushl %ecx
2263 .cfi_adjust_cfa_offset 4
2264 .cfi_rel_offset ecx, 0
2265 pushl %edx
2266 .cfi_adjust_cfa_offset 4
2267 .cfi_rel_offset edx, 0
2268 pushl %esi
2269 .cfi_adjust_cfa_offset 4
2270 .cfi_rel_offset esi, 0
2271
2272 call __kernel_syscall
2273 pushl %eax
2274 .cfi_adjust_cfa_offset 4
2275 .cfi_rel_offset eax, 0
2276
2277 mov 24(%esp), %ebx
2278 mov 28(%esp), %ecx
2279 mov 32(%esp), %edx
2280 mov 36(%esp), %esi
2281 movl $__NR_fgetxattr, %eax
2282 call *(%esp)
2283 addl $4, %esp
2284
2285 cmpl $-MAX_ERRNO, %eax
2286 jb 1f
2287 negl %eax
2288 pushl %eax
2289 call __set_errno_internal
2290 addl $4, %esp
22911:
2292 popl %esi
2293 popl %edx
2294 popl %ecx
2295 popl %ebx
2296 ret
2297END(___fgetxattr)
2298.hidden ___fgetxattr
2299
2300ENTRY(___flistxattr)
2301 pushl %ebx
2302 .cfi_def_cfa_offset 8
2303 .cfi_rel_offset ebx, 0
2304 pushl %ecx
2305 .cfi_adjust_cfa_offset 4
2306 .cfi_rel_offset ecx, 0
2307 pushl %edx
2308 .cfi_adjust_cfa_offset 4
2309 .cfi_rel_offset edx, 0
2310
2311 call __kernel_syscall
2312 pushl %eax
2313 .cfi_adjust_cfa_offset 4
2314 .cfi_rel_offset eax, 0
2315
2316 mov 20(%esp), %ebx
2317 mov 24(%esp), %ecx
2318 mov 28(%esp), %edx
2319 movl $__NR_flistxattr, %eax
2320 call *(%esp)
2321 addl $4, %esp
2322
2323 cmpl $-MAX_ERRNO, %eax
2324 jb 1f
2325 negl %eax
2326 pushl %eax
2327 call __set_errno_internal
2328 addl $4, %esp
23291:
2330 popl %edx
2331 popl %ecx
2332 popl %ebx
2333 ret
2334END(___flistxattr)
2335.hidden ___flistxattr
2336
2337ENTRY(fremovexattr)
2338 pushl %ebx
2339 .cfi_def_cfa_offset 8
2340 .cfi_rel_offset ebx, 0
2341 pushl %ecx
2342 .cfi_adjust_cfa_offset 4
2343 .cfi_rel_offset ecx, 0
2344
2345 call __kernel_syscall
2346 pushl %eax
2347 .cfi_adjust_cfa_offset 4
2348 .cfi_rel_offset eax, 0
2349
2350 mov 16(%esp), %ebx
2351 mov 20(%esp), %ecx
2352 movl $__NR_fremovexattr, %eax
2353 call *(%esp)
2354 addl $4, %esp
2355
2356 cmpl $-MAX_ERRNO, %eax
2357 jb 1f
2358 negl %eax
2359 pushl %eax
2360 call __set_errno_internal
2361 addl $4, %esp
23621:
2363 popl %ecx
2364 popl %ebx
2365 ret
2366END(fremovexattr)
2367
2368ENTRY(__getdents64)
2369 pushl %ebx
2370 .cfi_def_cfa_offset 8
2371 .cfi_rel_offset ebx, 0
2372 pushl %ecx
2373 .cfi_adjust_cfa_offset 4
2374 .cfi_rel_offset ecx, 0
2375 pushl %edx
2376 .cfi_adjust_cfa_offset 4
2377 .cfi_rel_offset edx, 0
2378
2379 call __kernel_syscall
2380 pushl %eax
2381 .cfi_adjust_cfa_offset 4
2382 .cfi_rel_offset eax, 0
2383
2384 mov 20(%esp), %ebx
2385 mov 24(%esp), %ecx
2386 mov 28(%esp), %edx
2387 movl $__NR_getdents64, %eax
2388 call *(%esp)
2389 addl $4, %esp
2390
2391 cmpl $-MAX_ERRNO, %eax
2392 jb 1f
2393 negl %eax
2394 pushl %eax
2395 call __set_errno_internal
2396 addl $4, %esp
23971:
2398 popl %edx
2399 popl %ecx
2400 popl %ebx
2401 ret
2402END(__getdents64)
2403
2404ENTRY(__openat)
2405 pushl %ebx
2406 .cfi_def_cfa_offset 8
2407 .cfi_rel_offset ebx, 0
2408 pushl %ecx
2409 .cfi_adjust_cfa_offset 4
2410 .cfi_rel_offset ecx, 0
2411 pushl %edx
2412 .cfi_adjust_cfa_offset 4
2413 .cfi_rel_offset edx, 0
2414 pushl %esi
2415 .cfi_adjust_cfa_offset 4
2416 .cfi_rel_offset esi, 0
2417
2418 call __kernel_syscall
2419 pushl %eax
2420 .cfi_adjust_cfa_offset 4
2421 .cfi_rel_offset eax, 0
2422
2423 mov 24(%esp), %ebx
2424 mov 28(%esp), %ecx
2425 mov 32(%esp), %edx
2426 mov 36(%esp), %esi
2427 movl $__NR_openat, %eax
2428 call *(%esp)
2429 addl $4, %esp
2430
2431 cmpl $-MAX_ERRNO, %eax
2432 jb 1f
2433 negl %eax
2434 pushl %eax
2435 call __set_errno_internal
2436 addl $4, %esp
24371:
2438 popl %esi
2439 popl %edx
2440 popl %ecx
2441 popl %ebx
2442 ret
2443END(__openat)
2444
2445ENTRY(___faccessat)
2446 pushl %ebx
2447 .cfi_def_cfa_offset 8
2448 .cfi_rel_offset ebx, 0
2449 pushl %ecx
2450 .cfi_adjust_cfa_offset 4
2451 .cfi_rel_offset ecx, 0
2452 pushl %edx
2453 .cfi_adjust_cfa_offset 4
2454 .cfi_rel_offset edx, 0
2455
2456 call __kernel_syscall
2457 pushl %eax
2458 .cfi_adjust_cfa_offset 4
2459 .cfi_rel_offset eax, 0
2460
2461 mov 20(%esp), %ebx
2462 mov 24(%esp), %ecx
2463 mov 28(%esp), %edx
2464 movl $__NR_faccessat, %eax
2465 call *(%esp)
2466 addl $4, %esp
2467
2468 cmpl $-MAX_ERRNO, %eax
2469 jb 1f
2470 negl %eax
2471 pushl %eax
2472 call __set_errno_internal
2473 addl $4, %esp
24741:
2475 popl %edx
2476 popl %ecx
2477 popl %ebx
2478 ret
2479END(___faccessat)
2480.hidden ___faccessat
2481
2482ENTRY(___fchmodat)
2483 pushl %ebx
2484 .cfi_def_cfa_offset 8
2485 .cfi_rel_offset ebx, 0
2486 pushl %ecx
2487 .cfi_adjust_cfa_offset 4
2488 .cfi_rel_offset ecx, 0
2489 pushl %edx
2490 .cfi_adjust_cfa_offset 4
2491 .cfi_rel_offset edx, 0
2492
2493 call __kernel_syscall
2494 pushl %eax
2495 .cfi_adjust_cfa_offset 4
2496 .cfi_rel_offset eax, 0
2497
2498 mov 20(%esp), %ebx
2499 mov 24(%esp), %ecx
2500 mov 28(%esp), %edx
2501 movl $__NR_fchmodat, %eax
2502 call *(%esp)
2503 addl $4, %esp
2504
2505 cmpl $-MAX_ERRNO, %eax
2506 jb 1f
2507 negl %eax
2508 pushl %eax
2509 call __set_errno_internal
2510 addl $4, %esp
25111:
2512 popl %edx
2513 popl %ecx
2514 popl %ebx
2515 ret
2516END(___fchmodat)
2517.hidden ___fchmodat
2518
2519ENTRY(fchownat)
2520 pushl %ebx
2521 .cfi_def_cfa_offset 8
2522 .cfi_rel_offset ebx, 0
2523 pushl %ecx
2524 .cfi_adjust_cfa_offset 4
2525 .cfi_rel_offset ecx, 0
2526 pushl %edx
2527 .cfi_adjust_cfa_offset 4
2528 .cfi_rel_offset edx, 0
2529 pushl %esi
2530 .cfi_adjust_cfa_offset 4
2531 .cfi_rel_offset esi, 0
2532 pushl %edi
2533 .cfi_adjust_cfa_offset 4
2534 .cfi_rel_offset edi, 0
2535
2536 call __kernel_syscall
2537 pushl %eax
2538 .cfi_adjust_cfa_offset 4
2539 .cfi_rel_offset eax, 0
2540
2541 mov 28(%esp), %ebx
2542 mov 32(%esp), %ecx
2543 mov 36(%esp), %edx
2544 mov 40(%esp), %esi
2545 mov 44(%esp), %edi
2546 movl $__NR_fchownat, %eax
2547 call *(%esp)
2548 addl $4, %esp
2549
2550 cmpl $-MAX_ERRNO, %eax
2551 jb 1f
2552 negl %eax
2553 pushl %eax
2554 call __set_errno_internal
2555 addl $4, %esp
25561:
2557 popl %edi
2558 popl %esi
2559 popl %edx
2560 popl %ecx
2561 popl %ebx
2562 ret
2563END(fchownat)
2564
2565ENTRY(fstatat64)
2566 pushl %ebx
2567 .cfi_def_cfa_offset 8
2568 .cfi_rel_offset ebx, 0
2569 pushl %ecx
2570 .cfi_adjust_cfa_offset 4
2571 .cfi_rel_offset ecx, 0
2572 pushl %edx
2573 .cfi_adjust_cfa_offset 4
2574 .cfi_rel_offset edx, 0
2575 pushl %esi
2576 .cfi_adjust_cfa_offset 4
2577 .cfi_rel_offset esi, 0
2578
2579 call __kernel_syscall
2580 pushl %eax
2581 .cfi_adjust_cfa_offset 4
2582 .cfi_rel_offset eax, 0
2583
2584 mov 24(%esp), %ebx
2585 mov 28(%esp), %ecx
2586 mov 32(%esp), %edx
2587 mov 36(%esp), %esi
2588 movl $__NR_fstatat64, %eax
2589 call *(%esp)
2590 addl $4, %esp
2591
2592 cmpl $-MAX_ERRNO, %eax
2593 jb 1f
2594 negl %eax
2595 pushl %eax
2596 call __set_errno_internal
2597 addl $4, %esp
25981:
2599 popl %esi
2600 popl %edx
2601 popl %ecx
2602 popl %ebx
2603 ret
2604END(fstatat64)
2605
2606ALIAS_SYMBOL(fstatat, fstatat64)
2607
2608ENTRY(linkat)
2609 pushl %ebx
2610 .cfi_def_cfa_offset 8
2611 .cfi_rel_offset ebx, 0
2612 pushl %ecx
2613 .cfi_adjust_cfa_offset 4
2614 .cfi_rel_offset ecx, 0
2615 pushl %edx
2616 .cfi_adjust_cfa_offset 4
2617 .cfi_rel_offset edx, 0
2618 pushl %esi
2619 .cfi_adjust_cfa_offset 4
2620 .cfi_rel_offset esi, 0
2621 pushl %edi
2622 .cfi_adjust_cfa_offset 4
2623 .cfi_rel_offset edi, 0
2624
2625 call __kernel_syscall
2626 pushl %eax
2627 .cfi_adjust_cfa_offset 4
2628 .cfi_rel_offset eax, 0
2629
2630 mov 28(%esp), %ebx
2631 mov 32(%esp), %ecx
2632 mov 36(%esp), %edx
2633 mov 40(%esp), %esi
2634 mov 44(%esp), %edi
2635 movl $__NR_linkat, %eax
2636 call *(%esp)
2637 addl $4, %esp
2638
2639 cmpl $-MAX_ERRNO, %eax
2640 jb 1f
2641 negl %eax
2642 pushl %eax
2643 call __set_errno_internal
2644 addl $4, %esp
26451:
2646 popl %edi
2647 popl %esi
2648 popl %edx
2649 popl %ecx
2650 popl %ebx
2651 ret
2652END(linkat)
2653
2654ENTRY(mkdirat)
2655 pushl %ebx
2656 .cfi_def_cfa_offset 8
2657 .cfi_rel_offset ebx, 0
2658 pushl %ecx
2659 .cfi_adjust_cfa_offset 4
2660 .cfi_rel_offset ecx, 0
2661 pushl %edx
2662 .cfi_adjust_cfa_offset 4
2663 .cfi_rel_offset edx, 0
2664
2665 call __kernel_syscall
2666 pushl %eax
2667 .cfi_adjust_cfa_offset 4
2668 .cfi_rel_offset eax, 0
2669
2670 mov 20(%esp), %ebx
2671 mov 24(%esp), %ecx
2672 mov 28(%esp), %edx
2673 movl $__NR_mkdirat, %eax
2674 call *(%esp)
2675 addl $4, %esp
2676
2677 cmpl $-MAX_ERRNO, %eax
2678 jb 1f
2679 negl %eax
2680 pushl %eax
2681 call __set_errno_internal
2682 addl $4, %esp
26831:
2684 popl %edx
2685 popl %ecx
2686 popl %ebx
2687 ret
2688END(mkdirat)
2689
2690ENTRY(mknodat)
2691 pushl %ebx
2692 .cfi_def_cfa_offset 8
2693 .cfi_rel_offset ebx, 0
2694 pushl %ecx
2695 .cfi_adjust_cfa_offset 4
2696 .cfi_rel_offset ecx, 0
2697 pushl %edx
2698 .cfi_adjust_cfa_offset 4
2699 .cfi_rel_offset edx, 0
2700 pushl %esi
2701 .cfi_adjust_cfa_offset 4
2702 .cfi_rel_offset esi, 0
2703
2704 call __kernel_syscall
2705 pushl %eax
2706 .cfi_adjust_cfa_offset 4
2707 .cfi_rel_offset eax, 0
2708
2709 mov 24(%esp), %ebx
2710 mov 28(%esp), %ecx
2711 mov 32(%esp), %edx
2712 mov 36(%esp), %esi
2713 movl $__NR_mknodat, %eax
2714 call *(%esp)
2715 addl $4, %esp
2716
2717 cmpl $-MAX_ERRNO, %eax
2718 jb 1f
2719 negl %eax
2720 pushl %eax
2721 call __set_errno_internal
2722 addl $4, %esp
27231:
2724 popl %esi
2725 popl %edx
2726 popl %ecx
2727 popl %ebx
2728 ret
2729END(mknodat)
2730
2731ENTRY(readlinkat)
2732 pushl %ebx
2733 .cfi_def_cfa_offset 8
2734 .cfi_rel_offset ebx, 0
2735 pushl %ecx
2736 .cfi_adjust_cfa_offset 4
2737 .cfi_rel_offset ecx, 0
2738 pushl %edx
2739 .cfi_adjust_cfa_offset 4
2740 .cfi_rel_offset edx, 0
2741 pushl %esi
2742 .cfi_adjust_cfa_offset 4
2743 .cfi_rel_offset esi, 0
2744
2745 call __kernel_syscall
2746 pushl %eax
2747 .cfi_adjust_cfa_offset 4
2748 .cfi_rel_offset eax, 0
2749
2750 mov 24(%esp), %ebx
2751 mov 28(%esp), %ecx
2752 mov 32(%esp), %edx
2753 mov 36(%esp), %esi
2754 movl $__NR_readlinkat, %eax
2755 call *(%esp)
2756 addl $4, %esp
2757
2758 cmpl $-MAX_ERRNO, %eax
2759 jb 1f
2760 negl %eax
2761 pushl %eax
2762 call __set_errno_internal
2763 addl $4, %esp
27641:
2765 popl %esi
2766 popl %edx
2767 popl %ecx
2768 popl %ebx
2769 ret
2770END(readlinkat)
2771
2772ENTRY(renameat)
2773 pushl %ebx
2774 .cfi_def_cfa_offset 8
2775 .cfi_rel_offset ebx, 0
2776 pushl %ecx
2777 .cfi_adjust_cfa_offset 4
2778 .cfi_rel_offset ecx, 0
2779 pushl %edx
2780 .cfi_adjust_cfa_offset 4
2781 .cfi_rel_offset edx, 0
2782 pushl %esi
2783 .cfi_adjust_cfa_offset 4
2784 .cfi_rel_offset esi, 0
2785
2786 call __kernel_syscall
2787 pushl %eax
2788 .cfi_adjust_cfa_offset 4
2789 .cfi_rel_offset eax, 0
2790
2791 mov 24(%esp), %ebx
2792 mov 28(%esp), %ecx
2793 mov 32(%esp), %edx
2794 mov 36(%esp), %esi
2795 movl $__NR_renameat, %eax
2796 call *(%esp)
2797 addl $4, %esp
2798
2799 cmpl $-MAX_ERRNO, %eax
2800 jb 1f
2801 negl %eax
2802 pushl %eax
2803 call __set_errno_internal
2804 addl $4, %esp
28051:
2806 popl %esi
2807 popl %edx
2808 popl %ecx
2809 popl %ebx
2810 ret
2811END(renameat)
2812
2813ENTRY(symlinkat)
2814 pushl %ebx
2815 .cfi_def_cfa_offset 8
2816 .cfi_rel_offset ebx, 0
2817 pushl %ecx
2818 .cfi_adjust_cfa_offset 4
2819 .cfi_rel_offset ecx, 0
2820 pushl %edx
2821 .cfi_adjust_cfa_offset 4
2822 .cfi_rel_offset edx, 0
2823
2824 call __kernel_syscall
2825 pushl %eax
2826 .cfi_adjust_cfa_offset 4
2827 .cfi_rel_offset eax, 0
2828
2829 mov 20(%esp), %ebx
2830 mov 24(%esp), %ecx
2831 mov 28(%esp), %edx
2832 movl $__NR_symlinkat, %eax
2833 call *(%esp)
2834 addl $4, %esp
2835
2836 cmpl $-MAX_ERRNO, %eax
2837 jb 1f
2838 negl %eax
2839 pushl %eax
2840 call __set_errno_internal
2841 addl $4, %esp
28421:
2843 popl %edx
2844 popl %ecx
2845 popl %ebx
2846 ret
2847END(symlinkat)
2848
2849ENTRY(unlinkat)
2850 pushl %ebx
2851 .cfi_def_cfa_offset 8
2852 .cfi_rel_offset ebx, 0
2853 pushl %ecx
2854 .cfi_adjust_cfa_offset 4
2855 .cfi_rel_offset ecx, 0
2856 pushl %edx
2857 .cfi_adjust_cfa_offset 4
2858 .cfi_rel_offset edx, 0
2859
2860 call __kernel_syscall
2861 pushl %eax
2862 .cfi_adjust_cfa_offset 4
2863 .cfi_rel_offset eax, 0
2864
2865 mov 20(%esp), %ebx
2866 mov 24(%esp), %ecx
2867 mov 28(%esp), %edx
2868 movl $__NR_unlinkat, %eax
2869 call *(%esp)
2870 addl $4, %esp
2871
2872 cmpl $-MAX_ERRNO, %eax
2873 jb 1f
2874 negl %eax
2875 pushl %eax
2876 call __set_errno_internal
2877 addl $4, %esp
28781:
2879 popl %edx
2880 popl %ecx
2881 popl %ebx
2882 ret
2883END(unlinkat)
2884
2885ENTRY(utimensat)
2886 pushl %ebx
2887 .cfi_def_cfa_offset 8
2888 .cfi_rel_offset ebx, 0
2889 pushl %ecx
2890 .cfi_adjust_cfa_offset 4
2891 .cfi_rel_offset ecx, 0
2892 pushl %edx
2893 .cfi_adjust_cfa_offset 4
2894 .cfi_rel_offset edx, 0
2895 pushl %esi
2896 .cfi_adjust_cfa_offset 4
2897 .cfi_rel_offset esi, 0
2898
2899 call __kernel_syscall
2900 pushl %eax
2901 .cfi_adjust_cfa_offset 4
2902 .cfi_rel_offset eax, 0
2903
2904 mov 24(%esp), %ebx
2905 mov 28(%esp), %ecx
2906 mov 32(%esp), %edx
2907 mov 36(%esp), %esi
2908 movl $__NR_utimensat, %eax
2909 call *(%esp)
2910 addl $4, %esp
2911
2912 cmpl $-MAX_ERRNO, %eax
2913 jb 1f
2914 negl %eax
2915 pushl %eax
2916 call __set_errno_internal
2917 addl $4, %esp
29181:
2919 popl %esi
2920 popl %edx
2921 popl %ecx
2922 popl %ebx
2923 ret
2924END(utimensat)
2925
2926ENTRY(lseek)
2927 pushl %ebx
2928 .cfi_def_cfa_offset 8
2929 .cfi_rel_offset ebx, 0
2930 pushl %ecx
2931 .cfi_adjust_cfa_offset 4
2932 .cfi_rel_offset ecx, 0
2933 pushl %edx
2934 .cfi_adjust_cfa_offset 4
2935 .cfi_rel_offset edx, 0
2936
2937 call __kernel_syscall
2938 pushl %eax
2939 .cfi_adjust_cfa_offset 4
2940 .cfi_rel_offset eax, 0
2941
2942 mov 20(%esp), %ebx
2943 mov 24(%esp), %ecx
2944 mov 28(%esp), %edx
2945 movl $__NR_lseek, %eax
2946 call *(%esp)
2947 addl $4, %esp
2948
2949 cmpl $-MAX_ERRNO, %eax
2950 jb 1f
2951 negl %eax
2952 pushl %eax
2953 call __set_errno_internal
2954 addl $4, %esp
29551:
2956 popl %edx
2957 popl %ecx
2958 popl %ebx
2959 ret
2960END(lseek)
2961
2962ENTRY(__llseek)
2963 pushl %ebx
2964 .cfi_def_cfa_offset 8
2965 .cfi_rel_offset ebx, 0
2966 pushl %ecx
2967 .cfi_adjust_cfa_offset 4
2968 .cfi_rel_offset ecx, 0
2969 pushl %edx
2970 .cfi_adjust_cfa_offset 4
2971 .cfi_rel_offset edx, 0
2972 pushl %esi
2973 .cfi_adjust_cfa_offset 4
2974 .cfi_rel_offset esi, 0
2975 pushl %edi
2976 .cfi_adjust_cfa_offset 4
2977 .cfi_rel_offset edi, 0
2978
2979 call __kernel_syscall
2980 pushl %eax
2981 .cfi_adjust_cfa_offset 4
2982 .cfi_rel_offset eax, 0
2983
2984 mov 28(%esp), %ebx
2985 mov 32(%esp), %ecx
2986 mov 36(%esp), %edx
2987 mov 40(%esp), %esi
2988 mov 44(%esp), %edi
2989 movl $__NR__llseek, %eax
2990 call *(%esp)
2991 addl $4, %esp
2992
2993 cmpl $-MAX_ERRNO, %eax
2994 jb 1f
2995 negl %eax
2996 pushl %eax
2997 call __set_errno_internal
2998 addl $4, %esp
29991:
3000 popl %edi
3001 popl %esi
3002 popl %edx
3003 popl %ecx
3004 popl %ebx
3005 ret
3006END(__llseek)
3007
3008ENTRY(ftruncate64)
3009 pushl %ebx
3010 .cfi_def_cfa_offset 8
3011 .cfi_rel_offset ebx, 0
3012 pushl %ecx
3013 .cfi_adjust_cfa_offset 4
3014 .cfi_rel_offset ecx, 0
3015 pushl %edx
3016 .cfi_adjust_cfa_offset 4
3017 .cfi_rel_offset edx, 0
3018
3019 call __kernel_syscall
3020 pushl %eax
3021 .cfi_adjust_cfa_offset 4
3022 .cfi_rel_offset eax, 0
3023
3024 mov 20(%esp), %ebx
3025 mov 24(%esp), %ecx
3026 mov 28(%esp), %edx
3027 movl $__NR_ftruncate64, %eax
3028 call *(%esp)
3029 addl $4, %esp
3030
3031 cmpl $-MAX_ERRNO, %eax
3032 jb 1f
3033 negl %eax
3034 pushl %eax
3035 call __set_errno_internal
3036 addl $4, %esp
30371:
3038 popl %edx
3039 popl %ecx
3040 popl %ebx
3041 ret
3042END(ftruncate64)
3043
3044ENTRY(sendfile)
3045 pushl %ebx
3046 .cfi_def_cfa_offset 8
3047 .cfi_rel_offset ebx, 0
3048 pushl %ecx
3049 .cfi_adjust_cfa_offset 4
3050 .cfi_rel_offset ecx, 0
3051 pushl %edx
3052 .cfi_adjust_cfa_offset 4
3053 .cfi_rel_offset edx, 0
3054 pushl %esi
3055 .cfi_adjust_cfa_offset 4
3056 .cfi_rel_offset esi, 0
3057
3058 call __kernel_syscall
3059 pushl %eax
3060 .cfi_adjust_cfa_offset 4
3061 .cfi_rel_offset eax, 0
3062
3063 mov 24(%esp), %ebx
3064 mov 28(%esp), %ecx
3065 mov 32(%esp), %edx
3066 mov 36(%esp), %esi
3067 movl $__NR_sendfile, %eax
3068 call *(%esp)
3069 addl $4, %esp
3070
3071 cmpl $-MAX_ERRNO, %eax
3072 jb 1f
3073 negl %eax
3074 pushl %eax
3075 call __set_errno_internal
3076 addl $4, %esp
30771:
3078 popl %esi
3079 popl %edx
3080 popl %ecx
3081 popl %ebx
3082 ret
3083END(sendfile)
3084
3085ENTRY(sendfile64)
3086 pushl %ebx
3087 .cfi_def_cfa_offset 8
3088 .cfi_rel_offset ebx, 0
3089 pushl %ecx
3090 .cfi_adjust_cfa_offset 4
3091 .cfi_rel_offset ecx, 0
3092 pushl %edx
3093 .cfi_adjust_cfa_offset 4
3094 .cfi_rel_offset edx, 0
3095 pushl %esi
3096 .cfi_adjust_cfa_offset 4
3097 .cfi_rel_offset esi, 0
3098
3099 call __kernel_syscall
3100 pushl %eax
3101 .cfi_adjust_cfa_offset 4
3102 .cfi_rel_offset eax, 0
3103
3104 mov 24(%esp), %ebx
3105 mov 28(%esp), %ecx
3106 mov 32(%esp), %edx
3107 mov 36(%esp), %esi
3108 movl $__NR_sendfile64, %eax
3109 call *(%esp)
3110 addl $4, %esp
3111
3112 cmpl $-MAX_ERRNO, %eax
3113 jb 1f
3114 negl %eax
3115 pushl %eax
3116 call __set_errno_internal
3117 addl $4, %esp
31181:
3119 popl %esi
3120 popl %edx
3121 popl %ecx
3122 popl %ebx
3123 ret
3124END(sendfile64)
3125
3126ENTRY(truncate)
3127 pushl %ebx
3128 .cfi_def_cfa_offset 8
3129 .cfi_rel_offset ebx, 0
3130 pushl %ecx
3131 .cfi_adjust_cfa_offset 4
3132 .cfi_rel_offset ecx, 0
3133
3134 call __kernel_syscall
3135 pushl %eax
3136 .cfi_adjust_cfa_offset 4
3137 .cfi_rel_offset eax, 0
3138
3139 mov 16(%esp), %ebx
3140 mov 20(%esp), %ecx
3141 movl $__NR_truncate, %eax
3142 call *(%esp)
3143 addl $4, %esp
3144
3145 cmpl $-MAX_ERRNO, %eax
3146 jb 1f
3147 negl %eax
3148 pushl %eax
3149 call __set_errno_internal
3150 addl $4, %esp
31511:
3152 popl %ecx
3153 popl %ebx
3154 ret
3155END(truncate)
3156
3157ENTRY(truncate64)
3158 pushl %ebx
3159 .cfi_def_cfa_offset 8
3160 .cfi_rel_offset ebx, 0
3161 pushl %ecx
3162 .cfi_adjust_cfa_offset 4
3163 .cfi_rel_offset ecx, 0
3164 pushl %edx
3165 .cfi_adjust_cfa_offset 4
3166 .cfi_rel_offset edx, 0
3167
3168 call __kernel_syscall
3169 pushl %eax
3170 .cfi_adjust_cfa_offset 4
3171 .cfi_rel_offset eax, 0
3172
3173 mov 20(%esp), %ebx
3174 mov 24(%esp), %ecx
3175 mov 28(%esp), %edx
3176 movl $__NR_truncate64, %eax
3177 call *(%esp)
3178 addl $4, %esp
3179
3180 cmpl $-MAX_ERRNO, %eax
3181 jb 1f
3182 negl %eax
3183 pushl %eax
3184 call __set_errno_internal
3185 addl $4, %esp
31861:
3187 popl %edx
3188 popl %ecx
3189 popl %ebx
3190 ret
3191END(truncate64)
3192
3193ENTRY(__mmap2)
3194 pushl %ebx
3195 .cfi_def_cfa_offset 8
3196 .cfi_rel_offset ebx, 0
3197 pushl %ecx
3198 .cfi_adjust_cfa_offset 4
3199 .cfi_rel_offset ecx, 0
3200 pushl %edx
3201 .cfi_adjust_cfa_offset 4
3202 .cfi_rel_offset edx, 0
3203 pushl %esi
3204 .cfi_adjust_cfa_offset 4
3205 .cfi_rel_offset esi, 0
3206 pushl %edi
3207 .cfi_adjust_cfa_offset 4
3208 .cfi_rel_offset edi, 0
3209 pushl %ebp
3210 .cfi_adjust_cfa_offset 4
3211 .cfi_rel_offset ebp, 0
3212
3213 call __kernel_syscall
3214 pushl %eax
3215 .cfi_adjust_cfa_offset 4
3216 .cfi_rel_offset eax, 0
3217
3218 mov 32(%esp), %ebx
3219 mov 36(%esp), %ecx
3220 mov 40(%esp), %edx
3221 mov 44(%esp), %esi
3222 mov 48(%esp), %edi
3223 mov 52(%esp), %ebp
3224 movl $__NR_mmap2, %eax
3225 call *(%esp)
3226 addl $4, %esp
3227
3228 cmpl $-MAX_ERRNO, %eax
3229 jb 1f
3230 negl %eax
3231 pushl %eax
3232 call __set_errno_internal
3233 addl $4, %esp
32341:
3235 popl %ebp
3236 popl %edi
3237 popl %esi
3238 popl %edx
3239 popl %ecx
3240 popl %ebx
3241 ret
3242END(__mmap2)
3243
3244ENTRY(fallocate64)
3245 pushl %ebx
3246 .cfi_def_cfa_offset 8
3247 .cfi_rel_offset ebx, 0
3248 pushl %ecx
3249 .cfi_adjust_cfa_offset 4
3250 .cfi_rel_offset ecx, 0
3251 pushl %edx
3252 .cfi_adjust_cfa_offset 4
3253 .cfi_rel_offset edx, 0
3254 pushl %esi
3255 .cfi_adjust_cfa_offset 4
3256 .cfi_rel_offset esi, 0
3257 pushl %edi
3258 .cfi_adjust_cfa_offset 4
3259 .cfi_rel_offset edi, 0
3260 pushl %ebp
3261 .cfi_adjust_cfa_offset 4
3262 .cfi_rel_offset ebp, 0
3263
3264 call __kernel_syscall
3265 pushl %eax
3266 .cfi_adjust_cfa_offset 4
3267 .cfi_rel_offset eax, 0
3268
3269 mov 32(%esp), %ebx
3270 mov 36(%esp), %ecx
3271 mov 40(%esp), %edx
3272 mov 44(%esp), %esi
3273 mov 48(%esp), %edi
3274 mov 52(%esp), %ebp
3275 movl $__NR_fallocate, %eax
3276 call *(%esp)
3277 addl $4, %esp
3278
3279 cmpl $-MAX_ERRNO, %eax
3280 jb 1f
3281 negl %eax
3282 pushl %eax
3283 call __set_errno_internal
3284 addl $4, %esp
32851:
3286 popl %ebp
3287 popl %edi
3288 popl %esi
3289 popl %edx
3290 popl %ecx
3291 popl %ebx
3292 ret
3293END(fallocate64)
3294
3295ENTRY(__fadvise64)
3296 pushl %ebx
3297 .cfi_def_cfa_offset 8
3298 .cfi_rel_offset ebx, 0
3299 pushl %ecx
3300 .cfi_adjust_cfa_offset 4
3301 .cfi_rel_offset ecx, 0
3302 pushl %edx
3303 .cfi_adjust_cfa_offset 4
3304 .cfi_rel_offset edx, 0
3305 pushl %esi
3306 .cfi_adjust_cfa_offset 4
3307 .cfi_rel_offset esi, 0
3308 pushl %edi
3309 .cfi_adjust_cfa_offset 4
3310 .cfi_rel_offset edi, 0
3311 pushl %ebp
3312 .cfi_adjust_cfa_offset 4
3313 .cfi_rel_offset ebp, 0
3314
3315 call __kernel_syscall
3316 pushl %eax
3317 .cfi_adjust_cfa_offset 4
3318 .cfi_rel_offset eax, 0
3319
3320 mov 32(%esp), %ebx
3321 mov 36(%esp), %ecx
3322 mov 40(%esp), %edx
3323 mov 44(%esp), %esi
3324 mov 48(%esp), %edi
3325 mov 52(%esp), %ebp
3326 movl $__NR_fadvise64_64, %eax
3327 call *(%esp)
3328 addl $4, %esp
3329
3330 cmpl $-MAX_ERRNO, %eax
3331 jb 1f
3332 negl %eax
3333 pushl %eax
3334 call __set_errno_internal
3335 addl $4, %esp
33361:
3337 popl %ebp
3338 popl %edi
3339 popl %esi
3340 popl %edx
3341 popl %ecx
3342 popl %ebx
3343 ret
3344END(__fadvise64)
3345
3346ENTRY(__fstatfs64)
3347 pushl %ebx
3348 .cfi_def_cfa_offset 8
3349 .cfi_rel_offset ebx, 0
3350 pushl %ecx
3351 .cfi_adjust_cfa_offset 4
3352 .cfi_rel_offset ecx, 0
3353 pushl %edx
3354 .cfi_adjust_cfa_offset 4
3355 .cfi_rel_offset edx, 0
3356
3357 call __kernel_syscall
3358 pushl %eax
3359 .cfi_adjust_cfa_offset 4
3360 .cfi_rel_offset eax, 0
3361
3362 mov 20(%esp), %ebx
3363 mov 24(%esp), %ecx
3364 mov 28(%esp), %edx
3365 movl $__NR_fstatfs64, %eax
3366 call *(%esp)
3367 addl $4, %esp
3368
3369 cmpl $-MAX_ERRNO, %eax
3370 jb 1f
3371 negl %eax
3372 pushl %eax
3373 call __set_errno_internal
3374 addl $4, %esp
33751:
3376 popl %edx
3377 popl %ecx
3378 popl %ebx
3379 ret
3380END(__fstatfs64)
3381
3382ENTRY(__statfs64)
3383 pushl %ebx
3384 .cfi_def_cfa_offset 8
3385 .cfi_rel_offset ebx, 0
3386 pushl %ecx
3387 .cfi_adjust_cfa_offset 4
3388 .cfi_rel_offset ecx, 0
3389 pushl %edx
3390 .cfi_adjust_cfa_offset 4
3391 .cfi_rel_offset edx, 0
3392
3393 call __kernel_syscall
3394 pushl %eax
3395 .cfi_adjust_cfa_offset 4
3396 .cfi_rel_offset eax, 0
3397
3398 mov 20(%esp), %ebx
3399 mov 24(%esp), %ecx
3400 mov 28(%esp), %edx
3401 movl $__NR_statfs64, %eax
3402 call *(%esp)
3403 addl $4, %esp
3404
3405 cmpl $-MAX_ERRNO, %eax
3406 jb 1f
3407 negl %eax
3408 pushl %eax
3409 call __set_errno_internal
3410 addl $4, %esp
34111:
3412 popl %edx
3413 popl %ecx
3414 popl %ebx
3415 ret
3416END(__statfs64)
3417
3418ENTRY(fstat64)
3419 pushl %ebx
3420 .cfi_def_cfa_offset 8
3421 .cfi_rel_offset ebx, 0
3422 pushl %ecx
3423 .cfi_adjust_cfa_offset 4
3424 .cfi_rel_offset ecx, 0
3425
3426 call __kernel_syscall
3427 pushl %eax
3428 .cfi_adjust_cfa_offset 4
3429 .cfi_rel_offset eax, 0
3430
3431 mov 16(%esp), %ebx
3432 mov 20(%esp), %ecx
3433 movl $__NR_fstat64, %eax
3434 call *(%esp)
3435 addl $4, %esp
3436
3437 cmpl $-MAX_ERRNO, %eax
3438 jb 1f
3439 negl %eax
3440 pushl %eax
3441 call __set_errno_internal
3442 addl $4, %esp
34431:
3444 popl %ecx
3445 popl %ebx
3446 ret
3447END(fstat64)
3448
3449ALIAS_SYMBOL(fstat, fstat64)
3450
3451ENTRY(chdir)
3452 pushl %ebx
3453 .cfi_def_cfa_offset 8
3454 .cfi_rel_offset ebx, 0
3455
3456 call __kernel_syscall
3457 pushl %eax
3458 .cfi_adjust_cfa_offset 4
3459 .cfi_rel_offset eax, 0
3460
3461 mov 12(%esp), %ebx
3462 movl $__NR_chdir, %eax
3463 call *(%esp)
3464 addl $4, %esp
3465
3466 cmpl $-MAX_ERRNO, %eax
3467 jb 1f
3468 negl %eax
3469 pushl %eax
3470 call __set_errno_internal
3471 addl $4, %esp
34721:
3473 popl %ebx
3474 ret
3475END(chdir)
3476
3477ENTRY(mount)
3478 pushl %ebx
3479 .cfi_def_cfa_offset 8
3480 .cfi_rel_offset ebx, 0
3481 pushl %ecx
3482 .cfi_adjust_cfa_offset 4
3483 .cfi_rel_offset ecx, 0
3484 pushl %edx
3485 .cfi_adjust_cfa_offset 4
3486 .cfi_rel_offset edx, 0
3487 pushl %esi
3488 .cfi_adjust_cfa_offset 4
3489 .cfi_rel_offset esi, 0
3490 pushl %edi
3491 .cfi_adjust_cfa_offset 4
3492 .cfi_rel_offset edi, 0
3493
3494 call __kernel_syscall
3495 pushl %eax
3496 .cfi_adjust_cfa_offset 4
3497 .cfi_rel_offset eax, 0
3498
3499 mov 28(%esp), %ebx
3500 mov 32(%esp), %ecx
3501 mov 36(%esp), %edx
3502 mov 40(%esp), %esi
3503 mov 44(%esp), %edi
3504 movl $__NR_mount, %eax
3505 call *(%esp)
3506 addl $4, %esp
3507
3508 cmpl $-MAX_ERRNO, %eax
3509 jb 1f
3510 negl %eax
3511 pushl %eax
3512 call __set_errno_internal
3513 addl $4, %esp
35141:
3515 popl %edi
3516 popl %esi
3517 popl %edx
3518 popl %ecx
3519 popl %ebx
3520 ret
3521END(mount)
3522
3523ENTRY(umount2)
3524 pushl %ebx
3525 .cfi_def_cfa_offset 8
3526 .cfi_rel_offset ebx, 0
3527 pushl %ecx
3528 .cfi_adjust_cfa_offset 4
3529 .cfi_rel_offset ecx, 0
3530
3531 call __kernel_syscall
3532 pushl %eax
3533 .cfi_adjust_cfa_offset 4
3534 .cfi_rel_offset eax, 0
3535
3536 mov 16(%esp), %ebx
3537 mov 20(%esp), %ecx
3538 movl $__NR_umount2, %eax
3539 call *(%esp)
3540 addl $4, %esp
3541
3542 cmpl $-MAX_ERRNO, %eax
3543 jb 1f
3544 negl %eax
3545 pushl %eax
3546 call __set_errno_internal
3547 addl $4, %esp
35481:
3549 popl %ecx
3550 popl %ebx
3551 ret
3552END(umount2)
3553
3554ENTRY(__getcwd)
3555 pushl %ebx
3556 .cfi_def_cfa_offset 8
3557 .cfi_rel_offset ebx, 0
3558 pushl %ecx
3559 .cfi_adjust_cfa_offset 4
3560 .cfi_rel_offset ecx, 0
3561
3562 call __kernel_syscall
3563 pushl %eax
3564 .cfi_adjust_cfa_offset 4
3565 .cfi_rel_offset eax, 0
3566
3567 mov 16(%esp), %ebx
3568 mov 20(%esp), %ecx
3569 movl $__NR_getcwd, %eax
3570 call *(%esp)
3571 addl $4, %esp
3572
3573 cmpl $-MAX_ERRNO, %eax
3574 jb 1f
3575 negl %eax
3576 pushl %eax
3577 call __set_errno_internal
3578 addl $4, %esp
35791:
3580 popl %ecx
3581 popl %ebx
3582 ret
3583END(__getcwd)
3584
3585ENTRY(fchdir)
3586 pushl %ebx
3587 .cfi_def_cfa_offset 8
3588 .cfi_rel_offset ebx, 0
3589
3590 call __kernel_syscall
3591 pushl %eax
3592 .cfi_adjust_cfa_offset 4
3593 .cfi_rel_offset eax, 0
3594
3595 mov 12(%esp), %ebx
3596 movl $__NR_fchdir, %eax
3597 call *(%esp)
3598 addl $4, %esp
3599
3600 cmpl $-MAX_ERRNO, %eax
3601 jb 1f
3602 negl %eax
3603 pushl %eax
3604 call __set_errno_internal
3605 addl $4, %esp
36061:
3607 popl %ebx
3608 ret
3609END(fchdir)
3610
3611ENTRY(setxattr)
3612 pushl %ebx
3613 .cfi_def_cfa_offset 8
3614 .cfi_rel_offset ebx, 0
3615 pushl %ecx
3616 .cfi_adjust_cfa_offset 4
3617 .cfi_rel_offset ecx, 0
3618 pushl %edx
3619 .cfi_adjust_cfa_offset 4
3620 .cfi_rel_offset edx, 0
3621 pushl %esi
3622 .cfi_adjust_cfa_offset 4
3623 .cfi_rel_offset esi, 0
3624 pushl %edi
3625 .cfi_adjust_cfa_offset 4
3626 .cfi_rel_offset edi, 0
3627
3628 call __kernel_syscall
3629 pushl %eax
3630 .cfi_adjust_cfa_offset 4
3631 .cfi_rel_offset eax, 0
3632
3633 mov 28(%esp), %ebx
3634 mov 32(%esp), %ecx
3635 mov 36(%esp), %edx
3636 mov 40(%esp), %esi
3637 mov 44(%esp), %edi
3638 movl $__NR_setxattr, %eax
3639 call *(%esp)
3640 addl $4, %esp
3641
3642 cmpl $-MAX_ERRNO, %eax
3643 jb 1f
3644 negl %eax
3645 pushl %eax
3646 call __set_errno_internal
3647 addl $4, %esp
36481:
3649 popl %edi
3650 popl %esi
3651 popl %edx
3652 popl %ecx
3653 popl %ebx
3654 ret
3655END(setxattr)
3656
3657ENTRY(lsetxattr)
3658 pushl %ebx
3659 .cfi_def_cfa_offset 8
3660 .cfi_rel_offset ebx, 0
3661 pushl %ecx
3662 .cfi_adjust_cfa_offset 4
3663 .cfi_rel_offset ecx, 0
3664 pushl %edx
3665 .cfi_adjust_cfa_offset 4
3666 .cfi_rel_offset edx, 0
3667 pushl %esi
3668 .cfi_adjust_cfa_offset 4
3669 .cfi_rel_offset esi, 0
3670 pushl %edi
3671 .cfi_adjust_cfa_offset 4
3672 .cfi_rel_offset edi, 0
3673
3674 call __kernel_syscall
3675 pushl %eax
3676 .cfi_adjust_cfa_offset 4
3677 .cfi_rel_offset eax, 0
3678
3679 mov 28(%esp), %ebx
3680 mov 32(%esp), %ecx
3681 mov 36(%esp), %edx
3682 mov 40(%esp), %esi
3683 mov 44(%esp), %edi
3684 movl $__NR_lsetxattr, %eax
3685 call *(%esp)
3686 addl $4, %esp
3687
3688 cmpl $-MAX_ERRNO, %eax
3689 jb 1f
3690 negl %eax
3691 pushl %eax
3692 call __set_errno_internal
3693 addl $4, %esp
36941:
3695 popl %edi
3696 popl %esi
3697 popl %edx
3698 popl %ecx
3699 popl %ebx
3700 ret
3701END(lsetxattr)
3702
3703ENTRY(getxattr)
3704 pushl %ebx
3705 .cfi_def_cfa_offset 8
3706 .cfi_rel_offset ebx, 0
3707 pushl %ecx
3708 .cfi_adjust_cfa_offset 4
3709 .cfi_rel_offset ecx, 0
3710 pushl %edx
3711 .cfi_adjust_cfa_offset 4
3712 .cfi_rel_offset edx, 0
3713 pushl %esi
3714 .cfi_adjust_cfa_offset 4
3715 .cfi_rel_offset esi, 0
3716
3717 call __kernel_syscall
3718 pushl %eax
3719 .cfi_adjust_cfa_offset 4
3720 .cfi_rel_offset eax, 0
3721
3722 mov 24(%esp), %ebx
3723 mov 28(%esp), %ecx
3724 mov 32(%esp), %edx
3725 mov 36(%esp), %esi
3726 movl $__NR_getxattr, %eax
3727 call *(%esp)
3728 addl $4, %esp
3729
3730 cmpl $-MAX_ERRNO, %eax
3731 jb 1f
3732 negl %eax
3733 pushl %eax
3734 call __set_errno_internal
3735 addl $4, %esp
37361:
3737 popl %esi
3738 popl %edx
3739 popl %ecx
3740 popl %ebx
3741 ret
3742END(getxattr)
3743
3744ENTRY(lgetxattr)
3745 pushl %ebx
3746 .cfi_def_cfa_offset 8
3747 .cfi_rel_offset ebx, 0
3748 pushl %ecx
3749 .cfi_adjust_cfa_offset 4
3750 .cfi_rel_offset ecx, 0
3751 pushl %edx
3752 .cfi_adjust_cfa_offset 4
3753 .cfi_rel_offset edx, 0
3754 pushl %esi
3755 .cfi_adjust_cfa_offset 4
3756 .cfi_rel_offset esi, 0
3757
3758 call __kernel_syscall
3759 pushl %eax
3760 .cfi_adjust_cfa_offset 4
3761 .cfi_rel_offset eax, 0
3762
3763 mov 24(%esp), %ebx
3764 mov 28(%esp), %ecx
3765 mov 32(%esp), %edx
3766 mov 36(%esp), %esi
3767 movl $__NR_lgetxattr, %eax
3768 call *(%esp)
3769 addl $4, %esp
3770
3771 cmpl $-MAX_ERRNO, %eax
3772 jb 1f
3773 negl %eax
3774 pushl %eax
3775 call __set_errno_internal
3776 addl $4, %esp
37771:
3778 popl %esi
3779 popl %edx
3780 popl %ecx
3781 popl %ebx
3782 ret
3783END(lgetxattr)
3784
3785ENTRY(listxattr)
3786 pushl %ebx
3787 .cfi_def_cfa_offset 8
3788 .cfi_rel_offset ebx, 0
3789 pushl %ecx
3790 .cfi_adjust_cfa_offset 4
3791 .cfi_rel_offset ecx, 0
3792 pushl %edx
3793 .cfi_adjust_cfa_offset 4
3794 .cfi_rel_offset edx, 0
3795
3796 call __kernel_syscall
3797 pushl %eax
3798 .cfi_adjust_cfa_offset 4
3799 .cfi_rel_offset eax, 0
3800
3801 mov 20(%esp), %ebx
3802 mov 24(%esp), %ecx
3803 mov 28(%esp), %edx
3804 movl $__NR_listxattr, %eax
3805 call *(%esp)
3806 addl $4, %esp
3807
3808 cmpl $-MAX_ERRNO, %eax
3809 jb 1f
3810 negl %eax
3811 pushl %eax
3812 call __set_errno_internal
3813 addl $4, %esp
38141:
3815 popl %edx
3816 popl %ecx
3817 popl %ebx
3818 ret
3819END(listxattr)
3820
3821ENTRY(llistxattr)
3822 pushl %ebx
3823 .cfi_def_cfa_offset 8
3824 .cfi_rel_offset ebx, 0
3825 pushl %ecx
3826 .cfi_adjust_cfa_offset 4
3827 .cfi_rel_offset ecx, 0
3828 pushl %edx
3829 .cfi_adjust_cfa_offset 4
3830 .cfi_rel_offset edx, 0
3831
3832 call __kernel_syscall
3833 pushl %eax
3834 .cfi_adjust_cfa_offset 4
3835 .cfi_rel_offset eax, 0
3836
3837 mov 20(%esp), %ebx
3838 mov 24(%esp), %ecx
3839 mov 28(%esp), %edx
3840 movl $__NR_llistxattr, %eax
3841 call *(%esp)
3842 addl $4, %esp
3843
3844 cmpl $-MAX_ERRNO, %eax
3845 jb 1f
3846 negl %eax
3847 pushl %eax
3848 call __set_errno_internal
3849 addl $4, %esp
38501:
3851 popl %edx
3852 popl %ecx
3853 popl %ebx
3854 ret
3855END(llistxattr)
3856
3857ENTRY(removexattr)
3858 pushl %ebx
3859 .cfi_def_cfa_offset 8
3860 .cfi_rel_offset ebx, 0
3861 pushl %ecx
3862 .cfi_adjust_cfa_offset 4
3863 .cfi_rel_offset ecx, 0
3864
3865 call __kernel_syscall
3866 pushl %eax
3867 .cfi_adjust_cfa_offset 4
3868 .cfi_rel_offset eax, 0
3869
3870 mov 16(%esp), %ebx
3871 mov 20(%esp), %ecx
3872 movl $__NR_removexattr, %eax
3873 call *(%esp)
3874 addl $4, %esp
3875
3876 cmpl $-MAX_ERRNO, %eax
3877 jb 1f
3878 negl %eax
3879 pushl %eax
3880 call __set_errno_internal
3881 addl $4, %esp
38821:
3883 popl %ecx
3884 popl %ebx
3885 ret
3886END(removexattr)
3887
3888ENTRY(lremovexattr)
3889 pushl %ebx
3890 .cfi_def_cfa_offset 8
3891 .cfi_rel_offset ebx, 0
3892 pushl %ecx
3893 .cfi_adjust_cfa_offset 4
3894 .cfi_rel_offset ecx, 0
3895
3896 call __kernel_syscall
3897 pushl %eax
3898 .cfi_adjust_cfa_offset 4
3899 .cfi_rel_offset eax, 0
3900
3901 mov 16(%esp), %ebx
3902 mov 20(%esp), %ecx
3903 movl $__NR_lremovexattr, %eax
3904 call *(%esp)
3905 addl $4, %esp
3906
3907 cmpl $-MAX_ERRNO, %eax
3908 jb 1f
3909 negl %eax
3910 pushl %eax
3911 call __set_errno_internal
3912 addl $4, %esp
39131:
3914 popl %ecx
3915 popl %ebx
3916 ret
3917END(lremovexattr)
3918
3919ENTRY(swapon)
3920 pushl %ebx
3921 .cfi_def_cfa_offset 8
3922 .cfi_rel_offset ebx, 0
3923 pushl %ecx
3924 .cfi_adjust_cfa_offset 4
3925 .cfi_rel_offset ecx, 0
3926
3927 call __kernel_syscall
3928 pushl %eax
3929 .cfi_adjust_cfa_offset 4
3930 .cfi_rel_offset eax, 0
3931
3932 mov 16(%esp), %ebx
3933 mov 20(%esp), %ecx
3934 movl $__NR_swapon, %eax
3935 call *(%esp)
3936 addl $4, %esp
3937
3938 cmpl $-MAX_ERRNO, %eax
3939 jb 1f
3940 negl %eax
3941 pushl %eax
3942 call __set_errno_internal
3943 addl $4, %esp
39441:
3945 popl %ecx
3946 popl %ebx
3947 ret
3948END(swapon)
3949
3950ENTRY(swapoff)
3951 pushl %ebx
3952 .cfi_def_cfa_offset 8
3953 .cfi_rel_offset ebx, 0
3954
3955 call __kernel_syscall
3956 pushl %eax
3957 .cfi_adjust_cfa_offset 4
3958 .cfi_rel_offset eax, 0
3959
3960 mov 12(%esp), %ebx
3961 movl $__NR_swapoff, %eax
3962 call *(%esp)
3963 addl $4, %esp
3964
3965 cmpl $-MAX_ERRNO, %eax
3966 jb 1f
3967 negl %eax
3968 pushl %eax
3969 call __set_errno_internal
3970 addl $4, %esp
39711:
3972 popl %ebx
3973 ret
3974END(swapoff)
3975
3976ENTRY(settimeofday)
3977 pushl %ebx
3978 .cfi_def_cfa_offset 8
3979 .cfi_rel_offset ebx, 0
3980 pushl %ecx
3981 .cfi_adjust_cfa_offset 4
3982 .cfi_rel_offset ecx, 0
3983
3984 call __kernel_syscall
3985 pushl %eax
3986 .cfi_adjust_cfa_offset 4
3987 .cfi_rel_offset eax, 0
3988
3989 mov 16(%esp), %ebx
3990 mov 20(%esp), %ecx
3991 movl $__NR_settimeofday, %eax
3992 call *(%esp)
3993 addl $4, %esp
3994
3995 cmpl $-MAX_ERRNO, %eax
3996 jb 1f
3997 negl %eax
3998 pushl %eax
3999 call __set_errno_internal
4000 addl $4, %esp
40011:
4002 popl %ecx
4003 popl %ebx
4004 ret
4005END(settimeofday)
4006
4007ENTRY(times)
4008 pushl %ebx
4009 .cfi_def_cfa_offset 8
4010 .cfi_rel_offset ebx, 0
4011
4012 call __kernel_syscall
4013 pushl %eax
4014 .cfi_adjust_cfa_offset 4
4015 .cfi_rel_offset eax, 0
4016
4017 mov 12(%esp), %ebx
4018 movl $__NR_times, %eax
4019 call *(%esp)
4020 addl $4, %esp
4021
4022 cmpl $-MAX_ERRNO, %eax
4023 jb 1f
4024 negl %eax
4025 pushl %eax
4026 call __set_errno_internal
4027 addl $4, %esp
40281:
4029 popl %ebx
4030 ret
4031END(times)
4032
4033ENTRY(nanosleep)
4034 pushl %ebx
4035 .cfi_def_cfa_offset 8
4036 .cfi_rel_offset ebx, 0
4037 pushl %ecx
4038 .cfi_adjust_cfa_offset 4
4039 .cfi_rel_offset ecx, 0
4040
4041 call __kernel_syscall
4042 pushl %eax
4043 .cfi_adjust_cfa_offset 4
4044 .cfi_rel_offset eax, 0
4045
4046 mov 16(%esp), %ebx
4047 mov 20(%esp), %ecx
4048 movl $__NR_nanosleep, %eax
4049 call *(%esp)
4050 addl $4, %esp
4051
4052 cmpl $-MAX_ERRNO, %eax
4053 jb 1f
4054 negl %eax
4055 pushl %eax
4056 call __set_errno_internal
4057 addl $4, %esp
40581:
4059 popl %ecx
4060 popl %ebx
4061 ret
4062END(nanosleep)
4063
4064ENTRY(clock_settime)
4065 pushl %ebx
4066 .cfi_def_cfa_offset 8
4067 .cfi_rel_offset ebx, 0
4068 pushl %ecx
4069 .cfi_adjust_cfa_offset 4
4070 .cfi_rel_offset ecx, 0
4071
4072 call __kernel_syscall
4073 pushl %eax
4074 .cfi_adjust_cfa_offset 4
4075 .cfi_rel_offset eax, 0
4076
4077 mov 16(%esp), %ebx
4078 mov 20(%esp), %ecx
4079 movl $__NR_clock_settime, %eax
4080 call *(%esp)
4081 addl $4, %esp
4082
4083 cmpl $-MAX_ERRNO, %eax
4084 jb 1f
4085 negl %eax
4086 pushl %eax
4087 call __set_errno_internal
4088 addl $4, %esp
40891:
4090 popl %ecx
4091 popl %ebx
4092 ret
4093END(clock_settime)
4094
4095ENTRY(___clock_nanosleep)
4096 pushl %ebx
4097 .cfi_def_cfa_offset 8
4098 .cfi_rel_offset ebx, 0
4099 pushl %ecx
4100 .cfi_adjust_cfa_offset 4
4101 .cfi_rel_offset ecx, 0
4102 pushl %edx
4103 .cfi_adjust_cfa_offset 4
4104 .cfi_rel_offset edx, 0
4105 pushl %esi
4106 .cfi_adjust_cfa_offset 4
4107 .cfi_rel_offset esi, 0
4108
4109 call __kernel_syscall
4110 pushl %eax
4111 .cfi_adjust_cfa_offset 4
4112 .cfi_rel_offset eax, 0
4113
4114 mov 24(%esp), %ebx
4115 mov 28(%esp), %ecx
4116 mov 32(%esp), %edx
4117 mov 36(%esp), %esi
4118 movl $__NR_clock_nanosleep, %eax
4119 call *(%esp)
4120 addl $4, %esp
4121
4122 cmpl $-MAX_ERRNO, %eax
4123 jb 1f
4124 negl %eax
4125 pushl %eax
4126 call __set_errno_internal
4127 addl $4, %esp
41281:
4129 popl %esi
4130 popl %edx
4131 popl %ecx
4132 popl %ebx
4133 ret
4134END(___clock_nanosleep)
4135.hidden ___clock_nanosleep
4136
4137ENTRY(getitimer)
4138 pushl %ebx
4139 .cfi_def_cfa_offset 8
4140 .cfi_rel_offset ebx, 0
4141 pushl %ecx
4142 .cfi_adjust_cfa_offset 4
4143 .cfi_rel_offset ecx, 0
4144
4145 call __kernel_syscall
4146 pushl %eax
4147 .cfi_adjust_cfa_offset 4
4148 .cfi_rel_offset eax, 0
4149
4150 mov 16(%esp), %ebx
4151 mov 20(%esp), %ecx
4152 movl $__NR_getitimer, %eax
4153 call *(%esp)
4154 addl $4, %esp
4155
4156 cmpl $-MAX_ERRNO, %eax
4157 jb 1f
4158 negl %eax
4159 pushl %eax
4160 call __set_errno_internal
4161 addl $4, %esp
41621:
4163 popl %ecx
4164 popl %ebx
4165 ret
4166END(getitimer)
4167
4168ENTRY(setitimer)
4169 pushl %ebx
4170 .cfi_def_cfa_offset 8
4171 .cfi_rel_offset ebx, 0
4172 pushl %ecx
4173 .cfi_adjust_cfa_offset 4
4174 .cfi_rel_offset ecx, 0
4175 pushl %edx
4176 .cfi_adjust_cfa_offset 4
4177 .cfi_rel_offset edx, 0
4178
4179 call __kernel_syscall
4180 pushl %eax
4181 .cfi_adjust_cfa_offset 4
4182 .cfi_rel_offset eax, 0
4183
4184 mov 20(%esp), %ebx
4185 mov 24(%esp), %ecx
4186 mov 28(%esp), %edx
4187 movl $__NR_setitimer, %eax
4188 call *(%esp)
4189 addl $4, %esp
4190
4191 cmpl $-MAX_ERRNO, %eax
4192 jb 1f
4193 negl %eax
4194 pushl %eax
4195 call __set_errno_internal
4196 addl $4, %esp
41971:
4198 popl %edx
4199 popl %ecx
4200 popl %ebx
4201 ret
4202END(setitimer)
4203
4204ENTRY(__timer_create)
4205 pushl %ebx
4206 .cfi_def_cfa_offset 8
4207 .cfi_rel_offset ebx, 0
4208 pushl %ecx
4209 .cfi_adjust_cfa_offset 4
4210 .cfi_rel_offset ecx, 0
4211 pushl %edx
4212 .cfi_adjust_cfa_offset 4
4213 .cfi_rel_offset edx, 0
4214
4215 call __kernel_syscall
4216 pushl %eax
4217 .cfi_adjust_cfa_offset 4
4218 .cfi_rel_offset eax, 0
4219
4220 mov 20(%esp), %ebx
4221 mov 24(%esp), %ecx
4222 mov 28(%esp), %edx
4223 movl $__NR_timer_create, %eax
4224 call *(%esp)
4225 addl $4, %esp
4226
4227 cmpl $-MAX_ERRNO, %eax
4228 jb 1f
4229 negl %eax
4230 pushl %eax
4231 call __set_errno_internal
4232 addl $4, %esp
42331:
4234 popl %edx
4235 popl %ecx
4236 popl %ebx
4237 ret
4238END(__timer_create)
4239
4240ENTRY(__timer_settime)
4241 pushl %ebx
4242 .cfi_def_cfa_offset 8
4243 .cfi_rel_offset ebx, 0
4244 pushl %ecx
4245 .cfi_adjust_cfa_offset 4
4246 .cfi_rel_offset ecx, 0
4247 pushl %edx
4248 .cfi_adjust_cfa_offset 4
4249 .cfi_rel_offset edx, 0
4250 pushl %esi
4251 .cfi_adjust_cfa_offset 4
4252 .cfi_rel_offset esi, 0
4253
4254 call __kernel_syscall
4255 pushl %eax
4256 .cfi_adjust_cfa_offset 4
4257 .cfi_rel_offset eax, 0
4258
4259 mov 24(%esp), %ebx
4260 mov 28(%esp), %ecx
4261 mov 32(%esp), %edx
4262 mov 36(%esp), %esi
4263 movl $__NR_timer_settime, %eax
4264 call *(%esp)
4265 addl $4, %esp
4266
4267 cmpl $-MAX_ERRNO, %eax
4268 jb 1f
4269 negl %eax
4270 pushl %eax
4271 call __set_errno_internal
4272 addl $4, %esp
42731:
4274 popl %esi
4275 popl %edx
4276 popl %ecx
4277 popl %ebx
4278 ret
4279END(__timer_settime)
4280
4281ENTRY(__timer_gettime)
4282 pushl %ebx
4283 .cfi_def_cfa_offset 8
4284 .cfi_rel_offset ebx, 0
4285 pushl %ecx
4286 .cfi_adjust_cfa_offset 4
4287 .cfi_rel_offset ecx, 0
4288
4289 call __kernel_syscall
4290 pushl %eax
4291 .cfi_adjust_cfa_offset 4
4292 .cfi_rel_offset eax, 0
4293
4294 mov 16(%esp), %ebx
4295 mov 20(%esp), %ecx
4296 movl $__NR_timer_gettime, %eax
4297 call *(%esp)
4298 addl $4, %esp
4299
4300 cmpl $-MAX_ERRNO, %eax
4301 jb 1f
4302 negl %eax
4303 pushl %eax
4304 call __set_errno_internal
4305 addl $4, %esp
43061:
4307 popl %ecx
4308 popl %ebx
4309 ret
4310END(__timer_gettime)
4311
4312ENTRY(__timer_getoverrun)
4313 pushl %ebx
4314 .cfi_def_cfa_offset 8
4315 .cfi_rel_offset ebx, 0
4316
4317 call __kernel_syscall
4318 pushl %eax
4319 .cfi_adjust_cfa_offset 4
4320 .cfi_rel_offset eax, 0
4321
4322 mov 12(%esp), %ebx
4323 movl $__NR_timer_getoverrun, %eax
4324 call *(%esp)
4325 addl $4, %esp
4326
4327 cmpl $-MAX_ERRNO, %eax
4328 jb 1f
4329 negl %eax
4330 pushl %eax
4331 call __set_errno_internal
4332 addl $4, %esp
43331:
4334 popl %ebx
4335 ret
4336END(__timer_getoverrun)
4337
4338ENTRY(__timer_delete)
4339 pushl %ebx
4340 .cfi_def_cfa_offset 8
4341 .cfi_rel_offset ebx, 0
4342
4343 call __kernel_syscall
4344 pushl %eax
4345 .cfi_adjust_cfa_offset 4
4346 .cfi_rel_offset eax, 0
4347
4348 mov 12(%esp), %ebx
4349 movl $__NR_timer_delete, %eax
4350 call *(%esp)
4351 addl $4, %esp
4352
4353 cmpl $-MAX_ERRNO, %eax
4354 jb 1f
4355 negl %eax
4356 pushl %eax
4357 call __set_errno_internal
4358 addl $4, %esp
43591:
4360 popl %ebx
4361 ret
4362END(__timer_delete)
4363
4364ENTRY(timerfd_create)
4365 pushl %ebx
4366 .cfi_def_cfa_offset 8
4367 .cfi_rel_offset ebx, 0
4368 pushl %ecx
4369 .cfi_adjust_cfa_offset 4
4370 .cfi_rel_offset ecx, 0
4371
4372 call __kernel_syscall
4373 pushl %eax
4374 .cfi_adjust_cfa_offset 4
4375 .cfi_rel_offset eax, 0
4376
4377 mov 16(%esp), %ebx
4378 mov 20(%esp), %ecx
4379 movl $__NR_timerfd_create, %eax
4380 call *(%esp)
4381 addl $4, %esp
4382
4383 cmpl $-MAX_ERRNO, %eax
4384 jb 1f
4385 negl %eax
4386 pushl %eax
4387 call __set_errno_internal
4388 addl $4, %esp
43891:
4390 popl %ecx
4391 popl %ebx
4392 ret
4393END(timerfd_create)
4394
4395ENTRY(timerfd_settime)
4396 pushl %ebx
4397 .cfi_def_cfa_offset 8
4398 .cfi_rel_offset ebx, 0
4399 pushl %ecx
4400 .cfi_adjust_cfa_offset 4
4401 .cfi_rel_offset ecx, 0
4402 pushl %edx
4403 .cfi_adjust_cfa_offset 4
4404 .cfi_rel_offset edx, 0
4405 pushl %esi
4406 .cfi_adjust_cfa_offset 4
4407 .cfi_rel_offset esi, 0
4408
4409 call __kernel_syscall
4410 pushl %eax
4411 .cfi_adjust_cfa_offset 4
4412 .cfi_rel_offset eax, 0
4413
4414 mov 24(%esp), %ebx
4415 mov 28(%esp), %ecx
4416 mov 32(%esp), %edx
4417 mov 36(%esp), %esi
4418 movl $__NR_timerfd_settime, %eax
4419 call *(%esp)
4420 addl $4, %esp
4421
4422 cmpl $-MAX_ERRNO, %eax
4423 jb 1f
4424 negl %eax
4425 pushl %eax
4426 call __set_errno_internal
4427 addl $4, %esp
44281:
4429 popl %esi
4430 popl %edx
4431 popl %ecx
4432 popl %ebx
4433 ret
4434END(timerfd_settime)
4435
4436ENTRY(timerfd_gettime)
4437 pushl %ebx
4438 .cfi_def_cfa_offset 8
4439 .cfi_rel_offset ebx, 0
4440 pushl %ecx
4441 .cfi_adjust_cfa_offset 4
4442 .cfi_rel_offset ecx, 0
4443
4444 call __kernel_syscall
4445 pushl %eax
4446 .cfi_adjust_cfa_offset 4
4447 .cfi_rel_offset eax, 0
4448
4449 mov 16(%esp), %ebx
4450 mov 20(%esp), %ecx
4451 movl $__NR_timerfd_gettime, %eax
4452 call *(%esp)
4453 addl $4, %esp
4454
4455 cmpl $-MAX_ERRNO, %eax
4456 jb 1f
4457 negl %eax
4458 pushl %eax
4459 call __set_errno_internal
4460 addl $4, %esp
44611:
4462 popl %ecx
4463 popl %ebx
4464 ret
4465END(timerfd_gettime)
4466
4467ENTRY(adjtimex)
4468 pushl %ebx
4469 .cfi_def_cfa_offset 8
4470 .cfi_rel_offset ebx, 0
4471
4472 call __kernel_syscall
4473 pushl %eax
4474 .cfi_adjust_cfa_offset 4
4475 .cfi_rel_offset eax, 0
4476
4477 mov 12(%esp), %ebx
4478 movl $__NR_adjtimex, %eax
4479 call *(%esp)
4480 addl $4, %esp
4481
4482 cmpl $-MAX_ERRNO, %eax
4483 jb 1f
4484 negl %eax
4485 pushl %eax
4486 call __set_errno_internal
4487 addl $4, %esp
44881:
4489 popl %ebx
4490 ret
4491END(adjtimex)
4492
4493ENTRY(clock_adjtime)
4494 pushl %ebx
4495 .cfi_def_cfa_offset 8
4496 .cfi_rel_offset ebx, 0
4497 pushl %ecx
4498 .cfi_adjust_cfa_offset 4
4499 .cfi_rel_offset ecx, 0
4500
4501 call __kernel_syscall
4502 pushl %eax
4503 .cfi_adjust_cfa_offset 4
4504 .cfi_rel_offset eax, 0
4505
4506 mov 16(%esp), %ebx
4507 mov 20(%esp), %ecx
4508 movl $__NR_clock_adjtime, %eax
4509 call *(%esp)
4510 addl $4, %esp
4511
4512 cmpl $-MAX_ERRNO, %eax
4513 jb 1f
4514 negl %eax
4515 pushl %eax
4516 call __set_errno_internal
4517 addl $4, %esp
45181:
4519 popl %ecx
4520 popl %ebx
4521 ret
4522END(clock_adjtime)
4523
4524ENTRY(__sigaction)
4525 pushl %ebx
4526 .cfi_def_cfa_offset 8
4527 .cfi_rel_offset ebx, 0
4528 pushl %ecx
4529 .cfi_adjust_cfa_offset 4
4530 .cfi_rel_offset ecx, 0
4531 pushl %edx
4532 .cfi_adjust_cfa_offset 4
4533 .cfi_rel_offset edx, 0
4534
4535 call __kernel_syscall
4536 pushl %eax
4537 .cfi_adjust_cfa_offset 4
4538 .cfi_rel_offset eax, 0
4539
4540 mov 20(%esp), %ebx
4541 mov 24(%esp), %ecx
4542 mov 28(%esp), %edx
4543 movl $__NR_sigaction, %eax
4544 call *(%esp)
4545 addl $4, %esp
4546
4547 cmpl $-MAX_ERRNO, %eax
4548 jb 1f
4549 negl %eax
4550 pushl %eax
4551 call __set_errno_internal
4552 addl $4, %esp
45531:
4554 popl %edx
4555 popl %ecx
4556 popl %ebx
4557 ret
4558END(__sigaction)
4559
4560ENTRY(__rt_sigaction)
4561 pushl %ebx
4562 .cfi_def_cfa_offset 8
4563 .cfi_rel_offset ebx, 0
4564 pushl %ecx
4565 .cfi_adjust_cfa_offset 4
4566 .cfi_rel_offset ecx, 0
4567 pushl %edx
4568 .cfi_adjust_cfa_offset 4
4569 .cfi_rel_offset edx, 0
4570 pushl %esi
4571 .cfi_adjust_cfa_offset 4
4572 .cfi_rel_offset esi, 0
4573
4574 call __kernel_syscall
4575 pushl %eax
4576 .cfi_adjust_cfa_offset 4
4577 .cfi_rel_offset eax, 0
4578
4579 mov 24(%esp), %ebx
4580 mov 28(%esp), %ecx
4581 mov 32(%esp), %edx
4582 mov 36(%esp), %esi
4583 movl $__NR_rt_sigaction, %eax
4584 call *(%esp)
4585 addl $4, %esp
4586
4587 cmpl $-MAX_ERRNO, %eax
4588 jb 1f
4589 negl %eax
4590 pushl %eax
4591 call __set_errno_internal
4592 addl $4, %esp
45931:
4594 popl %esi
4595 popl %edx
4596 popl %ecx
4597 popl %ebx
4598 ret
4599END(__rt_sigaction)
4600
4601ENTRY(__rt_sigpending)
4602 pushl %ebx
4603 .cfi_def_cfa_offset 8
4604 .cfi_rel_offset ebx, 0
4605 pushl %ecx
4606 .cfi_adjust_cfa_offset 4
4607 .cfi_rel_offset ecx, 0
4608
4609 call __kernel_syscall
4610 pushl %eax
4611 .cfi_adjust_cfa_offset 4
4612 .cfi_rel_offset eax, 0
4613
4614 mov 16(%esp), %ebx
4615 mov 20(%esp), %ecx
4616 movl $__NR_rt_sigpending, %eax
4617 call *(%esp)
4618 addl $4, %esp
4619
4620 cmpl $-MAX_ERRNO, %eax
4621 jb 1f
4622 negl %eax
4623 pushl %eax
4624 call __set_errno_internal
4625 addl $4, %esp
46261:
4627 popl %ecx
4628 popl %ebx
4629 ret
4630END(__rt_sigpending)
4631
4632ENTRY(__rt_sigprocmask)
4633 pushl %ebx
4634 .cfi_def_cfa_offset 8
4635 .cfi_rel_offset ebx, 0
4636 pushl %ecx
4637 .cfi_adjust_cfa_offset 4
4638 .cfi_rel_offset ecx, 0
4639 pushl %edx
4640 .cfi_adjust_cfa_offset 4
4641 .cfi_rel_offset edx, 0
4642 pushl %esi
4643 .cfi_adjust_cfa_offset 4
4644 .cfi_rel_offset esi, 0
4645
4646 call __kernel_syscall
4647 pushl %eax
4648 .cfi_adjust_cfa_offset 4
4649 .cfi_rel_offset eax, 0
4650
4651 mov 24(%esp), %ebx
4652 mov 28(%esp), %ecx
4653 mov 32(%esp), %edx
4654 mov 36(%esp), %esi
4655 movl $__NR_rt_sigprocmask, %eax
4656 call *(%esp)
4657 addl $4, %esp
4658
4659 cmpl $-MAX_ERRNO, %eax
4660 jb 1f
4661 negl %eax
4662 pushl %eax
4663 call __set_errno_internal
4664 addl $4, %esp
46651:
4666 popl %esi
4667 popl %edx
4668 popl %ecx
4669 popl %ebx
4670 ret
4671END(__rt_sigprocmask)
4672
4673ENTRY(__rt_sigsuspend)
4674 pushl %ebx
4675 .cfi_def_cfa_offset 8
4676 .cfi_rel_offset ebx, 0
4677 pushl %ecx
4678 .cfi_adjust_cfa_offset 4
4679 .cfi_rel_offset ecx, 0
4680
4681 call __kernel_syscall
4682 pushl %eax
4683 .cfi_adjust_cfa_offset 4
4684 .cfi_rel_offset eax, 0
4685
4686 mov 16(%esp), %ebx
4687 mov 20(%esp), %ecx
4688 movl $__NR_rt_sigsuspend, %eax
4689 call *(%esp)
4690 addl $4, %esp
4691
4692 cmpl $-MAX_ERRNO, %eax
4693 jb 1f
4694 negl %eax
4695 pushl %eax
4696 call __set_errno_internal
4697 addl $4, %esp
46981:
4699 popl %ecx
4700 popl %ebx
4701 ret
4702END(__rt_sigsuspend)
4703
4704ENTRY(__rt_sigtimedwait)
4705 pushl %ebx
4706 .cfi_def_cfa_offset 8
4707 .cfi_rel_offset ebx, 0
4708 pushl %ecx
4709 .cfi_adjust_cfa_offset 4
4710 .cfi_rel_offset ecx, 0
4711 pushl %edx
4712 .cfi_adjust_cfa_offset 4
4713 .cfi_rel_offset edx, 0
4714 pushl %esi
4715 .cfi_adjust_cfa_offset 4
4716 .cfi_rel_offset esi, 0
4717
4718 call __kernel_syscall
4719 pushl %eax
4720 .cfi_adjust_cfa_offset 4
4721 .cfi_rel_offset eax, 0
4722
4723 mov 24(%esp), %ebx
4724 mov 28(%esp), %ecx
4725 mov 32(%esp), %edx
4726 mov 36(%esp), %esi
4727 movl $__NR_rt_sigtimedwait, %eax
4728 call *(%esp)
4729 addl $4, %esp
4730
4731 cmpl $-MAX_ERRNO, %eax
4732 jb 1f
4733 negl %eax
4734 pushl %eax
4735 call __set_errno_internal
4736 addl $4, %esp
47371:
4738 popl %esi
4739 popl %edx
4740 popl %ecx
4741 popl %ebx
4742 ret
4743END(__rt_sigtimedwait)
4744
4745ENTRY(___rt_sigqueueinfo)
4746 pushl %ebx
4747 .cfi_def_cfa_offset 8
4748 .cfi_rel_offset ebx, 0
4749 pushl %ecx
4750 .cfi_adjust_cfa_offset 4
4751 .cfi_rel_offset ecx, 0
4752 pushl %edx
4753 .cfi_adjust_cfa_offset 4
4754 .cfi_rel_offset edx, 0
4755
4756 call __kernel_syscall
4757 pushl %eax
4758 .cfi_adjust_cfa_offset 4
4759 .cfi_rel_offset eax, 0
4760
4761 mov 20(%esp), %ebx
4762 mov 24(%esp), %ecx
4763 mov 28(%esp), %edx
4764 movl $__NR_rt_sigqueueinfo, %eax
4765 call *(%esp)
4766 addl $4, %esp
4767
4768 cmpl $-MAX_ERRNO, %eax
4769 jb 1f
4770 negl %eax
4771 pushl %eax
4772 call __set_errno_internal
4773 addl $4, %esp
47741:
4775 popl %edx
4776 popl %ecx
4777 popl %ebx
4778 ret
4779END(___rt_sigqueueinfo)
4780.hidden ___rt_sigqueueinfo
4781
4782ENTRY(__signalfd4)
4783 pushl %ebx
4784 .cfi_def_cfa_offset 8
4785 .cfi_rel_offset ebx, 0
4786 pushl %ecx
4787 .cfi_adjust_cfa_offset 4
4788 .cfi_rel_offset ecx, 0
4789 pushl %edx
4790 .cfi_adjust_cfa_offset 4
4791 .cfi_rel_offset edx, 0
4792 pushl %esi
4793 .cfi_adjust_cfa_offset 4
4794 .cfi_rel_offset esi, 0
4795
4796 call __kernel_syscall
4797 pushl %eax
4798 .cfi_adjust_cfa_offset 4
4799 .cfi_rel_offset eax, 0
4800
4801 mov 24(%esp), %ebx
4802 mov 28(%esp), %ecx
4803 mov 32(%esp), %edx
4804 mov 36(%esp), %esi
4805 movl $__NR_signalfd4, %eax
4806 call *(%esp)
4807 addl $4, %esp
4808
4809 cmpl $-MAX_ERRNO, %eax
4810 jb 1f
4811 negl %eax
4812 pushl %eax
4813 call __set_errno_internal
4814 addl $4, %esp
48151:
4816 popl %esi
4817 popl %edx
4818 popl %ecx
4819 popl %ebx
4820 ret
4821END(__signalfd4)
4822
4823ENTRY(__socket)
4824 pushl %ebx
4825 .cfi_def_cfa_offset 8
4826 .cfi_rel_offset ebx, 0
4827 pushl %ecx
4828 .cfi_adjust_cfa_offset 4
4829 .cfi_rel_offset ecx, 0
4830
4831 call __kernel_syscall
4832 pushl %eax
4833 .cfi_adjust_cfa_offset 4
4834 .cfi_rel_offset eax, 0
4835
4836 mov $1, %ebx
4837 mov %esp, %ecx
4838 addl $16, %ecx
4839 movl $__NR_socketcall, %eax
4840 call *(%esp)
4841 addl $4, %esp
4842
4843 cmpl $-MAX_ERRNO, %eax
4844 jb 1f
4845 negl %eax
4846 pushl %eax
4847 call __set_errno_internal
4848 addl $4, %esp
48491:
4850 popl %ecx
4851 popl %ebx
4852 ret
4853END(__socket)
4854
4855ENTRY(bind)
4856 pushl %ebx
4857 .cfi_def_cfa_offset 8
4858 .cfi_rel_offset ebx, 0
4859 pushl %ecx
4860 .cfi_adjust_cfa_offset 4
4861 .cfi_rel_offset ecx, 0
4862
4863 call __kernel_syscall
4864 pushl %eax
4865 .cfi_adjust_cfa_offset 4
4866 .cfi_rel_offset eax, 0
4867
4868 mov $2, %ebx
4869 mov %esp, %ecx
4870 addl $16, %ecx
4871 movl $__NR_socketcall, %eax
4872 call *(%esp)
4873 addl $4, %esp
4874
4875 cmpl $-MAX_ERRNO, %eax
4876 jb 1f
4877 negl %eax
4878 pushl %eax
4879 call __set_errno_internal
4880 addl $4, %esp
48811:
4882 popl %ecx
4883 popl %ebx
4884 ret
4885END(bind)
4886
4887ENTRY(__connect)
4888 pushl %ebx
4889 .cfi_def_cfa_offset 8
4890 .cfi_rel_offset ebx, 0
4891 pushl %ecx
4892 .cfi_adjust_cfa_offset 4
4893 .cfi_rel_offset ecx, 0
4894
4895 call __kernel_syscall
4896 pushl %eax
4897 .cfi_adjust_cfa_offset 4
4898 .cfi_rel_offset eax, 0
4899
4900 mov $3, %ebx
4901 mov %esp, %ecx
4902 addl $16, %ecx
4903 movl $__NR_socketcall, %eax
4904 call *(%esp)
4905 addl $4, %esp
4906
4907 cmpl $-MAX_ERRNO, %eax
4908 jb 1f
4909 negl %eax
4910 pushl %eax
4911 call __set_errno_internal
4912 addl $4, %esp
49131:
4914 popl %ecx
4915 popl %ebx
4916 ret
4917END(__connect)
4918
4919ENTRY(listen)
4920 pushl %ebx
4921 .cfi_def_cfa_offset 8
4922 .cfi_rel_offset ebx, 0
4923 pushl %ecx
4924 .cfi_adjust_cfa_offset 4
4925 .cfi_rel_offset ecx, 0
4926
4927 call __kernel_syscall
4928 pushl %eax
4929 .cfi_adjust_cfa_offset 4
4930 .cfi_rel_offset eax, 0
4931
4932 mov $4, %ebx
4933 mov %esp, %ecx
4934 addl $16, %ecx
4935 movl $__NR_socketcall, %eax
4936 call *(%esp)
4937 addl $4, %esp
4938
4939 cmpl $-MAX_ERRNO, %eax
4940 jb 1f
4941 negl %eax
4942 pushl %eax
4943 call __set_errno_internal
4944 addl $4, %esp
49451:
4946 popl %ecx
4947 popl %ebx
4948 ret
4949END(listen)
4950
4951ENTRY(getsockname)
4952 pushl %ebx
4953 .cfi_def_cfa_offset 8
4954 .cfi_rel_offset ebx, 0
4955 pushl %ecx
4956 .cfi_adjust_cfa_offset 4
4957 .cfi_rel_offset ecx, 0
4958
4959 call __kernel_syscall
4960 pushl %eax
4961 .cfi_adjust_cfa_offset 4
4962 .cfi_rel_offset eax, 0
4963
4964 mov $6, %ebx
4965 mov %esp, %ecx
4966 addl $16, %ecx
4967 movl $__NR_socketcall, %eax
4968 call *(%esp)
4969 addl $4, %esp
4970
4971 cmpl $-MAX_ERRNO, %eax
4972 jb 1f
4973 negl %eax
4974 pushl %eax
4975 call __set_errno_internal
4976 addl $4, %esp
49771:
4978 popl %ecx
4979 popl %ebx
4980 ret
4981END(getsockname)
4982
4983ENTRY(getpeername)
4984 pushl %ebx
4985 .cfi_def_cfa_offset 8
4986 .cfi_rel_offset ebx, 0
4987 pushl %ecx
4988 .cfi_adjust_cfa_offset 4
4989 .cfi_rel_offset ecx, 0
4990
4991 call __kernel_syscall
4992 pushl %eax
4993 .cfi_adjust_cfa_offset 4
4994 .cfi_rel_offset eax, 0
4995
4996 mov $7, %ebx
4997 mov %esp, %ecx
4998 addl $16, %ecx
4999 movl $__NR_socketcall, %eax
5000 call *(%esp)
5001 addl $4, %esp
5002
5003 cmpl $-MAX_ERRNO, %eax
5004 jb 1f
5005 negl %eax
5006 pushl %eax
5007 call __set_errno_internal
5008 addl $4, %esp
50091:
5010 popl %ecx
5011 popl %ebx
5012 ret
5013END(getpeername)
5014
5015ENTRY(socketpair)
5016 pushl %ebx
5017 .cfi_def_cfa_offset 8
5018 .cfi_rel_offset ebx, 0
5019 pushl %ecx
5020 .cfi_adjust_cfa_offset 4
5021 .cfi_rel_offset ecx, 0
5022
5023 call __kernel_syscall
5024 pushl %eax
5025 .cfi_adjust_cfa_offset 4
5026 .cfi_rel_offset eax, 0
5027
5028 mov $8, %ebx
5029 mov %esp, %ecx
5030 addl $16, %ecx
5031 movl $__NR_socketcall, %eax
5032 call *(%esp)
5033 addl $4, %esp
5034
5035 cmpl $-MAX_ERRNO, %eax
5036 jb 1f
5037 negl %eax
5038 pushl %eax
5039 call __set_errno_internal
5040 addl $4, %esp
50411:
5042 popl %ecx
5043 popl %ebx
5044 ret
5045END(socketpair)
5046
5047ENTRY(sendto)
5048 pushl %ebx
5049 .cfi_def_cfa_offset 8
5050 .cfi_rel_offset ebx, 0
5051 pushl %ecx
5052 .cfi_adjust_cfa_offset 4
5053 .cfi_rel_offset ecx, 0
5054
5055 call __kernel_syscall
5056 pushl %eax
5057 .cfi_adjust_cfa_offset 4
5058 .cfi_rel_offset eax, 0
5059
5060 mov $11, %ebx
5061 mov %esp, %ecx
5062 addl $16, %ecx
5063 movl $__NR_socketcall, %eax
5064 call *(%esp)
5065 addl $4, %esp
5066
5067 cmpl $-MAX_ERRNO, %eax
5068 jb 1f
5069 negl %eax
5070 pushl %eax
5071 call __set_errno_internal
5072 addl $4, %esp
50731:
5074 popl %ecx
5075 popl %ebx
5076 ret
5077END(sendto)
5078
5079ENTRY(recvfrom)
5080 pushl %ebx
5081 .cfi_def_cfa_offset 8
5082 .cfi_rel_offset ebx, 0
5083 pushl %ecx
5084 .cfi_adjust_cfa_offset 4
5085 .cfi_rel_offset ecx, 0
5086
5087 call __kernel_syscall
5088 pushl %eax
5089 .cfi_adjust_cfa_offset 4
5090 .cfi_rel_offset eax, 0
5091
5092 mov $12, %ebx
5093 mov %esp, %ecx
5094 addl $16, %ecx
5095 movl $__NR_socketcall, %eax
5096 call *(%esp)
5097 addl $4, %esp
5098
5099 cmpl $-MAX_ERRNO, %eax
5100 jb 1f
5101 negl %eax
5102 pushl %eax
5103 call __set_errno_internal
5104 addl $4, %esp
51051:
5106 popl %ecx
5107 popl %ebx
5108 ret
5109END(recvfrom)
5110
5111ENTRY(shutdown)
5112 pushl %ebx
5113 .cfi_def_cfa_offset 8
5114 .cfi_rel_offset ebx, 0
5115 pushl %ecx
5116 .cfi_adjust_cfa_offset 4
5117 .cfi_rel_offset ecx, 0
5118
5119 call __kernel_syscall
5120 pushl %eax
5121 .cfi_adjust_cfa_offset 4
5122 .cfi_rel_offset eax, 0
5123
5124 mov $13, %ebx
5125 mov %esp, %ecx
5126 addl $16, %ecx
5127 movl $__NR_socketcall, %eax
5128 call *(%esp)
5129 addl $4, %esp
5130
5131 cmpl $-MAX_ERRNO, %eax
5132 jb 1f
5133 negl %eax
5134 pushl %eax
5135 call __set_errno_internal
5136 addl $4, %esp
51371:
5138 popl %ecx
5139 popl %ebx
5140 ret
5141END(shutdown)
5142
5143ENTRY(setsockopt)
5144 pushl %ebx
5145 .cfi_def_cfa_offset 8
5146 .cfi_rel_offset ebx, 0
5147 pushl %ecx
5148 .cfi_adjust_cfa_offset 4
5149 .cfi_rel_offset ecx, 0
5150
5151 call __kernel_syscall
5152 pushl %eax
5153 .cfi_adjust_cfa_offset 4
5154 .cfi_rel_offset eax, 0
5155
5156 mov $14, %ebx
5157 mov %esp, %ecx
5158 addl $16, %ecx
5159 movl $__NR_socketcall, %eax
5160 call *(%esp)
5161 addl $4, %esp
5162
5163 cmpl $-MAX_ERRNO, %eax
5164 jb 1f
5165 negl %eax
5166 pushl %eax
5167 call __set_errno_internal
5168 addl $4, %esp
51691:
5170 popl %ecx
5171 popl %ebx
5172 ret
5173END(setsockopt)
5174
5175ENTRY(getsockopt)
5176 pushl %ebx
5177 .cfi_def_cfa_offset 8
5178 .cfi_rel_offset ebx, 0
5179 pushl %ecx
5180 .cfi_adjust_cfa_offset 4
5181 .cfi_rel_offset ecx, 0
5182
5183 call __kernel_syscall
5184 pushl %eax
5185 .cfi_adjust_cfa_offset 4
5186 .cfi_rel_offset eax, 0
5187
5188 mov $15, %ebx
5189 mov %esp, %ecx
5190 addl $16, %ecx
5191 movl $__NR_socketcall, %eax
5192 call *(%esp)
5193 addl $4, %esp
5194
5195 cmpl $-MAX_ERRNO, %eax
5196 jb 1f
5197 negl %eax
5198 pushl %eax
5199 call __set_errno_internal
5200 addl $4, %esp
52011:
5202 popl %ecx
5203 popl %ebx
5204 ret
5205END(getsockopt)
5206
5207ENTRY(sendmsg)
5208 pushl %ebx
5209 .cfi_def_cfa_offset 8
5210 .cfi_rel_offset ebx, 0
5211 pushl %ecx
5212 .cfi_adjust_cfa_offset 4
5213 .cfi_rel_offset ecx, 0
5214
5215 call __kernel_syscall
5216 pushl %eax
5217 .cfi_adjust_cfa_offset 4
5218 .cfi_rel_offset eax, 0
5219
5220 mov $16, %ebx
5221 mov %esp, %ecx
5222 addl $16, %ecx
5223 movl $__NR_socketcall, %eax
5224 call *(%esp)
5225 addl $4, %esp
5226
5227 cmpl $-MAX_ERRNO, %eax
5228 jb 1f
5229 negl %eax
5230 pushl %eax
5231 call __set_errno_internal
5232 addl $4, %esp
52331:
5234 popl %ecx
5235 popl %ebx
5236 ret
5237END(sendmsg)
5238
5239ENTRY(recvmsg)
5240 pushl %ebx
5241 .cfi_def_cfa_offset 8
5242 .cfi_rel_offset ebx, 0
5243 pushl %ecx
5244 .cfi_adjust_cfa_offset 4
5245 .cfi_rel_offset ecx, 0
5246
5247 call __kernel_syscall
5248 pushl %eax
5249 .cfi_adjust_cfa_offset 4
5250 .cfi_rel_offset eax, 0
5251
5252 mov $17, %ebx
5253 mov %esp, %ecx
5254 addl $16, %ecx
5255 movl $__NR_socketcall, %eax
5256 call *(%esp)
5257 addl $4, %esp
5258
5259 cmpl $-MAX_ERRNO, %eax
5260 jb 1f
5261 negl %eax
5262 pushl %eax
5263 call __set_errno_internal
5264 addl $4, %esp
52651:
5266 popl %ecx
5267 popl %ebx
5268 ret
5269END(recvmsg)
5270
5271ENTRY(__accept4)
5272 pushl %ebx
5273 .cfi_def_cfa_offset 8
5274 .cfi_rel_offset ebx, 0
5275 pushl %ecx
5276 .cfi_adjust_cfa_offset 4
5277 .cfi_rel_offset ecx, 0
5278
5279 call __kernel_syscall
5280 pushl %eax
5281 .cfi_adjust_cfa_offset 4
5282 .cfi_rel_offset eax, 0
5283
5284 mov $18, %ebx
5285 mov %esp, %ecx
5286 addl $16, %ecx
5287 movl $__NR_socketcall, %eax
5288 call *(%esp)
5289 addl $4, %esp
5290
5291 cmpl $-MAX_ERRNO, %eax
5292 jb 1f
5293 negl %eax
5294 pushl %eax
5295 call __set_errno_internal
5296 addl $4, %esp
52971:
5298 popl %ecx
5299 popl %ebx
5300 ret
5301END(__accept4)
5302
5303ENTRY(recvmmsg)
5304 pushl %ebx
5305 .cfi_def_cfa_offset 8
5306 .cfi_rel_offset ebx, 0
5307 pushl %ecx
5308 .cfi_adjust_cfa_offset 4
5309 .cfi_rel_offset ecx, 0
5310
5311 call __kernel_syscall
5312 pushl %eax
5313 .cfi_adjust_cfa_offset 4
5314 .cfi_rel_offset eax, 0
5315
5316 mov $19, %ebx
5317 mov %esp, %ecx
5318 addl $16, %ecx
5319 movl $__NR_socketcall, %eax
5320 call *(%esp)
5321 addl $4, %esp
5322
5323 cmpl $-MAX_ERRNO, %eax
5324 jb 1f
5325 negl %eax
5326 pushl %eax
5327 call __set_errno_internal
5328 addl $4, %esp
53291:
5330 popl %ecx
5331 popl %ebx
5332 ret
5333END(recvmmsg)
5334
5335ENTRY(sendmmsg)
5336 pushl %ebx
5337 .cfi_def_cfa_offset 8
5338 .cfi_rel_offset ebx, 0
5339 pushl %ecx
5340 .cfi_adjust_cfa_offset 4
5341 .cfi_rel_offset ecx, 0
5342
5343 call __kernel_syscall
5344 pushl %eax
5345 .cfi_adjust_cfa_offset 4
5346 .cfi_rel_offset eax, 0
5347
5348 mov $20, %ebx
5349 mov %esp, %ecx
5350 addl $16, %ecx
5351 movl $__NR_socketcall, %eax
5352 call *(%esp)
5353 addl $4, %esp
5354
5355 cmpl $-MAX_ERRNO, %eax
5356 jb 1f
5357 negl %eax
5358 pushl %eax
5359 call __set_errno_internal
5360 addl $4, %esp
53611:
5362 popl %ecx
5363 popl %ebx
5364 ret
5365END(sendmmsg)
5366
5367ENTRY(sched_setscheduler)
5368 pushl %ebx
5369 .cfi_def_cfa_offset 8
5370 .cfi_rel_offset ebx, 0
5371 pushl %ecx
5372 .cfi_adjust_cfa_offset 4
5373 .cfi_rel_offset ecx, 0
5374 pushl %edx
5375 .cfi_adjust_cfa_offset 4
5376 .cfi_rel_offset edx, 0
5377
5378 call __kernel_syscall
5379 pushl %eax
5380 .cfi_adjust_cfa_offset 4
5381 .cfi_rel_offset eax, 0
5382
5383 mov 20(%esp), %ebx
5384 mov 24(%esp), %ecx
5385 mov 28(%esp), %edx
5386 movl $__NR_sched_setscheduler, %eax
5387 call *(%esp)
5388 addl $4, %esp
5389
5390 cmpl $-MAX_ERRNO, %eax
5391 jb 1f
5392 negl %eax
5393 pushl %eax
5394 call __set_errno_internal
5395 addl $4, %esp
53961:
5397 popl %edx
5398 popl %ecx
5399 popl %ebx
5400 ret
5401END(sched_setscheduler)
5402
5403ENTRY(sched_getscheduler)
5404 pushl %ebx
5405 .cfi_def_cfa_offset 8
5406 .cfi_rel_offset ebx, 0
5407
5408 call __kernel_syscall
5409 pushl %eax
5410 .cfi_adjust_cfa_offset 4
5411 .cfi_rel_offset eax, 0
5412
5413 mov 12(%esp), %ebx
5414 movl $__NR_sched_getscheduler, %eax
5415 call *(%esp)
5416 addl $4, %esp
5417
5418 cmpl $-MAX_ERRNO, %eax
5419 jb 1f
5420 negl %eax
5421 pushl %eax
5422 call __set_errno_internal
5423 addl $4, %esp
54241:
5425 popl %ebx
5426 ret
5427END(sched_getscheduler)
5428
5429ENTRY(sched_yield)
5430 pushl %ebx
5431 .cfi_def_cfa_offset 8
5432 .cfi_rel_offset ebx, 0
5433
5434 call __kernel_syscall
5435 pushl %eax
5436 .cfi_adjust_cfa_offset 4
5437 .cfi_rel_offset eax, 0
5438
5439 mov 12(%esp), %ebx
5440 movl $__NR_sched_yield, %eax
5441 call *(%esp)
5442 addl $4, %esp
5443
5444 cmpl $-MAX_ERRNO, %eax
5445 jb 1f
5446 negl %eax
5447 pushl %eax
5448 call __set_errno_internal
5449 addl $4, %esp
54501:
5451 popl %ebx
5452 ret
5453END(sched_yield)
5454
5455ENTRY(sched_setparam)
5456 pushl %ebx
5457 .cfi_def_cfa_offset 8
5458 .cfi_rel_offset ebx, 0
5459 pushl %ecx
5460 .cfi_adjust_cfa_offset 4
5461 .cfi_rel_offset ecx, 0
5462
5463 call __kernel_syscall
5464 pushl %eax
5465 .cfi_adjust_cfa_offset 4
5466 .cfi_rel_offset eax, 0
5467
5468 mov 16(%esp), %ebx
5469 mov 20(%esp), %ecx
5470 movl $__NR_sched_setparam, %eax
5471 call *(%esp)
5472 addl $4, %esp
5473
5474 cmpl $-MAX_ERRNO, %eax
5475 jb 1f
5476 negl %eax
5477 pushl %eax
5478 call __set_errno_internal
5479 addl $4, %esp
54801:
5481 popl %ecx
5482 popl %ebx
5483 ret
5484END(sched_setparam)
5485
5486ENTRY(sched_getparam)
5487 pushl %ebx
5488 .cfi_def_cfa_offset 8
5489 .cfi_rel_offset ebx, 0
5490 pushl %ecx
5491 .cfi_adjust_cfa_offset 4
5492 .cfi_rel_offset ecx, 0
5493
5494 call __kernel_syscall
5495 pushl %eax
5496 .cfi_adjust_cfa_offset 4
5497 .cfi_rel_offset eax, 0
5498
5499 mov 16(%esp), %ebx
5500 mov 20(%esp), %ecx
5501 movl $__NR_sched_getparam, %eax
5502 call *(%esp)
5503 addl $4, %esp
5504
5505 cmpl $-MAX_ERRNO, %eax
5506 jb 1f
5507 negl %eax
5508 pushl %eax
5509 call __set_errno_internal
5510 addl $4, %esp
55111:
5512 popl %ecx
5513 popl %ebx
5514 ret
5515END(sched_getparam)
5516
5517ENTRY(sched_get_priority_max)
5518 pushl %ebx
5519 .cfi_def_cfa_offset 8
5520 .cfi_rel_offset ebx, 0
5521
5522 call __kernel_syscall
5523 pushl %eax
5524 .cfi_adjust_cfa_offset 4
5525 .cfi_rel_offset eax, 0
5526
5527 mov 12(%esp), %ebx
5528 movl $__NR_sched_get_priority_max, %eax
5529 call *(%esp)
5530 addl $4, %esp
5531
5532 cmpl $-MAX_ERRNO, %eax
5533 jb 1f
5534 negl %eax
5535 pushl %eax
5536 call __set_errno_internal
5537 addl $4, %esp
55381:
5539 popl %ebx
5540 ret
5541END(sched_get_priority_max)
5542
5543ENTRY(sched_get_priority_min)
5544 pushl %ebx
5545 .cfi_def_cfa_offset 8
5546 .cfi_rel_offset ebx, 0
5547
5548 call __kernel_syscall
5549 pushl %eax
5550 .cfi_adjust_cfa_offset 4
5551 .cfi_rel_offset eax, 0
5552
5553 mov 12(%esp), %ebx
5554 movl $__NR_sched_get_priority_min, %eax
5555 call *(%esp)
5556 addl $4, %esp
5557
5558 cmpl $-MAX_ERRNO, %eax
5559 jb 1f
5560 negl %eax
5561 pushl %eax
5562 call __set_errno_internal
5563 addl $4, %esp
55641:
5565 popl %ebx
5566 ret
5567END(sched_get_priority_min)
5568
5569ENTRY(sched_rr_get_interval)
5570 pushl %ebx
5571 .cfi_def_cfa_offset 8
5572 .cfi_rel_offset ebx, 0
5573 pushl %ecx
5574 .cfi_adjust_cfa_offset 4
5575 .cfi_rel_offset ecx, 0
5576
5577 call __kernel_syscall
5578 pushl %eax
5579 .cfi_adjust_cfa_offset 4
5580 .cfi_rel_offset eax, 0
5581
5582 mov 16(%esp), %ebx
5583 mov 20(%esp), %ecx
5584 movl $__NR_sched_rr_get_interval, %eax
5585 call *(%esp)
5586 addl $4, %esp
5587
5588 cmpl $-MAX_ERRNO, %eax
5589 jb 1f
5590 negl %eax
5591 pushl %eax
5592 call __set_errno_internal
5593 addl $4, %esp
55941:
5595 popl %ecx
5596 popl %ebx
5597 ret
5598END(sched_rr_get_interval)
5599
5600ENTRY(sched_setaffinity)
5601 pushl %ebx
5602 .cfi_def_cfa_offset 8
5603 .cfi_rel_offset ebx, 0
5604 pushl %ecx
5605 .cfi_adjust_cfa_offset 4
5606 .cfi_rel_offset ecx, 0
5607 pushl %edx
5608 .cfi_adjust_cfa_offset 4
5609 .cfi_rel_offset edx, 0
5610
5611 call __kernel_syscall
5612 pushl %eax
5613 .cfi_adjust_cfa_offset 4
5614 .cfi_rel_offset eax, 0
5615
5616 mov 20(%esp), %ebx
5617 mov 24(%esp), %ecx
5618 mov 28(%esp), %edx
5619 movl $__NR_sched_setaffinity, %eax
5620 call *(%esp)
5621 addl $4, %esp
5622
5623 cmpl $-MAX_ERRNO, %eax
5624 jb 1f
5625 negl %eax
5626 pushl %eax
5627 call __set_errno_internal
5628 addl $4, %esp
56291:
5630 popl %edx
5631 popl %ecx
5632 popl %ebx
5633 ret
5634END(sched_setaffinity)
5635
5636ENTRY(setns)
5637 pushl %ebx
5638 .cfi_def_cfa_offset 8
5639 .cfi_rel_offset ebx, 0
5640 pushl %ecx
5641 .cfi_adjust_cfa_offset 4
5642 .cfi_rel_offset ecx, 0
5643
5644 call __kernel_syscall
5645 pushl %eax
5646 .cfi_adjust_cfa_offset 4
5647 .cfi_rel_offset eax, 0
5648
5649 mov 16(%esp), %ebx
5650 mov 20(%esp), %ecx
5651 movl $__NR_setns, %eax
5652 call *(%esp)
5653 addl $4, %esp
5654
5655 cmpl $-MAX_ERRNO, %eax
5656 jb 1f
5657 negl %eax
5658 pushl %eax
5659 call __set_errno_internal
5660 addl $4, %esp
56611:
5662 popl %ecx
5663 popl %ebx
5664 ret
5665END(setns)
5666
5667ENTRY(unshare)
5668 pushl %ebx
5669 .cfi_def_cfa_offset 8
5670 .cfi_rel_offset ebx, 0
5671
5672 call __kernel_syscall
5673 pushl %eax
5674 .cfi_adjust_cfa_offset 4
5675 .cfi_rel_offset eax, 0
5676
5677 mov 12(%esp), %ebx
5678 movl $__NR_unshare, %eax
5679 call *(%esp)
5680 addl $4, %esp
5681
5682 cmpl $-MAX_ERRNO, %eax
5683 jb 1f
5684 negl %eax
5685 pushl %eax
5686 call __set_errno_internal
5687 addl $4, %esp
56881:
5689 popl %ebx
5690 ret
5691END(unshare)
5692
5693ENTRY(__sched_getaffinity)
5694 pushl %ebx
5695 .cfi_def_cfa_offset 8
5696 .cfi_rel_offset ebx, 0
5697 pushl %ecx
5698 .cfi_adjust_cfa_offset 4
5699 .cfi_rel_offset ecx, 0
5700 pushl %edx
5701 .cfi_adjust_cfa_offset 4
5702 .cfi_rel_offset edx, 0
5703
5704 call __kernel_syscall
5705 pushl %eax
5706 .cfi_adjust_cfa_offset 4
5707 .cfi_rel_offset eax, 0
5708
5709 mov 20(%esp), %ebx
5710 mov 24(%esp), %ecx
5711 mov 28(%esp), %edx
5712 movl $__NR_sched_getaffinity, %eax
5713 call *(%esp)
5714 addl $4, %esp
5715
5716 cmpl $-MAX_ERRNO, %eax
5717 jb 1f
5718 negl %eax
5719 pushl %eax
5720 call __set_errno_internal
5721 addl $4, %esp
57221:
5723 popl %edx
5724 popl %ecx
5725 popl %ebx
5726 ret
5727END(__sched_getaffinity)
5728
5729ENTRY(__getcpu)
5730 pushl %ebx
5731 .cfi_def_cfa_offset 8
5732 .cfi_rel_offset ebx, 0
5733 pushl %ecx
5734 .cfi_adjust_cfa_offset 4
5735 .cfi_rel_offset ecx, 0
5736 pushl %edx
5737 .cfi_adjust_cfa_offset 4
5738 .cfi_rel_offset edx, 0
5739
5740 call __kernel_syscall
5741 pushl %eax
5742 .cfi_adjust_cfa_offset 4
5743 .cfi_rel_offset eax, 0
5744
5745 mov 20(%esp), %ebx
5746 mov 24(%esp), %ecx
5747 mov 28(%esp), %edx
5748 movl $__NR_getcpu, %eax
5749 call *(%esp)
5750 addl $4, %esp
5751
5752 cmpl $-MAX_ERRNO, %eax
5753 jb 1f
5754 negl %eax
5755 pushl %eax
5756 call __set_errno_internal
5757 addl $4, %esp
57581:
5759 popl %edx
5760 popl %ecx
5761 popl %ebx
5762 ret
5763END(__getcpu)
5764
5765ENTRY(uname)
5766 pushl %ebx
5767 .cfi_def_cfa_offset 8
5768 .cfi_rel_offset ebx, 0
5769
5770 call __kernel_syscall
5771 pushl %eax
5772 .cfi_adjust_cfa_offset 4
5773 .cfi_rel_offset eax, 0
5774
5775 mov 12(%esp), %ebx
5776 movl $__NR_uname, %eax
5777 call *(%esp)
5778 addl $4, %esp
5779
5780 cmpl $-MAX_ERRNO, %eax
5781 jb 1f
5782 negl %eax
5783 pushl %eax
5784 call __set_errno_internal
5785 addl $4, %esp
57861:
5787 popl %ebx
5788 ret
5789END(uname)
5790
5791ENTRY(umask)
5792 pushl %ebx
5793 .cfi_def_cfa_offset 8
5794 .cfi_rel_offset ebx, 0
5795
5796 call __kernel_syscall
5797 pushl %eax
5798 .cfi_adjust_cfa_offset 4
5799 .cfi_rel_offset eax, 0
5800
5801 mov 12(%esp), %ebx
5802 movl $__NR_umask, %eax
5803 call *(%esp)
5804 addl $4, %esp
5805
5806 cmpl $-MAX_ERRNO, %eax
5807 jb 1f
5808 negl %eax
5809 pushl %eax
5810 call __set_errno_internal
5811 addl $4, %esp
58121:
5813 popl %ebx
5814 ret
5815END(umask)
5816
5817ENTRY(__reboot)
5818 pushl %ebx
5819 .cfi_def_cfa_offset 8
5820 .cfi_rel_offset ebx, 0
5821 pushl %ecx
5822 .cfi_adjust_cfa_offset 4
5823 .cfi_rel_offset ecx, 0
5824 pushl %edx
5825 .cfi_adjust_cfa_offset 4
5826 .cfi_rel_offset edx, 0
5827 pushl %esi
5828 .cfi_adjust_cfa_offset 4
5829 .cfi_rel_offset esi, 0
5830
5831 call __kernel_syscall
5832 pushl %eax
5833 .cfi_adjust_cfa_offset 4
5834 .cfi_rel_offset eax, 0
5835
5836 mov 24(%esp), %ebx
5837 mov 28(%esp), %ecx
5838 mov 32(%esp), %edx
5839 mov 36(%esp), %esi
5840 movl $__NR_reboot, %eax
5841 call *(%esp)
5842 addl $4, %esp
5843
5844 cmpl $-MAX_ERRNO, %eax
5845 jb 1f
5846 negl %eax
5847 pushl %eax
5848 call __set_errno_internal
5849 addl $4, %esp
58501:
5851 popl %esi
5852 popl %edx
5853 popl %ecx
5854 popl %ebx
5855 ret
5856END(__reboot)
5857
5858ENTRY(init_module)
5859 pushl %ebx
5860 .cfi_def_cfa_offset 8
5861 .cfi_rel_offset ebx, 0
5862 pushl %ecx
5863 .cfi_adjust_cfa_offset 4
5864 .cfi_rel_offset ecx, 0
5865 pushl %edx
5866 .cfi_adjust_cfa_offset 4
5867 .cfi_rel_offset edx, 0
5868
5869 call __kernel_syscall
5870 pushl %eax
5871 .cfi_adjust_cfa_offset 4
5872 .cfi_rel_offset eax, 0
5873
5874 mov 20(%esp), %ebx
5875 mov 24(%esp), %ecx
5876 mov 28(%esp), %edx
5877 movl $__NR_init_module, %eax
5878 call *(%esp)
5879 addl $4, %esp
5880
5881 cmpl $-MAX_ERRNO, %eax
5882 jb 1f
5883 negl %eax
5884 pushl %eax
5885 call __set_errno_internal
5886 addl $4, %esp
58871:
5888 popl %edx
5889 popl %ecx
5890 popl %ebx
5891 ret
5892END(init_module)
5893
5894ENTRY(delete_module)
5895 pushl %ebx
5896 .cfi_def_cfa_offset 8
5897 .cfi_rel_offset ebx, 0
5898 pushl %ecx
5899 .cfi_adjust_cfa_offset 4
5900 .cfi_rel_offset ecx, 0
5901
5902 call __kernel_syscall
5903 pushl %eax
5904 .cfi_adjust_cfa_offset 4
5905 .cfi_rel_offset eax, 0
5906
5907 mov 16(%esp), %ebx
5908 mov 20(%esp), %ecx
5909 movl $__NR_delete_module, %eax
5910 call *(%esp)
5911 addl $4, %esp
5912
5913 cmpl $-MAX_ERRNO, %eax
5914 jb 1f
5915 negl %eax
5916 pushl %eax
5917 call __set_errno_internal
5918 addl $4, %esp
59191:
5920 popl %ecx
5921 popl %ebx
5922 ret
5923END(delete_module)
5924
5925ENTRY(klogctl)
5926 pushl %ebx
5927 .cfi_def_cfa_offset 8
5928 .cfi_rel_offset ebx, 0
5929 pushl %ecx
5930 .cfi_adjust_cfa_offset 4
5931 .cfi_rel_offset ecx, 0
5932 pushl %edx
5933 .cfi_adjust_cfa_offset 4
5934 .cfi_rel_offset edx, 0
5935
5936 call __kernel_syscall
5937 pushl %eax
5938 .cfi_adjust_cfa_offset 4
5939 .cfi_rel_offset eax, 0
5940
5941 mov 20(%esp), %ebx
5942 mov 24(%esp), %ecx
5943 mov 28(%esp), %edx
5944 movl $__NR_syslog, %eax
5945 call *(%esp)
5946 addl $4, %esp
5947
5948 cmpl $-MAX_ERRNO, %eax
5949 jb 1f
5950 negl %eax
5951 pushl %eax
5952 call __set_errno_internal
5953 addl $4, %esp
59541:
5955 popl %edx
5956 popl %ecx
5957 popl %ebx
5958 ret
5959END(klogctl)
5960
5961ENTRY(sysinfo)
5962 pushl %ebx
5963 .cfi_def_cfa_offset 8
5964 .cfi_rel_offset ebx, 0
5965
5966 call __kernel_syscall
5967 pushl %eax
5968 .cfi_adjust_cfa_offset 4
5969 .cfi_rel_offset eax, 0
5970
5971 mov 12(%esp), %ebx
5972 movl $__NR_sysinfo, %eax
5973 call *(%esp)
5974 addl $4, %esp
5975
5976 cmpl $-MAX_ERRNO, %eax
5977 jb 1f
5978 negl %eax
5979 pushl %eax
5980 call __set_errno_internal
5981 addl $4, %esp
59821:
5983 popl %ebx
5984 ret
5985END(sysinfo)
5986
5987ENTRY(personality)
5988 pushl %ebx
5989 .cfi_def_cfa_offset 8
5990 .cfi_rel_offset ebx, 0
5991
5992 call __kernel_syscall
5993 pushl %eax
5994 .cfi_adjust_cfa_offset 4
5995 .cfi_rel_offset eax, 0
5996
5997 mov 12(%esp), %ebx
5998 movl $__NR_personality, %eax
5999 call *(%esp)
6000 addl $4, %esp
6001
6002 cmpl $-MAX_ERRNO, %eax
6003 jb 1f
6004 negl %eax
6005 pushl %eax
6006 call __set_errno_internal
6007 addl $4, %esp
60081:
6009 popl %ebx
6010 ret
6011END(personality)
6012
6013ENTRY(tee)
6014 pushl %ebx
6015 .cfi_def_cfa_offset 8
6016 .cfi_rel_offset ebx, 0
6017 pushl %ecx
6018 .cfi_adjust_cfa_offset 4
6019 .cfi_rel_offset ecx, 0
6020 pushl %edx
6021 .cfi_adjust_cfa_offset 4
6022 .cfi_rel_offset edx, 0
6023 pushl %esi
6024 .cfi_adjust_cfa_offset 4
6025 .cfi_rel_offset esi, 0
6026
6027 call __kernel_syscall
6028 pushl %eax
6029 .cfi_adjust_cfa_offset 4
6030 .cfi_rel_offset eax, 0
6031
6032 mov 24(%esp), %ebx
6033 mov 28(%esp), %ecx
6034 mov 32(%esp), %edx
6035 mov 36(%esp), %esi
6036 movl $__NR_tee, %eax
6037 call *(%esp)
6038 addl $4, %esp
6039
6040 cmpl $-MAX_ERRNO, %eax
6041 jb 1f
6042 negl %eax
6043 pushl %eax
6044 call __set_errno_internal
6045 addl $4, %esp
60461:
6047 popl %esi
6048 popl %edx
6049 popl %ecx
6050 popl %ebx
6051 ret
6052END(tee)
6053
6054ENTRY(splice)
6055 pushl %ebx
6056 .cfi_def_cfa_offset 8
6057 .cfi_rel_offset ebx, 0
6058 pushl %ecx
6059 .cfi_adjust_cfa_offset 4
6060 .cfi_rel_offset ecx, 0
6061 pushl %edx
6062 .cfi_adjust_cfa_offset 4
6063 .cfi_rel_offset edx, 0
6064 pushl %esi
6065 .cfi_adjust_cfa_offset 4
6066 .cfi_rel_offset esi, 0
6067 pushl %edi
6068 .cfi_adjust_cfa_offset 4
6069 .cfi_rel_offset edi, 0
6070 pushl %ebp
6071 .cfi_adjust_cfa_offset 4
6072 .cfi_rel_offset ebp, 0
6073
6074 call __kernel_syscall
6075 pushl %eax
6076 .cfi_adjust_cfa_offset 4
6077 .cfi_rel_offset eax, 0
6078
6079 mov 32(%esp), %ebx
6080 mov 36(%esp), %ecx
6081 mov 40(%esp), %edx
6082 mov 44(%esp), %esi
6083 mov 48(%esp), %edi
6084 mov 52(%esp), %ebp
6085 movl $__NR_splice, %eax
6086 call *(%esp)
6087 addl $4, %esp
6088
6089 cmpl $-MAX_ERRNO, %eax
6090 jb 1f
6091 negl %eax
6092 pushl %eax
6093 call __set_errno_internal
6094 addl $4, %esp
60951:
6096 popl %ebp
6097 popl %edi
6098 popl %esi
6099 popl %edx
6100 popl %ecx
6101 popl %ebx
6102 ret
6103END(splice)
6104
6105ENTRY(vmsplice)
6106 pushl %ebx
6107 .cfi_def_cfa_offset 8
6108 .cfi_rel_offset ebx, 0
6109 pushl %ecx
6110 .cfi_adjust_cfa_offset 4
6111 .cfi_rel_offset ecx, 0
6112 pushl %edx
6113 .cfi_adjust_cfa_offset 4
6114 .cfi_rel_offset edx, 0
6115 pushl %esi
6116 .cfi_adjust_cfa_offset 4
6117 .cfi_rel_offset esi, 0
6118
6119 call __kernel_syscall
6120 pushl %eax
6121 .cfi_adjust_cfa_offset 4
6122 .cfi_rel_offset eax, 0
6123
6124 mov 24(%esp), %ebx
6125 mov 28(%esp), %ecx
6126 mov 32(%esp), %edx
6127 mov 36(%esp), %esi
6128 movl $__NR_vmsplice, %eax
6129 call *(%esp)
6130 addl $4, %esp
6131
6132 cmpl $-MAX_ERRNO, %eax
6133 jb 1f
6134 negl %eax
6135 pushl %eax
6136 call __set_errno_internal
6137 addl $4, %esp
61381:
6139 popl %esi
6140 popl %edx
6141 popl %ecx
6142 popl %ebx
6143 ret
6144END(vmsplice)
6145
6146ENTRY(epoll_create1)
6147 pushl %ebx
6148 .cfi_def_cfa_offset 8
6149 .cfi_rel_offset ebx, 0
6150
6151 call __kernel_syscall
6152 pushl %eax
6153 .cfi_adjust_cfa_offset 4
6154 .cfi_rel_offset eax, 0
6155
6156 mov 12(%esp), %ebx
6157 movl $__NR_epoll_create1, %eax
6158 call *(%esp)
6159 addl $4, %esp
6160
6161 cmpl $-MAX_ERRNO, %eax
6162 jb 1f
6163 negl %eax
6164 pushl %eax
6165 call __set_errno_internal
6166 addl $4, %esp
61671:
6168 popl %ebx
6169 ret
6170END(epoll_create1)
6171
6172ENTRY(epoll_ctl)
6173 pushl %ebx
6174 .cfi_def_cfa_offset 8
6175 .cfi_rel_offset ebx, 0
6176 pushl %ecx
6177 .cfi_adjust_cfa_offset 4
6178 .cfi_rel_offset ecx, 0
6179 pushl %edx
6180 .cfi_adjust_cfa_offset 4
6181 .cfi_rel_offset edx, 0
6182 pushl %esi
6183 .cfi_adjust_cfa_offset 4
6184 .cfi_rel_offset esi, 0
6185
6186 call __kernel_syscall
6187 pushl %eax
6188 .cfi_adjust_cfa_offset 4
6189 .cfi_rel_offset eax, 0
6190
6191 mov 24(%esp), %ebx
6192 mov 28(%esp), %ecx
6193 mov 32(%esp), %edx
6194 mov 36(%esp), %esi
6195 movl $__NR_epoll_ctl, %eax
6196 call *(%esp)
6197 addl $4, %esp
6198
6199 cmpl $-MAX_ERRNO, %eax
6200 jb 1f
6201 negl %eax
6202 pushl %eax
6203 call __set_errno_internal
6204 addl $4, %esp
62051:
6206 popl %esi
6207 popl %edx
6208 popl %ecx
6209 popl %ebx
6210 ret
6211END(epoll_ctl)
6212
6213ENTRY(__epoll_pwait)
6214 pushl %ebx
6215 .cfi_def_cfa_offset 8
6216 .cfi_rel_offset ebx, 0
6217 pushl %ecx
6218 .cfi_adjust_cfa_offset 4
6219 .cfi_rel_offset ecx, 0
6220 pushl %edx
6221 .cfi_adjust_cfa_offset 4
6222 .cfi_rel_offset edx, 0
6223 pushl %esi
6224 .cfi_adjust_cfa_offset 4
6225 .cfi_rel_offset esi, 0
6226 pushl %edi
6227 .cfi_adjust_cfa_offset 4
6228 .cfi_rel_offset edi, 0
6229 pushl %ebp
6230 .cfi_adjust_cfa_offset 4
6231 .cfi_rel_offset ebp, 0
6232
6233 call __kernel_syscall
6234 pushl %eax
6235 .cfi_adjust_cfa_offset 4
6236 .cfi_rel_offset eax, 0
6237
6238 mov 32(%esp), %ebx
6239 mov 36(%esp), %ecx
6240 mov 40(%esp), %edx
6241 mov 44(%esp), %esi
6242 mov 48(%esp), %edi
6243 mov 52(%esp), %ebp
6244 movl $__NR_epoll_pwait, %eax
6245 call *(%esp)
6246 addl $4, %esp
6247
6248 cmpl $-MAX_ERRNO, %eax
6249 jb 1f
6250 negl %eax
6251 pushl %eax
6252 call __set_errno_internal
6253 addl $4, %esp
62541:
6255 popl %ebp
6256 popl %edi
6257 popl %esi
6258 popl %edx
6259 popl %ecx
6260 popl %ebx
6261 ret
6262END(__epoll_pwait)
6263
6264ENTRY(eventfd)
6265 pushl %ebx
6266 .cfi_def_cfa_offset 8
6267 .cfi_rel_offset ebx, 0
6268 pushl %ecx
6269 .cfi_adjust_cfa_offset 4
6270 .cfi_rel_offset ecx, 0
6271
6272 call __kernel_syscall
6273 pushl %eax
6274 .cfi_adjust_cfa_offset 4
6275 .cfi_rel_offset eax, 0
6276
6277 mov 16(%esp), %ebx
6278 mov 20(%esp), %ecx
6279 movl $__NR_eventfd2, %eax
6280 call *(%esp)
6281 addl $4, %esp
6282
6283 cmpl $-MAX_ERRNO, %eax
6284 jb 1f
6285 negl %eax
6286 pushl %eax
6287 call __set_errno_internal
6288 addl $4, %esp
62891:
6290 popl %ecx
6291 popl %ebx
6292 ret
6293END(eventfd)
6294
6295ENTRY(_exit)
6296 pushl %ebx
6297 .cfi_def_cfa_offset 8
6298 .cfi_rel_offset ebx, 0
6299
6300 call __kernel_syscall
6301 pushl %eax
6302 .cfi_adjust_cfa_offset 4
6303 .cfi_rel_offset eax, 0
6304
6305 mov 12(%esp), %ebx
6306 movl $__NR_exit_group, %eax
6307 call *(%esp)
6308 addl $4, %esp
6309
6310 cmpl $-MAX_ERRNO, %eax
6311 jb 1f
6312 negl %eax
6313 pushl %eax
6314 call __set_errno_internal
6315 addl $4, %esp
63161:
6317 popl %ebx
6318 ret
6319END(_exit)
6320
6321ALIAS_SYMBOL(_Exit, _exit)
6322
6323ENTRY(__exit)
6324 pushl %ebx
6325 .cfi_def_cfa_offset 8
6326 .cfi_rel_offset ebx, 0
6327
6328 call __kernel_syscall
6329 pushl %eax
6330 .cfi_adjust_cfa_offset 4
6331 .cfi_rel_offset eax, 0
6332
6333 mov 12(%esp), %ebx
6334 movl $__NR_exit, %eax
6335 call *(%esp)
6336 addl $4, %esp
6337
6338 cmpl $-MAX_ERRNO, %eax
6339 jb 1f
6340 negl %eax
6341 pushl %eax
6342 call __set_errno_internal
6343 addl $4, %esp
63441:
6345 popl %ebx
6346 ret
6347END(__exit)
6348
6349ENTRY(inotify_init1)
6350 pushl %ebx
6351 .cfi_def_cfa_offset 8
6352 .cfi_rel_offset ebx, 0
6353
6354 call __kernel_syscall
6355 pushl %eax
6356 .cfi_adjust_cfa_offset 4
6357 .cfi_rel_offset eax, 0
6358
6359 mov 12(%esp), %ebx
6360 movl $__NR_inotify_init1, %eax
6361 call *(%esp)
6362 addl $4, %esp
6363
6364 cmpl $-MAX_ERRNO, %eax
6365 jb 1f
6366 negl %eax
6367 pushl %eax
6368 call __set_errno_internal
6369 addl $4, %esp
63701:
6371 popl %ebx
6372 ret
6373END(inotify_init1)
6374
6375ENTRY(inotify_add_watch)
6376 pushl %ebx
6377 .cfi_def_cfa_offset 8
6378 .cfi_rel_offset ebx, 0
6379 pushl %ecx
6380 .cfi_adjust_cfa_offset 4
6381 .cfi_rel_offset ecx, 0
6382 pushl %edx
6383 .cfi_adjust_cfa_offset 4
6384 .cfi_rel_offset edx, 0
6385
6386 call __kernel_syscall
6387 pushl %eax
6388 .cfi_adjust_cfa_offset 4
6389 .cfi_rel_offset eax, 0
6390
6391 mov 20(%esp), %ebx
6392 mov 24(%esp), %ecx
6393 mov 28(%esp), %edx
6394 movl $__NR_inotify_add_watch, %eax
6395 call *(%esp)
6396 addl $4, %esp
6397
6398 cmpl $-MAX_ERRNO, %eax
6399 jb 1f
6400 negl %eax
6401 pushl %eax
6402 call __set_errno_internal
6403 addl $4, %esp
64041:
6405 popl %edx
6406 popl %ecx
6407 popl %ebx
6408 ret
6409END(inotify_add_watch)
6410
6411ENTRY(inotify_rm_watch)
6412 pushl %ebx
6413 .cfi_def_cfa_offset 8
6414 .cfi_rel_offset ebx, 0
6415 pushl %ecx
6416 .cfi_adjust_cfa_offset 4
6417 .cfi_rel_offset ecx, 0
6418
6419 call __kernel_syscall
6420 pushl %eax
6421 .cfi_adjust_cfa_offset 4
6422 .cfi_rel_offset eax, 0
6423
6424 mov 16(%esp), %ebx
6425 mov 20(%esp), %ecx
6426 movl $__NR_inotify_rm_watch, %eax
6427 call *(%esp)
6428 addl $4, %esp
6429
6430 cmpl $-MAX_ERRNO, %eax
6431 jb 1f
6432 negl %eax
6433 pushl %eax
6434 call __set_errno_internal
6435 addl $4, %esp
64361:
6437 popl %ecx
6438 popl %ebx
6439 ret
6440END(inotify_rm_watch)
6441
6442ENTRY(__pselect6)
6443 pushl %ebx
6444 .cfi_def_cfa_offset 8
6445 .cfi_rel_offset ebx, 0
6446 pushl %ecx
6447 .cfi_adjust_cfa_offset 4
6448 .cfi_rel_offset ecx, 0
6449 pushl %edx
6450 .cfi_adjust_cfa_offset 4
6451 .cfi_rel_offset edx, 0
6452 pushl %esi
6453 .cfi_adjust_cfa_offset 4
6454 .cfi_rel_offset esi, 0
6455 pushl %edi
6456 .cfi_adjust_cfa_offset 4
6457 .cfi_rel_offset edi, 0
6458 pushl %ebp
6459 .cfi_adjust_cfa_offset 4
6460 .cfi_rel_offset ebp, 0
6461
6462 call __kernel_syscall
6463 pushl %eax
6464 .cfi_adjust_cfa_offset 4
6465 .cfi_rel_offset eax, 0
6466
6467 mov 32(%esp), %ebx
6468 mov 36(%esp), %ecx
6469 mov 40(%esp), %edx
6470 mov 44(%esp), %esi
6471 mov 48(%esp), %edi
6472 mov 52(%esp), %ebp
6473 movl $__NR_pselect6, %eax
6474 call *(%esp)
6475 addl $4, %esp
6476
6477 cmpl $-MAX_ERRNO, %eax
6478 jb 1f
6479 negl %eax
6480 pushl %eax
6481 call __set_errno_internal
6482 addl $4, %esp
64831:
6484 popl %ebp
6485 popl %edi
6486 popl %esi
6487 popl %edx
6488 popl %ecx
6489 popl %ebx
6490 ret
6491END(__pselect6)
6492
6493ENTRY(__ppoll)
6494 pushl %ebx
6495 .cfi_def_cfa_offset 8
6496 .cfi_rel_offset ebx, 0
6497 pushl %ecx
6498 .cfi_adjust_cfa_offset 4
6499 .cfi_rel_offset ecx, 0
6500 pushl %edx
6501 .cfi_adjust_cfa_offset 4
6502 .cfi_rel_offset edx, 0
6503 pushl %esi
6504 .cfi_adjust_cfa_offset 4
6505 .cfi_rel_offset esi, 0
6506 pushl %edi
6507 .cfi_adjust_cfa_offset 4
6508 .cfi_rel_offset edi, 0
6509
6510 call __kernel_syscall
6511 pushl %eax
6512 .cfi_adjust_cfa_offset 4
6513 .cfi_rel_offset eax, 0
6514
6515 mov 28(%esp), %ebx
6516 mov 32(%esp), %ecx
6517 mov 36(%esp), %edx
6518 mov 40(%esp), %esi
6519 mov 44(%esp), %edi
6520 movl $__NR_ppoll, %eax
6521 call *(%esp)
6522 addl $4, %esp
6523
6524 cmpl $-MAX_ERRNO, %eax
6525 jb 1f
6526 negl %eax
6527 pushl %eax
6528 call __set_errno_internal
6529 addl $4, %esp
65301:
6531 popl %edi
6532 popl %esi
6533 popl %edx
6534 popl %ecx
6535 popl %ebx
6536 ret
6537END(__ppoll)
6538
6539ENTRY(process_vm_readv)
6540 pushl %ebx
6541 .cfi_def_cfa_offset 8
6542 .cfi_rel_offset ebx, 0
6543 pushl %ecx
6544 .cfi_adjust_cfa_offset 4
6545 .cfi_rel_offset ecx, 0
6546 pushl %edx
6547 .cfi_adjust_cfa_offset 4
6548 .cfi_rel_offset edx, 0
6549 pushl %esi
6550 .cfi_adjust_cfa_offset 4
6551 .cfi_rel_offset esi, 0
6552 pushl %edi
6553 .cfi_adjust_cfa_offset 4
6554 .cfi_rel_offset edi, 0
6555 pushl %ebp
6556 .cfi_adjust_cfa_offset 4
6557 .cfi_rel_offset ebp, 0
6558
6559 call __kernel_syscall
6560 pushl %eax
6561 .cfi_adjust_cfa_offset 4
6562 .cfi_rel_offset eax, 0
6563
6564 mov 32(%esp), %ebx
6565 mov 36(%esp), %ecx
6566 mov 40(%esp), %edx
6567 mov 44(%esp), %esi
6568 mov 48(%esp), %edi
6569 mov 52(%esp), %ebp
6570 movl $__NR_process_vm_readv, %eax
6571 call *(%esp)
6572 addl $4, %esp
6573
6574 cmpl $-MAX_ERRNO, %eax
6575 jb 1f
6576 negl %eax
6577 pushl %eax
6578 call __set_errno_internal
6579 addl $4, %esp
65801:
6581 popl %ebp
6582 popl %edi
6583 popl %esi
6584 popl %edx
6585 popl %ecx
6586 popl %ebx
6587 ret
6588END(process_vm_readv)
6589
6590ENTRY(process_vm_writev)
6591 pushl %ebx
6592 .cfi_def_cfa_offset 8
6593 .cfi_rel_offset ebx, 0
6594 pushl %ecx
6595 .cfi_adjust_cfa_offset 4
6596 .cfi_rel_offset ecx, 0
6597 pushl %edx
6598 .cfi_adjust_cfa_offset 4
6599 .cfi_rel_offset edx, 0
6600 pushl %esi
6601 .cfi_adjust_cfa_offset 4
6602 .cfi_rel_offset esi, 0
6603 pushl %edi
6604 .cfi_adjust_cfa_offset 4
6605 .cfi_rel_offset edi, 0
6606 pushl %ebp
6607 .cfi_adjust_cfa_offset 4
6608 .cfi_rel_offset ebp, 0
6609
6610 call __kernel_syscall
6611 pushl %eax
6612 .cfi_adjust_cfa_offset 4
6613 .cfi_rel_offset eax, 0
6614
6615 mov 32(%esp), %ebx
6616 mov 36(%esp), %ecx
6617 mov 40(%esp), %edx
6618 mov 44(%esp), %esi
6619 mov 48(%esp), %edi
6620 mov 52(%esp), %ebp
6621 movl $__NR_process_vm_writev, %eax
6622 call *(%esp)
6623 addl $4, %esp
6624
6625 cmpl $-MAX_ERRNO, %eax
6626 jb 1f
6627 negl %eax
6628 pushl %eax
6629 call __set_errno_internal
6630 addl $4, %esp
66311:
6632 popl %ebp
6633 popl %edi
6634 popl %esi
6635 popl %edx
6636 popl %ecx
6637 popl %ebx
6638 ret
6639END(process_vm_writev)
6640
6641ENTRY(quotactl)
6642 pushl %ebx
6643 .cfi_def_cfa_offset 8
6644 .cfi_rel_offset ebx, 0
6645 pushl %ecx
6646 .cfi_adjust_cfa_offset 4
6647 .cfi_rel_offset ecx, 0
6648 pushl %edx
6649 .cfi_adjust_cfa_offset 4
6650 .cfi_rel_offset edx, 0
6651 pushl %esi
6652 .cfi_adjust_cfa_offset 4
6653 .cfi_rel_offset esi, 0
6654
6655 call __kernel_syscall
6656 pushl %eax
6657 .cfi_adjust_cfa_offset 4
6658 .cfi_rel_offset eax, 0
6659
6660 mov 24(%esp), %ebx
6661 mov 28(%esp), %ecx
6662 mov 32(%esp), %edx
6663 mov 36(%esp), %esi
6664 movl $__NR_quotactl, %eax
6665 call *(%esp)
6666 addl $4, %esp
6667
6668 cmpl $-MAX_ERRNO, %eax
6669 jb 1f
6670 negl %eax
6671 pushl %eax
6672 call __set_errno_internal
6673 addl $4, %esp
66741:
6675 popl %esi
6676 popl %edx
6677 popl %ecx
6678 popl %ebx
6679 ret
6680END(quotactl)
6681
6682ENTRY(__set_tid_address)
6683 pushl %ebx
6684 .cfi_def_cfa_offset 8
6685 .cfi_rel_offset ebx, 0
6686
6687 call __kernel_syscall
6688 pushl %eax
6689 .cfi_adjust_cfa_offset 4
6690 .cfi_rel_offset eax, 0
6691
6692 mov 12(%esp), %ebx
6693 movl $__NR_set_tid_address, %eax
6694 call *(%esp)
6695 addl $4, %esp
6696
6697 cmpl $-MAX_ERRNO, %eax
6698 jb 1f
6699 negl %eax
6700 pushl %eax
6701 call __set_errno_internal
6702 addl $4, %esp
67031:
6704 popl %ebx
6705 ret
6706END(__set_tid_address)
6707
6708ENTRY(setfsgid)
6709 pushl %ebx
6710 .cfi_def_cfa_offset 8
6711 .cfi_rel_offset ebx, 0
6712
6713 call __kernel_syscall
6714 pushl %eax
6715 .cfi_adjust_cfa_offset 4
6716 .cfi_rel_offset eax, 0
6717
6718 mov 12(%esp), %ebx
6719 movl $__NR_setfsgid, %eax
6720 call *(%esp)
6721 addl $4, %esp
6722
6723 cmpl $-MAX_ERRNO, %eax
6724 jb 1f
6725 negl %eax
6726 pushl %eax
6727 call __set_errno_internal
6728 addl $4, %esp
67291:
6730 popl %ebx
6731 ret
6732END(setfsgid)
6733
6734ENTRY(setfsuid)
6735 pushl %ebx
6736 .cfi_def_cfa_offset 8
6737 .cfi_rel_offset ebx, 0
6738
6739 call __kernel_syscall
6740 pushl %eax
6741 .cfi_adjust_cfa_offset 4
6742 .cfi_rel_offset eax, 0
6743
6744 mov 12(%esp), %ebx
6745 movl $__NR_setfsuid, %eax
6746 call *(%esp)
6747 addl $4, %esp
6748
6749 cmpl $-MAX_ERRNO, %eax
6750 jb 1f
6751 negl %eax
6752 pushl %eax
6753 call __set_errno_internal
6754 addl $4, %esp
67551:
6756 popl %ebx
6757 ret
6758END(setfsuid)
6759
6760ENTRY(setdomainname)
6761 pushl %ebx
6762 .cfi_def_cfa_offset 8
6763 .cfi_rel_offset ebx, 0
6764 pushl %ecx
6765 .cfi_adjust_cfa_offset 4
6766 .cfi_rel_offset ecx, 0
6767
6768 call __kernel_syscall
6769 pushl %eax
6770 .cfi_adjust_cfa_offset 4
6771 .cfi_rel_offset eax, 0
6772
6773 mov 16(%esp), %ebx
6774 mov 20(%esp), %ecx
6775 movl $__NR_setdomainname, %eax
6776 call *(%esp)
6777 addl $4, %esp
6778
6779 cmpl $-MAX_ERRNO, %eax
6780 jb 1f
6781 negl %eax
6782 pushl %eax
6783 call __set_errno_internal
6784 addl $4, %esp
67851:
6786 popl %ecx
6787 popl %ebx
6788 ret
6789END(setdomainname)
6790
6791ENTRY(sethostname)
6792 pushl %ebx
6793 .cfi_def_cfa_offset 8
6794 .cfi_rel_offset ebx, 0
6795 pushl %ecx
6796 .cfi_adjust_cfa_offset 4
6797 .cfi_rel_offset ecx, 0
6798
6799 call __kernel_syscall
6800 pushl %eax
6801 .cfi_adjust_cfa_offset 4
6802 .cfi_rel_offset eax, 0
6803
6804 mov 16(%esp), %ebx
6805 mov 20(%esp), %ecx
6806 movl $__NR_sethostname, %eax
6807 call *(%esp)
6808 addl $4, %esp
6809
6810 cmpl $-MAX_ERRNO, %eax
6811 jb 1f
6812 negl %eax
6813 pushl %eax
6814 call __set_errno_internal
6815 addl $4, %esp
68161:
6817 popl %ecx
6818 popl %ebx
6819 ret
6820END(sethostname)
6821
6822ENTRY(__sync_file_range)
6823 pushl %ebx
6824 .cfi_def_cfa_offset 8
6825 .cfi_rel_offset ebx, 0
6826 pushl %ecx
6827 .cfi_adjust_cfa_offset 4
6828 .cfi_rel_offset ecx, 0
6829 pushl %edx
6830 .cfi_adjust_cfa_offset 4
6831 .cfi_rel_offset edx, 0
6832 pushl %esi
6833 .cfi_adjust_cfa_offset 4
6834 .cfi_rel_offset esi, 0
6835 pushl %edi
6836 .cfi_adjust_cfa_offset 4
6837 .cfi_rel_offset edi, 0
6838 pushl %ebp
6839 .cfi_adjust_cfa_offset 4
6840 .cfi_rel_offset ebp, 0
6841
6842 call __kernel_syscall
6843 pushl %eax
6844 .cfi_adjust_cfa_offset 4
6845 .cfi_rel_offset eax, 0
6846
6847 mov 32(%esp), %ebx
6848 mov 36(%esp), %ecx
6849 mov 40(%esp), %edx
6850 mov 44(%esp), %esi
6851 mov 48(%esp), %edi
6852 mov 52(%esp), %ebp
6853 movl $__NR_sync_file_range, %eax
6854 call *(%esp)
6855 addl $4, %esp
6856
6857 cmpl $-MAX_ERRNO, %eax
6858 jb 1f
6859 negl %eax
6860 pushl %eax
6861 call __set_errno_internal
6862 addl $4, %esp
68631:
6864 popl %ebp
6865 popl %edi
6866 popl %esi
6867 popl %edx
6868 popl %ecx
6869 popl %ebx
6870 ret
6871END(__sync_file_range)
6872
6873ENTRY(wait4)
6874 pushl %ebx
6875 .cfi_def_cfa_offset 8
6876 .cfi_rel_offset ebx, 0
6877 pushl %ecx
6878 .cfi_adjust_cfa_offset 4
6879 .cfi_rel_offset ecx, 0
6880 pushl %edx
6881 .cfi_adjust_cfa_offset 4
6882 .cfi_rel_offset edx, 0
6883 pushl %esi
6884 .cfi_adjust_cfa_offset 4
6885 .cfi_rel_offset esi, 0
6886
6887 call __kernel_syscall
6888 pushl %eax
6889 .cfi_adjust_cfa_offset 4
6890 .cfi_rel_offset eax, 0
6891
6892 mov 24(%esp), %ebx
6893 mov 28(%esp), %ecx
6894 mov 32(%esp), %edx
6895 mov 36(%esp), %esi
6896 movl $__NR_wait4, %eax
6897 call *(%esp)
6898 addl $4, %esp
6899
6900 cmpl $-MAX_ERRNO, %eax
6901 jb 1f
6902 negl %eax
6903 pushl %eax
6904 call __set_errno_internal
6905 addl $4, %esp
69061:
6907 popl %esi
6908 popl %edx
6909 popl %ecx
6910 popl %ebx
6911 ret
6912END(wait4)
6913
6914ENTRY(__waitid)
6915 pushl %ebx
6916 .cfi_def_cfa_offset 8
6917 .cfi_rel_offset ebx, 0
6918 pushl %ecx
6919 .cfi_adjust_cfa_offset 4
6920 .cfi_rel_offset ecx, 0
6921 pushl %edx
6922 .cfi_adjust_cfa_offset 4
6923 .cfi_rel_offset edx, 0
6924 pushl %esi
6925 .cfi_adjust_cfa_offset 4
6926 .cfi_rel_offset esi, 0
6927 pushl %edi
6928 .cfi_adjust_cfa_offset 4
6929 .cfi_rel_offset edi, 0
6930
6931 call __kernel_syscall
6932 pushl %eax
6933 .cfi_adjust_cfa_offset 4
6934 .cfi_rel_offset eax, 0
6935
6936 mov 28(%esp), %ebx
6937 mov 32(%esp), %ecx
6938 mov 36(%esp), %edx
6939 mov 40(%esp), %esi
6940 mov 44(%esp), %edi
6941 movl $__NR_waitid, %eax
6942 call *(%esp)
6943 addl $4, %esp
6944
6945 cmpl $-MAX_ERRNO, %eax
6946 jb 1f
6947 negl %eax
6948 pushl %eax
6949 call __set_errno_internal
6950 addl $4, %esp
69511:
6952 popl %edi
6953 popl %esi
6954 popl %edx
6955 popl %ecx
6956 popl %ebx
6957 ret
6958END(__waitid)
6959
6960ENTRY(__set_thread_area)
6961 pushl %ebx
6962 .cfi_def_cfa_offset 8
6963 .cfi_rel_offset ebx, 0
6964
6965 call __kernel_syscall
6966 pushl %eax
6967 .cfi_adjust_cfa_offset 4
6968 .cfi_rel_offset eax, 0
6969
6970 mov 12(%esp), %ebx
6971 movl $__NR_set_thread_area, %eax
6972 call *(%esp)
6973 addl $4, %esp
6974
6975 cmpl $-MAX_ERRNO, %eax
6976 jb 1f
6977 negl %eax
6978 pushl %eax
6979 call __set_errno_internal
6980 addl $4, %esp
69811:
6982 popl %ebx
6983 ret
6984END(__set_thread_area)
6985
6986ENTRY(__clock_getres)
6987 pushl %ebx
6988 .cfi_def_cfa_offset 8
6989 .cfi_rel_offset ebx, 0
6990 pushl %ecx
6991 .cfi_adjust_cfa_offset 4
6992 .cfi_rel_offset ecx, 0
6993
6994 call __kernel_syscall
6995 pushl %eax
6996 .cfi_adjust_cfa_offset 4
6997 .cfi_rel_offset eax, 0
6998
6999 mov 16(%esp), %ebx
7000 mov 20(%esp), %ecx
7001 movl $__NR_clock_getres, %eax
7002 call *(%esp)
7003 addl $4, %esp
7004
7005 cmpl $-MAX_ERRNO, %eax
7006 jb 1f
7007 negl %eax
7008 pushl %eax
7009 call __set_errno_internal
7010 addl $4, %esp
70111:
7012 popl %ecx
7013 popl %ebx
7014 ret
7015END(__clock_getres)
7016
7017ENTRY(__clock_gettime)
7018 pushl %ebx
7019 .cfi_def_cfa_offset 8
7020 .cfi_rel_offset ebx, 0
7021 pushl %ecx
7022 .cfi_adjust_cfa_offset 4
7023 .cfi_rel_offset ecx, 0
7024
7025 call __kernel_syscall
7026 pushl %eax
7027 .cfi_adjust_cfa_offset 4
7028 .cfi_rel_offset eax, 0
7029
7030 mov 16(%esp), %ebx
7031 mov 20(%esp), %ecx
7032 movl $__NR_clock_gettime, %eax
7033 call *(%esp)
7034 addl $4, %esp
7035
7036 cmpl $-MAX_ERRNO, %eax
7037 jb 1f
7038 negl %eax
7039 pushl %eax
7040 call __set_errno_internal
7041 addl $4, %esp
70421:
7043 popl %ecx
7044 popl %ebx
7045 ret
7046END(__clock_gettime)
7047
7048ENTRY(__gettimeofday)
7049 pushl %ebx
7050 .cfi_def_cfa_offset 8
7051 .cfi_rel_offset ebx, 0
7052 pushl %ecx
7053 .cfi_adjust_cfa_offset 4
7054 .cfi_rel_offset ecx, 0
7055
7056 call __kernel_syscall
7057 pushl %eax
7058 .cfi_adjust_cfa_offset 4
7059 .cfi_rel_offset eax, 0
7060
7061 mov 16(%esp), %ebx
7062 mov 20(%esp), %ecx
7063 movl $__NR_gettimeofday, %eax
7064 call *(%esp)
7065 addl $4, %esp
7066
7067 cmpl $-MAX_ERRNO, %eax
7068 jb 1f
7069 negl %eax
7070 pushl %eax
7071 call __set_errno_internal
7072 addl $4, %esp
70731:
7074 popl %ecx
7075 popl %ebx
7076 ret
7077END(__gettimeofday)
7078
7079ENTRY(getrandom)
7080 pushl %ebx
7081 .cfi_def_cfa_offset 8
7082 .cfi_rel_offset ebx, 0
7083 pushl %ecx
7084 .cfi_adjust_cfa_offset 4
7085 .cfi_rel_offset ecx, 0
7086 pushl %edx
7087 .cfi_adjust_cfa_offset 4
7088 .cfi_rel_offset edx, 0
7089
7090 call __kernel_syscall
7091 pushl %eax
7092 .cfi_adjust_cfa_offset 4
7093 .cfi_rel_offset eax, 0
7094
7095 mov 20(%esp), %ebx
7096 mov 24(%esp), %ecx
7097 mov 28(%esp), %edx
7098 movl $__NR_getrandom, %eax
7099 call *(%esp)
7100 addl $4, %esp
7101
7102 cmpl $-MAX_ERRNO, %eax
7103 jb 1f
7104 negl %eax
7105 pushl %eax
7106 call __set_errno_internal
7107 addl $4, %esp
71081:
7109 popl %edx
7110 popl %ecx
7111 popl %ebx
7112 ret
7113END(getrandom)