Home
last modified time | relevance | path

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

/PHP-5.3/main/
H A Dphp_scandir.c55 return strcoll((*a)->d_name,(*b)->d_name); in php_alphasort()
100 dsize = sizeof (struct dirent) + ((strlen(dp->d_name) + 1) * sizeof(char)); in php_scandir()
H A Dreentrancy.c138 entry->d_name[0] = '\0'; in php_readdir_r()
141 if (entry->d_name[0] == '\0') { in php_readdir_r()
H A Dphp_ini.c665 if (!(p = strrchr(namelist[i]->d_name, '.')) || (p && strcmp(p, ".ini"))) { in php_init_config()
673 snprintf(ini_file, MAXPATHLEN, "%s%s", php_ini_scanned_path, namelist[i]->d_name); in php_init_config()
675 …snprintf(ini_file, MAXPATHLEN, "%s%c%s", php_ini_scanned_path, DEFAULT_SLASH, namelist[i]->d_name); in php_init_config()
H A Dphp_streams.h112 char d_name[MAXPATHLEN]; member
/PHP-5.3/win32/
H A Dreaddir.c83 strlcpy(dp->dent.d_name, dp->fileinfo.cFileName, _MAX_FNAME+1); in readdir()
85 dp->dent.d_reclen = strlen(dp->dent.d_name); in readdir()
107 strlcpy(dp->dent.d_name, dp->fileinfo.cFileName, _MAX_FNAME+1); in readdir_r()
109 dp->dent.d_reclen = strlen(dp->dent.d_name); in readdir_r()
H A Dreaddir.h28 char d_name[_MAX_FNAME + 1]; /* filename (null terminated) */ member
H A Dglob.c661 if (dp->d_name[0] == DOT && *pattern != DOT)
664 sc = (u_char *) dp->d_name;
/PHP-5.3/TSRM/
H A Dreaddir.h24 char d_name[_MAX_FNAME + 1]; /* filename (null terminated) */ member
/PHP-5.3/ext/spl/
H A Dspl_directory.c224 intern->u.dir.entry.d_name[0] = '\0'; in spl_filesystem_dir_read()
236 return !strcmp(d_name, ".") || !strcmp(d_name, ".."); in spl_filesystem_is_dot()
258 intern->u.dir.entry.d_name[0] = '\0'; in spl_filesystem_dir_open()
479 if (!source->u.dir.entry.d_name[0]) { in spl_filesystem_object_create_type()
565 return d_name[0] == '\0' || spl_filesystem_is_dot(d_name); in spl_filesystem_is_invalid_or_dot()
576 if (intern->u.dir.entry.d_name[0]) { in spl_filesystem_object_get_pathname()
906 RETURN_STRING(intern->u.dir.entry.d_name, 1); in SPL_METHOD()
965 …php_basename(intern->u.dir.entry.d_name, strlen(intern->u.dir.entry.d_name), NULL, 0, &fname, &fle… in SPL_METHOD()
1024 …php_basename(intern->u.dir.entry.d_name, strlen(intern->u.dir.entry.d_name), suffix, slen, &fname,… in SPL_METHOD()
1061 RETURN_STRING(intern->u.dir.entry.d_name, 1); in SPL_METHOD()
[all …]
/PHP-5.3/ext/standard/
H A Dftp_fopen_wrapper.c626 if (!php_stream_get_line(innerstream, ent->d_name, sizeof(ent->d_name), &tmp_len)) { in php_ftp_dirstream_read()
630 php_basename(ent->d_name, tmp_len, NULL, 0, &basename, &basename_len TSRMLS_CC); in php_ftp_dirstream_read()
640 tmp_len = MIN(sizeof(ent->d_name), basename_len - 1); in php_ftp_dirstream_read()
641 memcpy(ent->d_name, basename, tmp_len); in php_ftp_dirstream_read()
642 ent->d_name[tmp_len - 1] = '\0'; in php_ftp_dirstream_read()
648 (ent->d_name[tmp_len] == '\n' || ent->d_name[tmp_len] == '\r' || in php_ftp_dirstream_read()
649 ent->d_name[tmp_len] == '\t' || ent->d_name[tmp_len] == ' ')) { in php_ftp_dirstream_read()
650 ent->d_name[tmp_len--] = '\0'; in php_ftp_dirstream_read()
H A Ddir.c414 RETURN_STRINGL(entry.d_name, strlen(entry.d_name), 1); in PHP_NAMED_FUNCTION()
/PHP-5.3/ext/session/
H A Dmod_files.c236 if (!strncmp(entry->d_name, FILE_PREFIX, sizeof(FILE_PREFIX) - 1)) { in ps_files_cleanup_dir()
237 size_t entry_len = strlen(entry->d_name); in ps_files_cleanup_dir()
242 memcpy(buf + dirname_len + 1, entry->d_name, entry_len); in ps_files_cleanup_dir()
/PHP-5.3/main/streams/
H A Dglob_wrapper.c150 PHP_STRLCPY(ent->d_name, path, sizeof(ent->d_name), strlen(path)); in php_glob_stream_read()
H A Dplain_wrapper.c825 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.c1409 PHP_STRLCPY(ent->d_name, Z_STRVAL_P(retval), sizeof(ent->d_name), Z_STRLEN_P(retval)); in php_userstreamop_readdir()
H A Dstreams.c2300 vector[nfiles] = estrdup(sdp.d_name);
/PHP-5.3/ext/fileinfo/libmagic/
H A Dreadcdf.c296 char name[__arraycount(d->d_name)];
301 name[k] = (char)cdf_tole2(d->d_name[k]);
H A Dcdf.h96 uint16_t d_name[32]; member
H A Dcdf.c258 CDF_UNPACKA(d->d_name); in cdf_unpack_dir()
741 cdf_namecmp(name, dir->dir_tab[i - 1].d_name, sizeof(name)) in cdf_read_summary_info()
1151 char name[__arraycount(d->d_name)]; in cdf_dump_dir()
1161 name[j] = (char)CDF_TOLE2(d->d_name[j]); in cdf_dump_dir()
H A Dapprentice.c787 if ((mflen = snprintf(mfn, sizeof(mfn), "%s/%s", fn, d.d_name)) < 0) {
788 file_oomem(ms, strlen(fn) + strlen(d.d_name) + 2);
/PHP-5.3/ext/phar/
H A Ddirstream.c120 memcpy(((php_stream_dirent *) buf)->d_name, str_key, to_read); in phar_dir_read()
122 ((php_stream_dirent *) buf)->d_name[to_read + 1] = '\0'; in phar_dir_read()
H A Dphar_object.c1536 fname_len = spprintf(&fname, 0, "%s%c%s", test, DEFAULT_SLASH, intern->u.dir.entry.d_name);
/PHP-5.3/ext/fileinfo/
H A Dlibmagic.patch364 - if (asprintf(&mfn, "%s/%s", fn, d->d_name) < 0) {
366 - strlen(fn) + strlen(d->d_name) + 2);
368 + if ((mflen = snprintf(mfn, sizeof(mfn), "%s/%s", fn, d.d_name)) < 0) {
369 + file_oomem(ms, strlen(fn) + strlen(d.d_name) + 2);
862 char name[__arraycount(d->d_name)];
/PHP-5.3/ext/odbc/
H A Dphp_odbc.c2581 UCHAR d_name[32]; in odbc_do_connect() local
2586 d_name, sizeof(d_name), &len); in odbc_do_connect()

Completed in 117 milliseconds