Lines Matching refs:dirent
45 PHPAPI int php_alphasort(const struct dirent **a, const struct dirent **b) in php_alphasort()
52 …name, struct dirent **namelist[], int (*selector) (const struct dirent *entry), int (*compare) (co… in php_scandir()
55 struct dirent **vector = NULL; in php_scandir()
58 struct dirent *dp; in php_scandir()
70 struct dirent *newdp = NULL; in php_scandir()
77 struct dirent **newv; in php_scandir()
84 newv = (struct dirent **) realloc (vector, vector_size * sizeof (struct dirent *)); in php_scandir()
91 dsize = sizeof (struct dirent) + ((strlen(dp->d_name) + 1) * sizeof(char)); in php_scandir()
92 newdp = (struct dirent *) malloc(dsize); in php_scandir()
98 vector[nfiles++] = (struct dirent *) memcpy(newdp, dp, dsize); in php_scandir()
106 …qsort (*namelist, nfiles, sizeof(struct dirent *), (int (*) (const void *, const void *)) compare); in php_scandir()