Searched refs:namelist (Results 1 - 8 of 8) sorted by relevance

/PHP_TRUNK/build/
H A Dshtool1676 namelist="$*"
1695 if [ "x$namelist" = "x." ]; then
1699 for pe in `IFS="$IFS/"; echo $namelist`; do
1710 echo "$namelist" |\
1715 echo "$namelist" |\
1722 if [ ".$opt_m" = .yes ] && [ ".$namelist" = .perl ]; then
1753 if [ ".$opt_m" = .yes ] && [ ".$namelist" = .cpp ]; then
1795 for name in $namelist; do
/PHP_TRUNK/main/
H A Dphp_scandir.h45 PHPAPI int php_scandir(const char *dirname, struct dirent **namelist[], int (*selector) (const struct dirent *entry), int (*compare) (const struct dirent **a, const struct dirent **b));
H A Dphp_scandir.c60 PHPAPI int php_scandir(const char *dirname, struct dirent **namelist[], int (*selector) (const struct dirent *entry), int (*compare) (const struct dirent **a, const struct dirent **b)) argument
69 if (namelist == NULL) {
112 *namelist = vector;
115 qsort (*namelist, nfiles, sizeof(struct dirent *), (int (*) (const void *, const void *)) compare);
H A Dphp_ini.c617 struct dirent **namelist; local
645 if (lenpath > 0 && (ndir = php_scandir(debpath, &namelist, 0, php_alphasort)) > 0) {
650 if (!(p = strrchr(namelist[i]->d_name, '.')) || (p && strcmp(p, ".ini"))) {
651 free(namelist[i]);
658 snprintf(ini_file, MAXPATHLEN, "%s%s", debpath, namelist[i]->d_name);
660 snprintf(ini_file, MAXPATHLEN, "%s%c%s", debpath, DEFAULT_SLASH, namelist[i]->d_name);
678 free(namelist[i]);
680 free(namelist);
H A Dphp_streams.h370 PHPAPI int _php_stream_scandir(const char *dirname, zend_string **namelist[], int flags, php_stream_context *context,
372 #define php_stream_scandir(dirname, namelist, context, compare) _php_stream_scandir((dirname), (namelist), 0, (context), (compare))
/PHP_TRUNK/ext/standard/
H A Ddir.c564 zend_string **namelist; local
583 n = php_stream_scandir(dirn, &namelist, context, (void *) php_stream_dirent_alphasort);
585 n = php_stream_scandir(dirn, &namelist, context, NULL);
587 n = php_stream_scandir(dirn, &namelist, context, (void *) php_stream_dirent_alphasortr);
597 add_next_index_str(return_value, namelist[i]);
601 efree(namelist);
/PHP_TRUNK/ext/zip/
H A Dphp_zip.c608 zend_string **namelist; local
632 files_cnt = php_stream_scandir(path, &namelist, NULL, (void *) php_stream_dirent_alphasort);
653 int namelist_len = ZSTR_LEN(namelist[i]);
655 if ((namelist_len == 1 && ZSTR_VAL(namelist[i])[0] == '.') ||
656 (namelist_len == 2 && ZSTR_VAL(namelist[i])[0] == '.' && ZSTR_VAL(namelist[i])[1] == '.')) {
657 zend_string_release(namelist[i]);
664 zend_string_release(namelist[i]);
668 snprintf(fullpath, MAXPATHLEN, "%s%c%s", path, DEFAULT_SLASH, ZSTR_VAL(namelist[i]));
672 zend_string_release(namelist[
[all...]
/PHP_TRUNK/main/streams/
H A Dstreams.c2270 PHPAPI int _php_stream_scandir(const char *dirname, zend_string **namelist[], int flags, php_stream_context *context, argument
2279 if (!namelist) {
2316 *namelist = vector;
2319 qsort(*namelist, nfiles, sizeof(zend_string *), (int(*)(const void *, const void *))compare);

Completed in 20 milliseconds