NULL 等于 0。
诊断为:
Assertion failed: statement . file filename, line number
其中:
statement 是使断言失败的语句
filename 是失败所在文件的名称
line number 是失败所在行的编号
isalnum |
ASCII 字符 A-Z、a-z 和 0-9 |
isalpha |
ASCII 字符 A-Z 和 a-z,以及特定于语言环境的单字节字母 |
iscntrl |
值为 0-31 和 127 的 ASCII 字符 |
islower |
ASCII 字符 a-z |
isprint |
特定于语言环境的单字节可输出字符 |
isupper |
ASCII 字符 A-Z |
错误 |
数学函数 |
编译器模式 |
|
---|---|---|---|
|
|
-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 |
检测到下溢时,除 scalbn 之外的数学函数将 errno 设置为 ERANGE。
在此情况下,它返回第一个参数并发生域错误。
下表列出了 signal 函数可识别的每个信号的语义:
表 E–8 signal 信号的语义
信号 |
不可以。 |
缺省 |
事件 |
---|---|---|---|
SIGHUP |
1 |
退出 |
挂起 |
SIGINT |
2 |
退出 |
interrupt |
SIGQUIT |
3 |
信息转储 |
quit |
SIGILL |
4 |
信息转储 |
非法指令(找到时不重置) |
SIGTRAP |
5 |
信息转储 |
跟踪陷阱(捕获时不重置) |
SIGIOT |
6 |
信息转储 |
IOT 指令 |
SIGABRT |
6 |
信息转储 |
由中止使用 |
SIGEMT |
7 |
信息转储 |
EMT 指令 |
SIGFPE |
8 |
信息转储 |
浮点异常 |
SIGKILL |
9 |
退出 |
中止(找不到,也无法忽略) |
SIGBUS |
10 |
信息转储 |
总线错误 |
SIGSEGV |
11 |
信息转储 |
段违规 |
SIGSYS |
12 |
信息转储 |
系统调用参数错误 |
SIGPIPE |
13 |
退出 |
写在管道上,但无读取者 |
SIGALRM |
14 |
退出 |
报警时钟 |
SIGTERM |
15 |
退出 |
来自中止的软件终止信号 |
SIGUSR1 |
16 |
退出 |
用户定义的信号 1 |
SIGUSR2 |
17 |
退出 |
用户定义的信号 2 |
SIGCLD |
18 |
忽略 |
子项状态更改 |
SIGCHLD |
18 |
忽略 |
子项状态更改别名 |
SIGPWR |
19 |
忽略 |
电源故障,重新启动 |
SIGWINCH |
20 |
忽略 |
窗口大小更改 |
SIGURG |
21 |
忽略 |
紧急套接字条件 |
SIGPOLL |
22 |
退出 |
发生了可轮询事件 |
SIGIO |
22 |
退出 |
可能有套接字 I/O |
SIGSTOP |
23 |
停止 |
停止(找不到,也无法忽略) |
SIGTSTP |
24 |
停止 |
来自 tty 的用户停止请求 |
SIGCONT |
25 |
忽略 |
停止的进程已继续 |
SIGTTIN |
26 |
停止 |
已尝试后台 tty 读 |
SIGTTOU |
27 |
停止 |
已尝试后台 tty 写 |
SIGVTALRM |
28 |
退出 |
虚拟计时器已过期 |
SIGPROF |
29 |
退出 |
文件配置计时器已过期 |
SIGXCPU |
30 |
信息转储 |
已超出 cpu 限制 |
SIGXFSZ |
31 |
信息转储 |
已超出文件大小限制 |
SIGWAITINGT |
32 |
忽略 |
进程的 lwp 受阻 |
参见以上内容。
总是执行 signal(sig,SIG_DFL) 的等效函数。
最后一行不需要以换行符结束。
读该流时,所有字符均出现。
空字符不附加至二进制流。
文件位置指示符最初位于文件结尾。
对文本流的写操作不会导致文件在该点之后被截断,除非硬件设备强制这种情况发生。
除标准错误流 (stderr) 之外,输出流在输出至文件时采用缺省缓冲,在输出至终端时采用行缓冲。标准错误输出流 (stderr) 在缺省情况下不缓冲。
缓冲的输出流保存多个字符,然后将这些字符作为块进行写入。未缓冲的输出流将信息排队,以便立即在目标文件或终端上写入。行缓冲的输出将输出的每行排队,直至行完成(请求换行符)时为止。
由于零长度文件有目录项,因此它确实存在。
有效文件名的长度可以为 1 到 1,023 个字符,可以使用除字符 null 和 /(斜杠)之外的所有字符。
同一文件可以多次打开。
在执行关闭文件的最后一个调用时删除文件。程序不能打开已删除的文件。
如果该文件存在,则将其删除,并且新文件改写先前存在的文件。
%p 的输出与 %x 的相同。
%p 的输入与 %x 的相同。
- 字符表示包括边界的范围,因此 [0-9] 与 [0123456789] 等效。