📄 perror.3
字号:
.th PERROR III 11/5/73.sh NAMEperror, sys\*_errlist, sys\*_nerr, errno \*- system error messages.sh SYNOPSIS.ft Bperror(s).brchar *s;.s3int sys\*_nerr;.brchar *sys\*_errlist[];.s3int errno;.ft R.br.sh DESCRIPTION.it Perrorproduces a short error messagedescribing the last error encountered during a callto the system from a C program.First the argument string.it sis printed, then a colon, then the message and a new-line.Most usefully, the argument string is the nameof the program which incurred the error.The error number is taken from the external variable.it errno,which is set when errors occur but not cleared whennon-erroneous calls are made..s3To simplify variant formattingof messages, the vector of message strings.it sys\*_errlistis provided;.it errnocan be used as an index in this table to get themessage string without the newline..it Sys\*_nerris the largest message number provided for in the table;it should be checked because newerror codes may be added to the system beforethey are added to the table..sh "SEE ALSO"Introduction to System Calls.sh BUGS
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -