Home
last modified time | relevance | path

Searched refs:d_name (Results 1 – 23 of 23) sorted by relevance

/php-src/main/
H A Dphp_scandir.c47 return strcoll((*a)->d_name,(*b)->d_name); in php_alphasort()
91 dsize = sizeof (struct dirent) + ((strlen(dp->d_name) + 1) * sizeof(char)); in php_scandir()
H A Dphp_ini.c664 if (!(p = strrchr(namelist[i]->d_name, '.')) || (p && strcmp(p, ".ini"))) { in php_init_config()
672 snprintf(ini_file, MAXPATHLEN, "%s%s", debpath, namelist[i]->d_name); in php_init_config()
674 snprintf(ini_file, MAXPATHLEN, "%s%c%s", debpath, DEFAULT_SLASH, namelist[i]->d_name); in php_init_config()
H A Dphp_streams.h110 char d_name[MAXPATHLEN]; member
/php-src/ext/spl/
H A Dspl_directory.c274 intern->u.dir.entry.d_name[0] = '\0'; in spl_filesystem_dir_read()
286 return !strcmp(d_name, ".") || !strcmp(d_name, ".."); in spl_filesystem_is_dot()
308 intern->u.dir.entry.d_name[0] = '\0'; in spl_filesystem_dir_open()
510 if (!source->u.dir.entry.d_name[0]) { in spl_filesystem_object_create_type()
589 return d_name[0] == '\0' || spl_filesystem_is_dot(d_name); in spl_filesystem_is_invalid_or_dot()
599 if (intern->u.dir.entry.d_name[0]) { in spl_filesystem_object_get_pathname()
913 RETURN_STRING(intern->u.dir.entry.d_name); in PHP_METHOD()
978 fname = php_basename(intern->u.dir.entry.d_name, strlen(intern->u.dir.entry.d_name), NULL, 0); in PHP_METHOD()
1041 fname = php_basename(intern->u.dir.entry.d_name, strlen(intern->u.dir.entry.d_name), suffix, slen); in PHP_METHOD()
1075 RETURN_STRING(intern->u.dir.entry.d_name); in PHP_METHOD()
[all …]
/php-src/win32/
H A Dreaddir.h29 …char d_name[1]; /* null terminated filename in the current encoding, glyph number <= 255 wchar_t's… member
H A Dreaddir.c115 memmove(dp->dent.d_name, _tmp, reclen + 1); in readdir()
H A Dglob.c632 if (dp->d_name[0] == DOT && *pattern != DOT) in glob3()
635 sc = (uint8_t *) dp->d_name; in glob3()
/php-src/ext/standard/
H A Dftp_fopen_wrapper.c622 if (!php_stream_get_line(innerstream, ent->d_name, sizeof(ent->d_name), &tmp_len)) { in php_ftp_dirstream_read()
626 basename = php_basename(ent->d_name, tmp_len, NULL, 0); in php_ftp_dirstream_read()
628 tmp_len = MIN(sizeof(ent->d_name), ZSTR_LEN(basename) - 1); in php_ftp_dirstream_read()
629 memcpy(ent->d_name, ZSTR_VAL(basename), tmp_len); in php_ftp_dirstream_read()
630 ent->d_name[tmp_len - 1] = '\0'; in php_ftp_dirstream_read()
636 (ent->d_name[tmp_len - 1] == '\n' || ent->d_name[tmp_len - 1] == '\r' || in php_ftp_dirstream_read()
637 ent->d_name[tmp_len - 1] == '\t' || ent->d_name[tmp_len - 1] == ' ')) { in php_ftp_dirstream_read()
638 ent->d_name[--tmp_len] = '\0'; in php_ftp_dirstream_read()
H A Ddir.c335 RETURN_STRINGL(entry.d_name, strlen(entry.d_name)); in PHP_FUNCTION()
/php-src/ext/session/
H A Dmod_files.c309 if (!strncmp(entry->d_name, FILE_PREFIX, sizeof(FILE_PREFIX) - 1)) { in ps_files_cleanup_dir()
310 size_t entry_len = strlen(entry->d_name); in ps_files_cleanup_dir()
315 memcpy(buf + ZSTR_LEN(dirname) + 1, entry->d_name, entry_len); in ps_files_cleanup_dir()
/php-src/main/streams/
H A Dglob_wrapper.c152 PHP_STRLCPY(ent->d_name, path, sizeof(ent->d_name), strlen(path)); in php_glob_stream_read()
H A Dplain_wrapper.c1031 PHP_STRLCPY(ent->d_name, result->d_name, sizeof(ent->d_name), strlen(result->d_name)); in php_plain_files_dirstream_read()
H A Duserspace.c1329 PHP_STRLCPY(ent->d_name, Z_STRVAL(retval), sizeof(ent->d_name), Z_STRLEN(retval)); in php_userstreamop_readdir()
H A Dstreams.c2482 vector[nfiles] = zend_string_init(sdp.d_name, strlen(sdp.d_name), 0);
/php-src/ext/phar/
H A Ddirstream.c108 if (sizeof(dirent->d_name) <= ZSTR_LEN(str_key)) { in phar_dir_read()
113 PHP_STRLCPY(dirent->d_name, ZSTR_VAL(str_key), sizeof(dirent->d_name), ZSTR_LEN(str_key)); in phar_dir_read()
H A Dphar_object.c1474 …len = spprintf(&fname, 0, "%s%c%s", ZSTR_VAL(test_str), DEFAULT_SLASH, intern->u.dir.entry.d_name); in phar_build()
/php-src/ext/pdo_odbc/
H A Dodbc_driver.c423 UCHAR d_name[32]; in odbc_handle_check_liveness() local
439 ret = SQLGetInfo(H->dbc, SQL_DATA_SOURCE_READ_ONLY, d_name, in odbc_handle_check_liveness()
440 sizeof(d_name), &len); in odbc_handle_check_liveness()
/php-src/ext/fileinfo/libmagic/
H A Dreadcdf.c384 char name[__arraycount(d->d_name)]; in cdf_check_summary_info()
399 name[k] = CAST(char, cdf_tole2(d->d_name[k])); in cdf_check_summary_info()
H A Dcdf.h91 uint16_t d_name[32]; member
H A Dcdf.c282 CDF_UNPACKA(d->d_name); in cdf_unpack_dir()
857 cdf_namecmp(name, dir->dir_tab[i - 1].d_name, name_len) in cdf_find_stream()
1401 char name[__arraycount(d->d_name)]; in cdf_dump_dir()
1412 name[j] = (char)CDF_TOLE2(d->d_name[j]); in cdf_dump_dir()
H A Dapprentice.c1495 if ((mflen = snprintf(mfn, sizeof(mfn), "%s/%s", fn, d.d_name)) < 0) { in apprentice_load()
1497 strlen(fn) + strlen(d.d_name) + 2); in apprentice_load()
/php-src/ext/fileinfo/
H A Dlibmagic.patch402 - if (d->d_name[0] == '.')
404 - if (asprintf(&mfn, "%s/%s", fn, d->d_name) < 0) {
406 + if ((mflen = snprintf(mfn, sizeof(mfn), "%s/%s", fn, d.d_name)) < 0) {
408 - strlen(fn) + strlen(d->d_name) + 2);
409 + strlen(fn) + strlen(d.d_name) + 2);
1160 char name[__arraycount(d->d_name)];
/php-src/ext/odbc/
H A Dphp_odbc.c2363 UCHAR d_name[32];
2381 d_name, sizeof(d_name), &len);

Completed in 94 milliseconds