/*
 * recvfrom.S
 */


#define ASM_FILE


#include<share/segment.h>
#include<sys/syscall.h>


.text


.globl recvfrom
recvfrom:
    movl	$SYS_RECV,%eax
	lcall	$SYSCALL6_SEG,$0
	subl	$4*(6+1),%esp
	cmpl	$0,%eax
	js		sys_error
	ret
