summaryrefslogtreecommitdiff
path: root/lib/libc/compat/arch/powerpc/sys/compat_sigpending13.S
blob: 27867cc304359bacffc04bb07d1aca12d4d14678 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*	$NetBSD: compat_sigpending13.S,v 1.3 2011/01/16 02:45:48 matt Exp $	*/

#include "SYS.h"

#if defined(LIBC_SCCS)
__RCSID("$NetBSD: compat_sigpending13.S,v 1.3 2011/01/16 02:45:48 matt Exp $")
#endif

WARN_REFERENCES(sigpending, \
    "warning: reference to compatibility sigpending(); include <signal.h> for correct reference")

ENTRY(sigpending)
	mr	%r5,%r3				# save pointer
	_DOSYSCALL(compat_13_sigpending13) 	# sigpending()
	bso	1f
	stw	%r3,0(%r5)			# store return value
	li	%r3,0				# and return 0
	blr
1:
	b	_C_LABEL(__cerror)
END(sigpending)