diff --git a/src/kernel/libroot/posix/signal/sigset.c b/src/kernel/libroot/posix/signal/sigset.c new file mode 100644 index 0000000000..750e6ca1ee --- /dev/null +++ b/src/kernel/libroot/posix/signal/sigset.c @@ -0,0 +1,40 @@ +#include +#include + +/* + * Copyright (c) 2002, OpenBeOS Project. All rights reserved. + * Distributed under the terms of the OpenBeOS license. + * + * + * sigset.c: + * implements two sigset functions: + * sigemptyset() and sigfillset() + * + * the other three sigset functions + * sigaddset(), sigdelset(), and sigismember() + * are inlined in the header file + * (I have no idea why there is a distinction between + * some being inlined and others not) + * + * + * Author(s): + * Daniel Reinhold (danielre@users.sf.net) + * + */ + + +int +sigemptyset(sigset_t *set) +{ + *set = (sigset_t) 0L; + return 0; +} + + +int +sigfillset(sigset_t *set) +{ + *set = (sigset_t) ~(0UL); + return 0; +} +