Lines Matching refs:d_name

214 			                                 slash, intern->u.dir.entry.d_name);  in spl_filesystem_object_get_file_name()
223 intern->u.dir.entry.d_name[0] = '\0'; in spl_filesystem_dir_read()
233 static inline int spl_filesystem_is_dot(const char * d_name) /* {{{ */ in spl_filesystem_is_dot() argument
235 return !strcmp(d_name, ".") || !strcmp(d_name, ".."); in spl_filesystem_is_dot()
257 intern->u.dir.entry.d_name[0] = '\0'; in spl_filesystem_dir_open()
266 } while (skip_dots && spl_filesystem_is_dot(intern->u.dir.entry.d_name)); in spl_filesystem_dir_open()
362 } while (skip_dots && spl_filesystem_is_dot(intern->u.dir.entry.d_name)); in spl_filesystem_object_clone()
478 if (!source->u.dir.entry.d_name[0]) { in spl_filesystem_object_create_type()
562 static int spl_filesystem_is_invalid_or_dot(const char * d_name) /* {{{ */ in spl_filesystem_is_invalid_or_dot() argument
564 return d_name[0] == '\0' || spl_filesystem_is_dot(d_name); in spl_filesystem_is_invalid_or_dot()
575 if (intern->u.dir.entry.d_name[0]) { in spl_filesystem_object_get_pathname()
666 if (fsobj->u.dir.entry.d_name[0] == '\0' && fsobj->orig_path == NULL) { in spl_filesystem_object_get_method_check()
807 } while (skip_dots && spl_filesystem_is_dot(intern->u.dir.entry.d_name)); in SPL_METHOD()
864 RETURN_BOOL(intern->u.dir.entry.d_name[0] != '\0'); in SPL_METHOD()
916 RETURN_STRING(intern->u.dir.entry.d_name, 1); in SPL_METHOD()
975 …php_basename(intern->u.dir.entry.d_name, strlen(intern->u.dir.entry.d_name), NULL, 0, &fname, &fle… in SPL_METHOD()
1034 …php_basename(intern->u.dir.entry.d_name, strlen(intern->u.dir.entry.d_name), suffix, slen, &fname,… in SPL_METHOD()
1071 RETURN_STRING(intern->u.dir.entry.d_name, 1); in SPL_METHOD()
1112 RETURN_BOOL(spl_filesystem_is_dot(intern->u.dir.entry.d_name)); in SPL_METHOD()
1304 if (intern->type == SPL_FS_DIR && !intern->file_name && intern->u.dir.entry.d_name[0]) { in SPL_METHOD()
1454 } while (skip_dots && spl_filesystem_is_dot(intern->u.dir.entry.d_name)); in SPL_METHOD()
1496 if (spl_filesystem_is_invalid_or_dot(intern->u.dir.entry.d_name)) { in SPL_METHOD()
1540 …f(&subdir->u.dir.sub_path, 0, "%s%c%s", intern->u.dir.sub_path, slash, intern->u.dir.entry.d_name); in SPL_METHOD()
1542 subdir->u.dir.sub_path_len = strlen(intern->u.dir.entry.d_name); in SPL_METHOD()
1543 subdir->u.dir.sub_path = estrndup(intern->u.dir.entry.d_name, subdir->u.dir.sub_path_len); in SPL_METHOD()
1585 len = spprintf(&sub_name, 0, "%s%c%s", intern->u.dir.sub_path, slash, intern->u.dir.entry.d_name); in SPL_METHOD()
1588 RETURN_STRING(intern->u.dir.entry.d_name, 1); in SPL_METHOD()
1697 return object->u.dir.entry.d_name[0] != '\0' ? SUCCESS : FAILURE; in spl_filesystem_dir_it_valid()
1795 *str_key_len = strlen(object->u.dir.entry.d_name) + 1; in spl_filesystem_tree_it_current_key()
1796 *str_key = estrndup(object->u.dir.entry.d_name, *str_key_len - 1); in spl_filesystem_tree_it_current_key()
1815 } while (spl_filesystem_is_dot(object->u.dir.entry.d_name)); in spl_filesystem_tree_it_move_forward()
1839 } while (spl_filesystem_is_dot(object->u.dir.entry.d_name)); in spl_filesystem_tree_it_rewind()
1910 ZVAL_STRING(retval_ptr, intern->u.dir.entry.d_name, 1); in spl_filesystem_object_cast()
1914 ZVAL_STRING(writeobj, intern->u.dir.entry.d_name, 1); in spl_filesystem_object_cast()