* Our code often opens a path to an optional file, to work on its * contents when we can successfully open it. We can ignore a failure * to open if such an optional file does not exist, but we do want to * report a failure in opening for other reasons (e.g. we got an I/O * error, or the file is there, but we lack the permission to open). * * Call this function after seeing an error from ope
| 1060 | * see if the errno indicates a missing file that we can safely ignore. |
| 1061 | */ |
| 1062 | static inline int is_missing_file_error(int errno_) |
| 1063 | { |
| 1064 | return (errno_ == ENOENT || errno_ == ENOTDIR); |
| 1065 | } |
| 1066 | |
| 1067 | int cmd_main(int, const char **); |
| 1068 |
no outgoing calls
no test coverage detected