Implement thunk_sigemptyset()
This commit is contained in:
parent
671e29f99f
commit
b802d81912
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: thunk.h,v 1.29 2011/09/05 11:09:38 reinoud Exp $ */
|
||||
/* $NetBSD: thunk.h,v 1.30 2011/09/05 12:04:03 reinoud Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2011 Jared D. McNeill <jmcneill@invisible.ca>
|
||||
@ -108,6 +108,7 @@ int thunk_sigaltstack(const stack_t *, stack_t *);
|
||||
void thunk_signal(int, void (*)(int));
|
||||
int thunk_sigblock(int);
|
||||
int thunk_sigunblock(int);
|
||||
int thunk_sigemptyset(sigset_t *sa_mask);
|
||||
void thunk_sigaddset(sigset_t *sa_mask, int sig);
|
||||
int thunk_atexit(void (*function)(void));
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: thunk.c,v 1.33 2011/09/05 11:09:38 reinoud Exp $ */
|
||||
/* $NetBSD: thunk.c,v 1.34 2011/09/05 12:04:03 reinoud Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2011 Jared D. McNeill <jmcneill@invisible.ca>
|
||||
@ -28,7 +28,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifdef __NetBSD__
|
||||
__RCSID("$NetBSD: thunk.c,v 1.33 2011/09/05 11:09:38 reinoud Exp $");
|
||||
__RCSID("$NetBSD: thunk.c,v 1.34 2011/09/05 12:04:03 reinoud Exp $");
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -406,6 +406,13 @@ thunk_sigunblock(int sig)
|
||||
return sigprocmask(SIG_UNBLOCK, &set, NULL);
|
||||
}
|
||||
|
||||
int
|
||||
thunk_sigemptyset(sigset_t *sa_mask)
|
||||
{
|
||||
return sigemptyset(sa_mask);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
thunk_sigaddset(sigset_t *sa_mask, int sig)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user