| OLD | NEW |
| 1 #include <ftw.h> | 1 #include <ftw.h> |
| 2 #include <dirent.h> | 2 #include <dirent.h> |
| 3 #include <sys/stat.h> | 3 #include <sys/stat.h> |
| 4 #include <errno.h> | 4 #include <errno.h> |
| 5 #include <unistd.h> | 5 #include <unistd.h> |
| 6 #include <string.h> | 6 #include <string.h> |
| 7 #include <limits.h> | 7 #include <limits.h> |
| 8 #include <pthread.h> | 8 #include <pthread.h> |
| 9 #include "libc.h" | 9 #include "libc.h" |
| 10 | 10 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 errno = ENAMETOOLONG; | 123 errno = ENAMETOOLONG; |
| 124 return -1; | 124 return -1; |
| 125 } | 125 } |
| 126 memcpy(pathbuf, path, l + 1); | 126 memcpy(pathbuf, path, l + 1); |
| 127 | 127 |
| 128 pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs); | 128 pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs); |
| 129 r = do_nftw(pathbuf, fn, fd_limit, flags, NULL); | 129 r = do_nftw(pathbuf, fn, fd_limit, flags, NULL); |
| 130 pthread_setcancelstate(cs, 0); | 130 pthread_setcancelstate(cs, 0); |
| 131 return r; | 131 return r; |
| 132 } | 132 } |
| 133 | |
| 134 LFS64(nftw); | |
| OLD | NEW |