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.
当系统调用中出现错误时,您至少可以用以下两种方式的一种来访问和显示与该错误对应的消息:通过使用perror或strerror函数。
The error page can then display a friendly error message to the user, and then perhaps log the relevant exception information for the system administrator to review at a later time.
错误页面可以显示一个友好的信息给用户,然后可以将相关的异常信息写入日志以供管理员日后查看。
The first line will pop up a message on the control nodes' display (if X Window System is active), letting the user know that the laptop is inactive and needs to be powered down.
第一行将在控制节点的界面上弹出消息(如果 X Window System 处于活动状态),从而让用户知道笔记本处于非活动状态并且需要关闭。
应用推荐