Lines Matching refs:ftw
132 # define FTW_NAME ftw
185 struct FTW ftw; member
352 int fd = __openat64_nocancel (*dfdp, data->dirbuf + data->ftw.base, in open_dir_stream()
364 name = data->dirbuf + data->ftw.base; in open_dir_stream()
405 new_buflen = data->ftw.base + namlen + 2; in process_entry()
410 *((char *) __mempcpy (data->dirbuf + data->ftw.base, name, namlen)) = '\0'; in process_entry()
473 &data->ftw); in process_entry()
489 int previous_base = data->ftw.base; in ftw_dir()
501 result = (*data->func) (data->dirbuf, st, FTW_DNR, &data->ftw); in ftw_dir()
509 result = (*data->func) (data->dirbuf, st, FTW_D, &data->ftw); in ftw_dir()
537 ++data->ftw.level; in ftw_dir()
543 data->ftw.base = startp - data->dirbuf; in ftw_dir()
596 data->dirbuf[data->ftw.base - 1] = '\0'; in ftw_dir()
597 --data->ftw.level; in ftw_dir()
598 data->ftw.base = previous_base; in ftw_dir()
602 result = (*data->func) (data->dirbuf, st, FTW_DP, &data->ftw); in ftw_dir()
618 if (data->ftw.base == 1) in ftw_dir()
665 data.ftw.level = 0; in ftw_startup()
670 data.ftw.base = cp - data.dirbuf; in ftw_startup()
711 if (data.ftw.base > 0) in ftw_startup()
716 if (data.ftw.base == 1) in ftw_startup()
721 char ch = data.dirbuf[data.ftw.base - 1]; in ftw_startup()
722 data.dirbuf[data.ftw.base - 1] = '\0'; in ftw_startup()
724 data.dirbuf[data.ftw.base - 1] = ch; in ftw_startup()
736 name = data.dirbuf + data.ftw.base; in ftw_startup()
752 &data.ftw); in ftw_startup()
778 &data.ftw); in ftw_startup()