~xnox/ubuntu/trusty/gcc-arm-linux-androideabi/dima

« back to all changes in this revision

Viewing changes to android/bionic/libc/arch-x86/syscalls/write.S

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs
  • Date: 2013-07-05 10:12:24 UTC
  • Revision ID: package-import@ubuntu.com-20130705101224-6qo3e8jbz8p31aa1
Tags: upstream-0.20130705.1
ImportĀ upstreamĀ versionĀ 0.20130705.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* autogenerated by gensyscalls.py */
 
2
#include <sys/linux-syscalls.h>
 
3
 
 
4
    .text
 
5
    .type write, @function
 
6
    .globl write
 
7
    .align 4
 
8
 
 
9
write:
 
10
    pushl   %ebx
 
11
    pushl   %ecx
 
12
    pushl   %edx
 
13
    mov     16(%esp), %ebx
 
14
    mov     20(%esp), %ecx
 
15
    mov     24(%esp), %edx
 
16
    movl    $__NR_write, %eax
 
17
    int     $0x80
 
18
    cmpl    $-129, %eax
 
19
    jb      1f
 
20
    negl    %eax
 
21
    pushl   %eax
 
22
    call    __set_errno
 
23
    addl    $4, %esp
 
24
    orl     $-1, %eax
 
25
1:
 
26
    popl    %edx
 
27
    popl    %ecx
 
28
    popl    %ebx
 
29
    ret