clarify the purpose of this project
[nyanglibc.git] / sysvipc / ftok.s
blobc408228844e349215792d1c54704b4b2e1d7be06
1 .text
2 .p2align 4,,15
3 .globl ftok
4 .type ftok, @function
5 ftok:
6 pushq %rbx
7 movl %esi, %ebx
8 subq $144, %rsp
9 movq %rsp, %rsi
10 call __stat64
11 testl %eax, %eax
12 js .L3
13 movl (%rsp), %eax
14 movzwl 8(%rsp), %edx
15 sall $24, %ebx
16 sall $16, %eax
17 andl $16711680, %eax
18 orl %edx, %eax
19 orl %ebx, %eax
20 .L1:
21 addq $144, %rsp
22 popq %rbx
23 ret
24 .p2align 4,,10
25 .p2align 3
26 .L3:
27 movl $-1, %eax
28 jmp .L1
29 .size ftok, .-ftok
30 .hidden __stat64