在我的系统设置中,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.
当系统调用中出现错误时,您至少可以用以下两种方式的一种来访问和显示与该错误对应的消息:通过使用perror或strerror函数。
When an error occurs in a system call, you can access and display a message corresponding to the error in at least one of two ways: by using either the perror or the strerror function.
系统分为三大模块:钩子函数模块、网络通信模块和消息处理模块。
The whole system is divided into three modules: Hook function module, message dealing-with module and net communication module.
系统分为三大模块:钩子函数模块、网络通信模块和消息处理模块。
The whole system is divided into three modules: Hook function module, message dealing-with module and net communication module.
应用推荐