minix/lib/nbsd_libc/compat/arch/powerpc/sys/compat_sigpending13.S

22 lines
553 B
ArmAsm
Raw Normal View History

/* $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)