Lines Matching refs:max_len
33 int max_len = -1, len, ret = 0; in iterate_on_dir() local
36 max_len = pathconf(dir_name, _PC_NAME_MAX); in iterate_on_dir()
38 if (max_len == -1) { in iterate_on_dir()
40 max_len = _POSIX_NAME_MAX; in iterate_on_dir()
43 max_len = NAME_MAX; in iterate_on_dir()
45 max_len = 256; in iterate_on_dir()
49 max_len += sizeof(struct dirent); in iterate_on_dir()
51 de = malloc(max_len+1); in iterate_on_dir()
54 memset(de, 0, max_len+1); in iterate_on_dir()
64 if (len > max_len) in iterate_on_dir()
65 len = max_len; in iterate_on_dir()