| 283 | #include "openat.h" |
| 284 | |
| 285 | static inline bool |
| 286 | dot_or_dotdot (char const *file_name) |
| 287 | { |
| 288 | if (file_name[0] == '.') |
| 289 | { |
| 290 | char sep = file_name[(file_name[1] == '.') + 1]; |
| 291 | return (! sep || ISSLASH (sep)); |
| 292 | } |
| 293 | else |
| 294 | return false; |
| 295 | } |
| 296 | |
| 297 | /* A wrapper for readdir so that callers don't see entries for '.' or '..'. */ |
| 298 | static inline struct dirent const * |
no outgoing calls
no test coverage detected