1*eb9395f8Suwe/* $NetBSD: compat_sigpending.S,v 1.1 2005/10/15 22:11:22 uwe Exp $ */ 2*eb9395f8Suwe/* 3*eb9395f8Suwe * Copyright (c) 1992, 1993 4*eb9395f8Suwe * The Regents of the University of California. All rights reserved. 5*eb9395f8Suwe * 6*eb9395f8Suwe * This software was developed by the Computer Systems Engineering group 7*eb9395f8Suwe * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 8*eb9395f8Suwe * contributed to Berkeley. 9*eb9395f8Suwe * 10*eb9395f8Suwe * Redistribution and use in source and binary forms, with or without 11*eb9395f8Suwe * modification, are permitted provided that the following conditions 12*eb9395f8Suwe * are met: 13*eb9395f8Suwe * 1. Redistributions of source code must retain the above copyright 14*eb9395f8Suwe * notice, this list of conditions and the following disclaimer. 15*eb9395f8Suwe * 2. Redistributions in binary form must reproduce the above copyright 16*eb9395f8Suwe * notice, this list of conditions and the following disclaimer in the 17*eb9395f8Suwe * documentation and/or other materials provided with the distribution. 18*eb9395f8Suwe * 3. Neither the name of the University nor the names of its contributors 19*eb9395f8Suwe * may be used to endorse or promote products derived from this software 20*eb9395f8Suwe * without specific prior written permission. 21*eb9395f8Suwe * 22*eb9395f8Suwe * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 23*eb9395f8Suwe * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24*eb9395f8Suwe * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25*eb9395f8Suwe * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 26*eb9395f8Suwe * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27*eb9395f8Suwe * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28*eb9395f8Suwe * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29*eb9395f8Suwe * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30*eb9395f8Suwe * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31*eb9395f8Suwe * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32*eb9395f8Suwe * SUCH DAMAGE. 33*eb9395f8Suwe * 34*eb9395f8Suwe * from: Header: sigpending.s,v 1.1 91/07/06 13:06:00 torek Exp 35*eb9395f8Suwe */ 36*eb9395f8Suwe 37*eb9395f8Suwe#include <machine/asm.h> 38*eb9395f8Suwe#if defined(SYSLIBC_SCCS) && !defined(lint) 39*eb9395f8Suwe#if 0 40*eb9395f8Suwe .asciz "@(#)sigpending.s 8.1 (Berkeley) 6/4/93" 41*eb9395f8Suwe#else 42*eb9395f8Suwe RCSID("$NetBSD: compat_sigpending.S,v 1.1 2005/10/15 22:11:22 uwe Exp $") 43*eb9395f8Suwe#endif 44*eb9395f8Suwe#endif /* SYSLIBC_SCCS and not lint */ 45*eb9395f8Suwe 46*eb9395f8Suwe#include "SYS.h" 47*eb9395f8Suwe 48*eb9395f8SuweWARN_REFERENCES(sigpending, \ 49*eb9395f8Suwe "warning: reference to compatibility sigpending(); include <signal.h> for correct reference") 50*eb9395f8Suwe 51*eb9395f8SuweENTRY(sigpending) 52*eb9395f8Suwe mov %o0, %o2 ! save pointer 53*eb9395f8Suwe mov SYS_compat_13_sigpending13, %g1 54*eb9395f8Suwe t ST_SYSCALL ! sigpending() 55*eb9395f8Suwe bcc,a 1f ! if success, 56*eb9395f8Suwe st %o0, [%o2] ! store return value 57*eb9395f8Suwe ERROR() 58*eb9395f8Suwe1: 59*eb9395f8Suwe retl ! and return 0 60*eb9395f8Suwe clr %o0 61