Lines Matching refs:dirent
47 PHPAPI int php_alphasort(const struct dirent **a, const struct dirent **b) in php_alphasort()
54 …name, struct dirent **namelist[], int (*selector) (const struct dirent *entry), int (*compare) (co… in php_scandir()
57 struct dirent **vector = NULL; in php_scandir()
60 struct dirent *dp; in php_scandir()
72 struct dirent *newdp = NULL; in php_scandir()
79 struct dirent **newv; in php_scandir()
86 newv = (struct dirent **) realloc (vector, vector_size * sizeof (struct dirent *)); in php_scandir()
93 dsize = sizeof (struct dirent) + ((strlen(dp->d_name) + 1) * sizeof(char)); in php_scandir()
94 newdp = (struct dirent *) malloc(dsize); in php_scandir()
100 vector[nfiles++] = (struct dirent *) memcpy(newdp, dp, dsize); in php_scandir()
108 …qsort (*namelist, nfiles, sizeof(struct dirent *), (int (*) (const void *, const void *)) compare); in php_scandir()