/*
 * $Id: sigpending.c,v 1.1 2000/08/07 23:15:04 emmerson Exp $
 *
 * POSIX signal interface layered atop the native signal interface.
 */

#include "udposix.h"
#include <signal.h>


/*
 * Return the signal-mask of blocked and pending signals.
 *
 * For the moment, I don't know how to handle this function other than to
 * return the full set of blocked signals (i.e. they might not be pending).
 */
    int
sigpending(set)
    sigset_t	*set;
{
    sigset_t	out_mask;

    return sigprocmask(0, (sigset_t*)0, set);
}
