/*
 * getsid.S
 */


#define ASM_FILE


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


.text


.globl getsid
getsid:
    movl	$SYS_GETSID,%eax
	lcall	$SYSCALL1_SEG,$1
	subl	$4*(1+1),%esp
	cmpl	$0,%eax
	js		sys_error
	ret
