lib: Add sigfillset stub.
* lib/stub/sigfillset.c: New file. * include/signal.h (sigfillset): Add prototype. * build-aux/configure-lib.sh (libc_gnu_SOURCES): Add it.
This commit is contained in:
parent
9c835b1a9f
commit
e65d24ed74
|
@ -396,6 +396,7 @@ lib/stub/setvbuf.c
|
|||
lib/stub/sigaddset.c
|
||||
lib/stub/sigblock.c
|
||||
lib/stub/sigdelset.c
|
||||
lib/stub/sigfillset.c
|
||||
lib/stub/sigsetmask.c
|
||||
lib/stub/sin.c
|
||||
lib/stub/sqrt.c
|
||||
|
|
|
@ -251,6 +251,7 @@ int sigaction (int signum, struct sigaction const *act, struct sigaction *oldact
|
|||
int sigaddset (sigset_t *set, int signum);
|
||||
int sigdelset (sigset_t *set, int signum);
|
||||
int sigemptyset (sigset_t *set);
|
||||
int sigfillset (sigset_t *set);
|
||||
#if __MESC__
|
||||
void *signal (int signum, void *action);
|
||||
#else
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
/* -*-comment-start: "//";comment-end:""-*-
|
||||
* GNU Mes --- Maxwell Equations of Software
|
||||
* Copyright © 2022 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
||||
*
|
||||
* This file is part of GNU Mes.
|
||||
*
|
||||
* GNU Mes is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or (at
|
||||
* your option) any later version.
|
||||
*
|
||||
* GNU Mes is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <mes/lib.h>
|
||||
#include <signal.h>
|
||||
|
||||
int
|
||||
sigfillset (sigset_t *set)
|
||||
{
|
||||
static int stub = 0;
|
||||
if (__mes_debug () && !stub)
|
||||
eputs ("sigfillset stub\n");
|
||||
stub = 1;
|
||||
errno = 0;
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue