/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* Copyright 2013 David Hoeppner. All rights reserved.
*/
/*
* Queue maximum number of signals and test if we can queue more signals then
* allowed.
*/
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
int nreceived = 0;
static void
{
}
static void
{
(void) exit(-1);
}
static void
{
}
/* ARGSUSED */
static void
{
nreceived++;
}
static void
sigqueue_maximum_test(void)
{
long sigqueue_max, i;
int error;
/*
* Get the maximum size of the queue.
*/
if (sigqueue_max == -1) {
}
/*
* Put the signal on hold.
*/
if (error == -1) {
}
if (error == -1) {
}
/*
* Set signal handler.
*/
if (error == -1) {
}
/*
* Fill the signal queue to the maximum.
*/
for (i = 0; i < sigqueue_max; i++) {
if (error == -1) {
}
}
/*
* Send a further signal and test if we get the expected
* error.
*/
if (error != -1) {
}
/*
* Unblock the signals and check if we received all messages
* from the signal queue.
*/
if (error == -1) {
}
if (nreceived != sigqueue_max) {
}
}
static void
run_tests(void)
{
}
/* ARGSUSED */
int
{
run_tests();
return (EXIT_SUCCESS);
}