1*83762a71Sderaadt/* $OpenBSD: sigpending.S,v 1.3 2023/12/10 16:45:52 deraadt Exp $ */ 29674f442Sdrahn/* 39674f442Sdrahn * Copyright (c) 2012 Mark Kettenis 49674f442Sdrahn * 59674f442Sdrahn * Permission to use, copy, modify, and distribute this software for any 69674f442Sdrahn * purpose with or without fee is hereby granted, provided that the above 79674f442Sdrahn * copyright notice and this permission notice appear in all copies. 89674f442Sdrahn * 99674f442Sdrahn * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 109674f442Sdrahn * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 119674f442Sdrahn * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 129674f442Sdrahn * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 139674f442Sdrahn * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 149674f442Sdrahn * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 159674f442Sdrahn * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 169674f442Sdrahn */ 179674f442Sdrahn 189674f442Sdrahn/* sigpending(sigset_t *set); */ 199674f442Sdrahn 209674f442Sdrahn#include "SYS.h" 219674f442Sdrahn 229674f442Sdrahn .text 231a8dbaacSderaadtSYSENTRY(sigpending) 241a8dbaacSderaadt RETGUARD_SETUP(sigpending, %r11) 251a8dbaacSderaadt li %r0, SYS_sigpending 261a8dbaacSderaadt 279674f442Sdrahn mr %r5, %r3 28*83762a71Sderaadt99: sc 29*83762a71Sderaadt PINSYSCALL(SYS_sigpending, 99b) 309674f442Sdrahn stw %r3, 0(%r5) 319674f442Sdrahn li %r3, 0 321a8dbaacSderaadt RETGUARD_CHECK(sigpending, %r11) 339674f442Sdrahn blr 341a8dbaacSderaadtSYSCALL_END_HIDDEN(sigpending) 35