在我的系统设置中,error函数提供了最有用的结果:错误消息。
With my system setup, the error function provides the most useful result: the error message.
通过使用 sys_nerr 全局变量和 strerror() 函数,将可以很轻松地快速编写一些代码(请参见 清单 5)以打印出系统的所有内置错误消息。
Using the sys_nerr global variable and the strerror() function, you can easily whip up some code (see Listing 5) to print out all of the built-in error messages of the system.
因为exec函数停止特定脚本的执行,系统可能无法感知新的消息。
Because the exec function stops the execution of that particular script, the system may be unaware of the new message.
应用推荐