It seems like the browser you are using has JavaScript disabled. As a result, the site will not function properly. We really want you to enable it so you may experience our site as we intended it. If you have no idea what we are talking about or if you need help, visit http://www.enable-javascript.com×
This website uses cookies. By continuing to browse this site you are agreeing to our use of cookies. Find out more on our cookie page.×

Oops, it seems like you're using an old browser that we do not fully support. If you're able to, please upgrade your browser here.×
This website uses cookies. By continuing to browse this site you are agreeing to our use of cookies. Find out more on our cookie page.×

Include the standard header <signal.h>
to specify how the program handles
signals while it executes. A signal can
report some exceptional behavior within the program, such as division
by zero. Or a signal can report some asynchronous event outside the
program, such as someone striking an interactive attention key on
a keyboard.

You can report any signal by calling
raise. Each implementation
defines what signals it generates (if any) and under what circumstances
it generates them. An implementation can define signals other than
the ones listed here. The standard header
<signal.h> can define
additional macros with names beginning with SIG to specify
the values of additional signals.
All such values are integer constant expressions >= 0.

You can specify a
signal handler for each signal.
A signal handler is a function that the target environment
calls when the corresponding signal occurs.
The target environment suspends execution of the program
until the signal handler returns or calls
longjmp. For maximum
portability, an asynchronous signal handler should only:

The type is the integer type i-type for objects whose
stored value is altered by an assigning operator as an
atomic operation
(an operation that never has its execution suspended
while partially completed).
You declare such objects to communicate between
signal handlers
and the rest of the program.

The function specifies the new handling for signal sig
and returns the previous handling, if successful; otherwise, it returns
SIG_ERR.

If func is
SIG_DFL,
the target environment commences
default handling (as defined by the implementation).

If func is
SIG_IGN,
the target environment ignores subsequent reporting of the signal.

Otherwise, func must be the address of a function returning
void that the target environment calls with a single int
argument. The target environment calls this function to handle the
signal when it is next reported,
with the value of the signal as its argument.

When the target environment calls a signal handler:

The target environment can block further occurrences of the
corresponding signal until the handler returns, calls
longjmp,
or calls signal for that signal.

The target environment can perform default handling of further
occurrences of the corresponding signal.

For signal
SIGILL,
the target environment can leave handling unchanged for that signal.

1. Download the tools

Before you start developing, you'll need to visit the Downloads tab. Here you'll find downloads for the BlackBerry 10 Native SDK, BlackBerry 10 Device Simulator, and some other useful tools.

2. Try the sample apps

Now featuring a filter control, the Sample apps tab allows you to search for samples by name or by feature.

Select either the Core or Cascades radio buttons to display the samples relevant to you.

3. Educate yourself

The Documentation tab contains tons of examples, tutorials, and best practices to guide you along the path towards building an awesome app.

You can access all the documentation that you need in the left-hand navigation.

4. Start developing

The Reference tab is where you'll find essential details about how to use our APIs.

You can use the left-hand navigation to choose how you would like to browse the reference: by module, by topic, or alphabetically. If you have an idea of what you are looking for, start typing it in the Filter box.