/*
 * chdir.S
 */


#define ASM_FILE


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


.text


/*
 * int chdir(const char *path)
 */
.globl _chdir,chdir
chdir:
_chdir:
    movl	$SYS_CHDIR,%eax
	lcall	$SYSCALL1_SEG,$0
	subl	$4*2,%esp
	cmpl	$0,%eax
	js		sys_error
	ret
