1 1.3 matt /* $NetBSD: compat_sigpending13.S,v 1.3 2011/01/16 02:45:48 matt Exp $ */ 2 1.1 matt 3 1.1 matt #include "SYS.h" 4 1.1 matt 5 1.2 matt #if defined(LIBC_SCCS) 6 1.3 matt __RCSID("$NetBSD: compat_sigpending13.S,v 1.3 2011/01/16 02:45:48 matt Exp $") 7 1.2 matt #endif 8 1.2 matt 9 1.1 matt WARN_REFERENCES(sigpending, \ 10 1.1 matt "warning: reference to compatibility sigpending(); include <signal.h> for correct reference") 11 1.1 matt 12 1.1 matt ENTRY(sigpending) 13 1.3 matt mr %r5,%r3 # save pointer 14 1.3 matt _DOSYSCALL(compat_13_sigpending13) # sigpending() 15 1.1 matt bso 1f 16 1.3 matt stw %r3,0(%r5) # store return value 17 1.3 matt li %r3,0 # and return 0 18 1.1 matt blr 19 1.1 matt 1: 20 1.2 matt b _C_LABEL(__cerror) 21 1.2 matt END(sigpending) 22