| 286 | } |
| 287 | |
| 288 | inline int lstat(const char* path, struct STAT* buf) |
| 289 | { |
| 290 | int rc; |
| 291 | |
| 292 | do |
| 293 | { |
| 294 | #ifdef LSB_BUILD |
| 295 | rc = lstat64(path, buf); |
| 296 | #else |
| 297 | rc = ::lstat(path, buf); |
| 298 | #endif |
| 299 | } while (rc == -1 && SYSCALL_INTERRUPTED(errno)); |
| 300 | |
| 301 | return rc; |
| 302 | } |
| 303 | |
| 304 | #ifdef HAVE_POSIX_FADVISE |
| 305 | inline int posix_fadvise(int fd, off_t offset, off_t len, int advice) |