xref: /csrg-svn/lib/libc/mips/sys/sigpending.s (revision 61148)
152732Sbostic/*-
2*61148Sbostic * Copyright (c) 1991, 1993
3*61148Sbostic *	The Regents of the University of California.  All rights reserved.
452732Sbostic *
552732Sbostic * This code is derived from software contributed to Berkeley by
652732Sbostic * Ralph Campbell.
752732Sbostic *
852732Sbostic * %sccs.include.redist.c%
952732Sbostic */
1052732Sbostic
1152732Sbostic#include "SYS.h"
1252732Sbostic
1352732Sbostic#if defined(LIBC_SCCS) && !defined(lint)
14*61148Sbostic	ASMSTR("@(#)sigpending.s	8.1 (Berkeley) 06/04/93")
1552732Sbostic#endif /* LIBC_SCCS and not lint */
1652732Sbostic
1752732SbosticLEAF(sigpending)
1852732Sbostic	li	v0, SYS_sigpending	# setlogin(name)
1952732Sbostic	syscall
2052732Sbostic	bne	a3, zero, 1f
2152732Sbostic	sw	v0, 0(a0)
2252732Sbostic	move	v0, zero
2352732Sbostic	j	ra
2452732Sbostic1:
2552732Sbostic	j	_cerror
2652732SbosticEND(sigpending)
27