Update copyright notices with scripts/update-copyrights
[glibc.git] / sysdeps / unix / sysv / linux / i386 / call_pselect6.S
blobe343262edb8e0c84df55ec99bc7f68629e185991
1 /* Copyright (C) 2006-2014 Free Software Foundation, Inc.
2    This file is part of the GNU C Library.
3    Contributed by Ulrich Drepper <drepper@redhat.com>, 2006.
5    The GNU C Library is free software; you can redistribute it and/or
6    modify it under the terms of the GNU Lesser General Public
7    License as published by the Free Software Foundation; either
8    version 2.1 of the License, or (at your option) any later version.
10    The GNU C Library is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13    Lesser General Public License for more details.
15    You should have received a copy of the GNU Lesser General Public
16    License along with the GNU C Library; if not, see
17    <http://www.gnu.org/licenses/>.  */
19 #include <sysdep.h>
21 #ifdef __NR_pselect6
22         .text
23 ENTRY(__call_pselect6)
24         .hidden __call_pselect6
25         pushl   %ebx
26         cfi_adjust_cfa_offset (4)
27         pushl   %esi
28         cfi_adjust_cfa_offset (4)
29         pushl   %edi
30         cfi_adjust_cfa_offset (4)
31         pushl   %ebp
32         cfi_adjust_cfa_offset (4)
33         cfi_rel_offset (ebp, 0)
34         cfi_rel_offset (edi, 4)
35         cfi_rel_offset (esi, 8)
36         cfi_rel_offset (ebx, 12)
38         movl    $__NR_pselect6, %eax
39         movl    20(%esp), %ebx
40         movl    24(%esp), %ecx
41         movl    28(%esp), %edx
42         movl    32(%esp), %esi
43         movl    36(%esp), %edi
44         movl    40(%esp), %ebp
46         /* The syscall handling cannot handle 6 parameters.  Yet.  */
47         int     $0x80
49         popl    %ebp
50         cfi_adjust_cfa_offset (-4)
51         cfi_restore (ebp)
52         popl    %edi
53         cfi_adjust_cfa_offset (-4)
54         cfi_restore (edi)
55         popl    %esi
56         cfi_adjust_cfa_offset (-4)
57         cfi_restore (esi)
58         popl    %ebx
59         cfi_adjust_cfa_offset (-4)
60         cfi_restore (ebx)
62         ret
63 END(__call_pselect6)
64 #endif