NULL equals 0.
The diagnostic is:
Assertion failed: statement. file filename, line number
Where:
statement is the statement which failed the assertion
filename is the name of the file containing the failure
line number is the number of the line on which the failure occurs
isalnum |
ASCII characters A-Z, a-z and 0-9 |
isalpha |
ASCII characters A-Z and a-z, plus locale-specific single-byte letters |
iscntrl |
ASCII characters with value 0-31 and 127 |
islower |
ASCII characters a-z |
isprint |
Locale-specific single-byte printable characters |
isupper |
ASCII characters A-Z |
Error |
Math Functions |
Compiler Modes |
|
---|---|---|---|
|
|
-Xs, -Xt |
-Xa, -Xc |
DOMAIN |
acos(|x|>1) |
0.0 |
0.0 |
DOMAIN |
asin(|x|>1) |
0.0 |
0.0 |
DOMAIN |
atan2(+-0,+-0) |
0.0 |
0.0 |
DOMAIN |
y0(0) |
-HUGE |
-HUGE_VAL |
DOMAIN |
y0(x<0) |
-HUGE |
-HUGE_VAL |
DOMAIN |
y1(0) |
-HUGE |
-HUGE_VAL |
DOMAIN |
y1(x<0) |
-HUGE |
-HUGE_VAL |
DOMAIN |
yn(n,0) |
-HUGE |
-HUGE_VAL |
DOMAIN |
yn(n,x<0) |
-HUGE |
-HUGE_VAL |
DOMAIN |
log(x<0) |
-HUGE |
-HUGE_VAL |
DOMAIN |
log10(x<0) |
-HUGE |
-HUGE_VAL |
DOMAIN |
pow(0,0) |
0.0 |
1.0 |
DOMAIN |
pow(0,neg) |
0.0 |
-HUGE_VAL |
DOMAIN |
pow(neg,non-integal) |
0.0 |
NaN |
DOMAIN |
sqrt(x<0) |
0.0 |
NaN |
DOMAIN |
fmod(x,0) |
x |
NaN |
DOMAIN |
remainder(x,0) |
NaN |
NaN |
DOMAIN |
acosh(x<1) |
NaN |
NaN |
DOMAIN |
atanh(|x|>1) |
NaN |
NaN |
Mathematics functions, except scalbn, set errno to ERANGE when underflow is detected.
In this case, it returns the first argument with domain error.
The following table shows the semantics for each signal as recognized by the signal function:
Table E–8 Semantics for signal Signals
Signal |
No. |
Default |
Event |
---|---|---|---|
SIGHUP |
1 |
Exit |
hangup |
SIGINT |
2 |
Exit |
interrupt |
SIGQUIT |
3 |
Core |
quit |
SIGILL |
4 |
Core |
illegal instruction (not reset when caught) |
SIGTRAP |
5 |
Core |
trace trap (not reset when caught) |
SIGIOT |
6 |
Core |
IOT instruction |
SIGABRT |
6 |
Core |
Used by abort |
SIGEMT |
7 |
Core |
EMT instruction |
SIGFPE |
8 |
Core |
floating point exception |
SIGKILL |
9 |
Exit |
kill (cannot be caught or ignored) |
SIGBUS |
10 |
Core |
bus error |
SIGSEGV |
11 |
Core |
segmentation violation |
SIGSYS |
12 |
Core |
bad argument to system call |
SIGPIPE |
13 |
Exit |
write on a pipe with no one to read it |
SIGALRM |
14 |
Exit |
alarm clock |
SIGTERM |
15 |
Exit |
software termination signal from kill |
SIGUSR1 |
16 |
Exit |
user defined signal 1 |
SIGUSR2 |
17 |
Exit |
user defined signal 2 |
SIGCLD |
18 |
Ignore |
child status change |
SIGCHLD |
18 |
Ignore |
child status change alias |
SIGPWR |
19 |
Ignore |
power-fail restart |
SIGWINCH |
20 |
Ignore |
window size change |
SIGURG |
21 |
Ignore |
urgent socket condition |
SIGPOLL |
22 |
Exit |
pollable event occurred |
SIGIO |
22 |
Exit |
socket I/O possible |
SIGSTOP |
23 |
Stop |
stop (cannot be caught or ignored) |
SIGTSTP |
24 |
Stop |
user stop requested from tty |
SIGCONT |
25 |
Ignore |
stopped process has been continued |
SIGTTIN |
26 |
Stop |
background tty read attempted |
SIGTTOU |
27 |
Stop |
background tty write attempted |
SIGVTALRM |
28 |
Exit |
virtual timer expired |
SIGPROF |
29 |
Exit |
profiling timer expired |
SIGXCPU |
30 |
Core |
exceeded cpu limit |
SIGXFSZ |
31 |
Core |
exceeded file size limit |
SIGWAITINGT |
32 |
Ignore |
process’s lwps are blocked |
See above.
The equivalent of signal(sig,SIG_DFL) is always executed.
Default handling is not reset in SIGILL.
The last line does not need to end in a newline.
All characters appear when the stream is read.
No null characters are appended to a binary stream.
The file position indicator is initially positioned at the end of the file.
A write on a text stream does not cause a file to be truncated beyond that point unless a hardware device forces it to happen.
Output streams, with the exception of the standard error stream (stderr), are by default-buffered if the output refers to a file, and line-buffered if the output refers to a terminal. The standard error output stream (stderr) is by default unbuffered.
A buffered output stream saves many characters, and then writes the characters as a block. An unbuffered output stream queues information for immediate writing on the destination file or terminal immediately. Line-buffered output queues each line of output until the line is complete (a newline character is requested).
A zero-length file does exist since it has a directory entry.
A valid file name can be from 1 to 1,023 characters in length and can use all character except the characters null and / (slash).
The same file can be opened multiple times.
The file is deleted on the last call which closes the file. A program cannot open a file which has already been removed.
If the file exists, it is removed and the new file is written over the previously existing file.
The output for %p is equivalent to %x.
The input for %p is equivalent to %x.
The- character indicates an inclusive range; thus, [0-9] is equivalent to [0123456789].