Datasheet

The C and C++ Libraries
ARM DUI 0067D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-95
signal()
returns an error code if you try to register a handler for a signal number greater
than
SIGUSR2
.
The default handling of all recognized signals is to print a diagnostic message and call
exit()
. This default behavior applies at program startup and until you change it.
Caution
The IEEE 754 standard for floating-point processing states that the default action to an
exception is to proceed without a trap. A raised exception in floating-point calculations
does not, by default, generate SIGFPE. You can modify fp error handling by tailoring
the functions and definitions in
fenv.h
. See Tailoring error signaling, error handling,
and program exit on page 4-51, Chapter 5 Floating-point Support, and the chapter on
floating-point in the ADS Developer Guide.
For all the signals in Table 4-18 on page 4-94, when a signal occurs, if the handler points
to a function, the equivalent of
signal(sig, SIG_DFL)
is executed before the call to
handler.
If the SIGILL signal is received by a handler specified to by the
signal()
function, the
default handling is reset.
Input/output characteristics
The generic ARM C library has the following input/output characteristics:
The last line of a text stream does not require a terminating newline character.
Space characters written out to a text stream immediately before a newline
character do appear when read back in.
No null characters are appended to a binary output stream.
The file position indicator of an append mode stream is initially placed at the end
of the file.
A write to a text stream causes the associated file to be truncated beyond the point
where the write occurred if this is the behavior of the device category of the file.
The characteristics of file buffering agree with section 4.9.3 of the ANSI C
standard. If semihosting is used, the maximum number of open files is limited by
the available target memory.
A zero-length file, into which no characters have been written by an output
stream, does exist.