Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Macros | Functions | Variables
alarm.cpp File Reference
#include <time.h>
#include <assert.h>
#include <stdio.h>
#include <rw_alarm.h>
#include <rw_printf.h>
#include <signal.h>
#include <unistd.h>
Include dependency graph for alarm.cpp:

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
 

Macro Definition Documentation

◆ _RWSTD_TEST_SRC

#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.

Definition at line 30 of file alarm.cpp.

◆ SIG_DFL

#define SIG_DFL   (rw_signal_handler_t*)0

Definition at line 136 of file alarm.cpp.

◆ SIG_HOLD

#define SIG_HOLD   (rw_signal_handler_t*)2

Definition at line 144 of file alarm.cpp.

◆ SIG_IGN

#define SIG_IGN   (rw_signal_handler_t*)1

Definition at line 140 of file alarm.cpp.

◆ SIGALRM

#define SIGALRM   14 /* e.g., Solaris */

Definition at line 132 of file alarm.cpp.

Function Documentation

◆ rw_alarm()

_TEST_EXPORT unsigned rw_alarm ( unsigned int  nsec,
rw_signal_handler_t *  handler 
)

Definition at line 173 of file alarm.cpp.

Variable Documentation

◆ rw_sig_dfl

rw_signal_handler_t* const rw_sig_dfl = (rw_signal_handler_t*)0

Definition at line 47 of file alarm.cpp.

◆ rw_sig_hold

rw_signal_handler_t* const rw_sig_hold = (rw_signal_handler_t*)2

Definition at line 53 of file alarm.cpp.

◆ rw_sig_ign

rw_signal_handler_t* const rw_sig_ign = (rw_signal_handler_t*)1

Definition at line 50 of file alarm.cpp.

◆ rw_sig_restore

rw_signal_handler_t* const rw_sig_restore = (rw_signal_handler_t*)3

Definition at line 56 of file alarm.cpp.