4.7.4. __raise()

Thisfunction raises a signal to indicate a runtime anomaly.

Syntax

int __raise(int major, int minor);

major

Is an integer that holds the signal number.

minor

Is an integer or string constant or variable.

Implementation

This function calls the normal C signal mechanism or the defaultsignal handler. See also _ttywrch() for more information.

You can replace the __raise() function by defining:

int __raise(int signal, int argument)

This allows you to bypass the C signal mechanism and its data-consuming signal handler vector, but otherwise gives essentially the same interface as:

void __default_signal_handler(int signal, int arg);

Returns

There are three possibilities for __raise() returncondition:

no return

The handler performs a long jump or restart.

0

The signal was handled.

nonzero

The calling code must pass that return value to the exit code. The default library implementation calls _sys_exit(rc) if __raise() returns a nonzero return code rc.

Copyright © 1999-2001 ARM Limited. All rights reserved.ARM DUI 0067D
Non-Confidential