__connect.S revision e4ffd9f2341f42c9281b4a93df76768580535edd
1e4ffd9f2341f42c9281b4a93df76768580535eddElliott Hughes/* autogenerated by gensyscalls.py */ 2e4ffd9f2341f42c9281b4a93df76768580535eddElliott Hughes#include <asm/unistd.h> 3e4ffd9f2341f42c9281b4a93df76768580535eddElliott Hughes#include <linux/err.h> 4e4ffd9f2341f42c9281b4a93df76768580535eddElliott Hughes#include <machine/asm.h> 5e4ffd9f2341f42c9281b4a93df76768580535eddElliott Hughes 6e4ffd9f2341f42c9281b4a93df76768580535eddElliott HughesENTRY(connect) 7e4ffd9f2341f42c9281b4a93df76768580535eddElliott Hughes movl $__NR_connect, %eax 8e4ffd9f2341f42c9281b4a93df76768580535eddElliott Hughes syscall 9e4ffd9f2341f42c9281b4a93df76768580535eddElliott Hughes cmpq $-MAX_ERRNO, %rax 10e4ffd9f2341f42c9281b4a93df76768580535eddElliott Hughes jb 1f 11e4ffd9f2341f42c9281b4a93df76768580535eddElliott Hughes negl %eax 12e4ffd9f2341f42c9281b4a93df76768580535eddElliott Hughes movl %eax, %edi 13e4ffd9f2341f42c9281b4a93df76768580535eddElliott Hughes call __set_errno 14e4ffd9f2341f42c9281b4a93df76768580535eddElliott Hughes orq $-1, %rax 15e4ffd9f2341f42c9281b4a93df76768580535eddElliott Hughes1: 16e4ffd9f2341f42c9281b4a93df76768580535eddElliott Hughes ret 17e4ffd9f2341f42c9281b4a93df76768580535eddElliott HughesEND(connect) 18