13.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> <strong>User</strong> <strong>Guide</strong>13.2.17. setjmp.hThe setjmp and longjmp in this header file implement a primitive <strong>for</strong>m of non-local jumps, which maybe used to handle exceptional situations. This facility is traditionally considered more portable thansignal.hint setjmp(jmp_bufenv)void longjmp(jmp_bufenv, int status)Records its caller's environment in env and returns 0.Restores the environment previously saved with a call to setjmp().13.2.18. signal.hSignals are possible asynchronous events that may require special processing. Each signal is named bya number. The following signals are defined:SIGINTSIGILLSIGFPESIGSEGVSIGTERMSIGABRT123456Receipt of an interactive attention signalDetection of an invalid function messageAn erroneous arithmetic operation (<strong>for</strong> example, zero divide, overflow)An invalid access to storageA termination request sent to the programAbnormal termination, such as is initiated by the abort functionThe next function sends the signal sig to the program:int raise(int sig)The next function determines how subsequent signals will be handled:signalfunction *signal (int, signalfunction *);The first argument specifies the signal, the second argument points to the signal-handler function or hasone of the following values:SIG_DFLSIG_IGNDefault behavior is usedThe signal is ignoredThe function returns the previous value of signalfunction <strong>for</strong> the specific signal, or SIG_ERR if anerror occurs.13.2.19. stdarg.hThe facilities in this header file gives you a portable way to access variable arguments lists, such asneeded <strong>for</strong> as fprintf and vfprintf. va_copy is new in ISO C99. This header file contains thefollowing macros:754

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!