linux错误码 errno值 #define EPERM 1/* Not super-user */ #define ENOENT 2 /* No such file or directory */ #define ESRCH 3/* No such process */ #define EINTR 4/* Interrupted system call */ #define EIO 5/* I/O error */ #define ENXIO 6/* No such device or a
linux命令执行后无论成功与否都有一个返回值:
如果为 0,则表示命令执行成功,其它值则表示错误,
具体的错误码含义如下:
OS error code 1: Operation not permitted
OS error code 2: No such file or directory
OS error code 3: No such process
OS error code 4: Interrupted system call
OS error code 5: In