xref: /netbsd-src/lib/libc/compat/arch/hppa/sys/compat_sigprocmask.S (revision 6584ea569e012fd0ff81a624a9d9a99240aa01aa)
1*6584ea56Sandvar/*	$NetBSD: compat_sigprocmask.S,v 1.6 2021/08/09 20:49:08 andvar Exp $	*/
214c25e36Schristos
314c25e36Schristos/*-
414c25e36Schristos * Copyright (c) 2002 The NetBSD Foundation, Inc.
514c25e36Schristos * All rights reserved.
614c25e36Schristos *
714c25e36Schristos * This code is derived from software contributed to The NetBSD Foundation
814c25e36Schristos * by Matt Fredette.
914c25e36Schristos *
1014c25e36Schristos * Redistribution and use in source and binary forms, with or without
1114c25e36Schristos * modification, are permitted provided that the following conditions
1214c25e36Schristos * are met:
1314c25e36Schristos * 1. Redistributions of source code must retain the above copyright
1414c25e36Schristos *    notice, this list of conditions and the following disclaimer.
1514c25e36Schristos * 2. Redistributions in binary form must reproduce the above copyright
1614c25e36Schristos *    notice, this list of conditions and the following disclaimer in the
1714c25e36Schristos *    documentation and/or other materials provided with the distribution.
1814c25e36Schristos *
1914c25e36Schristos * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
2014c25e36Schristos * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2114c25e36Schristos * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2214c25e36Schristos * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
2314c25e36Schristos * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2414c25e36Schristos * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2514c25e36Schristos * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2614c25e36Schristos * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2714c25e36Schristos * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2814c25e36Schristos * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2914c25e36Schristos * POSSIBILITY OF SUCH DAMAGE.
3014c25e36Schristos */
3114c25e36Schristos
3214c25e36Schristos#include <sys/errno.h>
3314c25e36Schristos#include "SYS.h"
3414c25e36Schristos
3514c25e36SchristosWARN_REFERENCES(sigprocmask, \
3614c25e36Schristos    "warning: reference to compatibility sigprocmask(); include <signal.h> for correct reference")
3714c25e36Schristos
3814c25e36SchristosENTRY(sigprocmask, 0)
3914c25e36Schristos	/*
4014c25e36Schristos	 * AFAICT, since the hppa port came after __sigprocmask14,
41*6584ea56Sandvar	 * we shouldn't have to supply the compatibility sigprocmask.
4214c25e36Schristos	 */
43cfd190c7Sskrll	b	__cerror
4414c25e36Schristos	 ldi	EINVAL, %t1
4514c25e36SchristosEXIT(sigprocmask)
46