|
Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
|
#include <time.h>#include <assert.h>#include <stdio.h>#include <rw_alarm.h>#include <rw_printf.h>#include <signal.h>#include <unistd.h>
Go to the source code of this file.
Macros | |
| #define | _RWSTD_TEST_SRC |
| #define | SIGALRM 14 /* e.g., Solaris */ |
| #define | SIG_DFL (rw_signal_handler_t*)0 |
| #define | SIG_IGN (rw_signal_handler_t*)1 |
| #define | SIG_HOLD (rw_signal_handler_t*)2 |
Functions | |
| _TEST_EXPORT unsigned | rw_alarm (unsigned int nsec, rw_signal_handler_t *handler) |
Variables | |
| rw_signal_handler_t *const | rw_sig_dfl = (rw_signal_handler_t*)0 |
| rw_signal_handler_t *const | rw_sig_ign = (rw_signal_handler_t*)1 |
| rw_signal_handler_t *const | rw_sig_hold = (rw_signal_handler_t*)2 |
| rw_signal_handler_t *const | rw_sig_restore = (rw_signal_handler_t*)3 |
| #define _RWSTD_TEST_SRC |
alarm.cpp - definitions of testsuite helpers
$Id$
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2005-2006 Rogue Wave Software.
| #define SIG_DFL (rw_signal_handler_t*)0 |
| #define SIG_HOLD (rw_signal_handler_t*)2 |
| #define SIG_IGN (rw_signal_handler_t*)1 |
| _TEST_EXPORT unsigned rw_alarm | ( | unsigned int | nsec, |
| rw_signal_handler_t * | handler | ||
| ) |
| rw_signal_handler_t* const rw_sig_dfl = (rw_signal_handler_t*)0 |
| rw_signal_handler_t* const rw_sig_hold = (rw_signal_handler_t*)2 |
| rw_signal_handler_t* const rw_sig_ign = (rw_signal_handler_t*)1 |
| rw_signal_handler_t* const rw_sig_restore = (rw_signal_handler_t*)3 |