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

/PHP_TRUNK/TSRM/
H A Dreaddir.h23 unsigned short d_reclen; /* length of d_name */
24 char d_name[_MAX_FNAME + 1]; /* filename (null terminated) */ member in struct:dirent
/PHP_TRUNK/main/
H A Dreentrancy.c138 entry->d_name[0] = '\0';
141 if (entry->d_name[0] == '\0') {
H A Dphp_scandir.c55 return strcoll((*a)->d_name,(*b)->d_name);
100 dsize = sizeof (struct dirent) + (((int)strlen(dp->d_name) + 1) * sizeof(char));
H A Dphp_ini.c650 if (!(p = strrchr(namelist[i]->d_name, '.')) || (p && strcmp(p, ".ini"))) {
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);
H A Dphp_streams.h114 char d_name[MAXPATHLEN]; member in struct:_php_stream_dirent
/PHP_TRUNK/main/streams/
H A Dglob_wrapper.c150 PHP_STRLCPY(ent->d_name, path, sizeof(ent->d_name), strlen(path));
H A Dstreams.c2304 vector[nfiles] = zend_string_init(sdp.d_name, strlen(sdp.d_name), 0);
H A Duserspace.c1427 PHP_STRLCPY(ent->d_name, Z_STRVAL(retval), sizeof(ent->d_name), Z_STRLEN(retval));
H A Dplain_wrapper.c881 PHP_STRLCPY(ent->d_name, result->d_name, sizeof(ent->d_name), strlen(result->d_name));
/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dapprentice.c1251 if ((mflen = snprintf(mfn, sizeof(mfn), "%s/%s", fn, d.d_name)) < 0) {
1253 strlen(fn) + strlen(d.d_name) + 2);
H A Dcdf.c263 CDF_UNPACKA(d->d_name);
781 cdf_namecmp(name, dir->dir_tab[i - 1].d_name, name_len)
1268 char name[__arraycount(d->d_name)];
1279 name[j] = (char)CDF_TOLE2(d->d_name[j]);
H A Dcdf.h94 uint16_t d_name[32]; member in struct:__anon2
H A Dreadcdf.c555 char name[__arraycount(d->d_name)];
561 name[k] = (char)cdf_tole2(d->d_name[k]);
/PHP_TRUNK/ext/standard/
H A Ddir.c421 RETURN_STRINGL(entry.d_name, strlen(entry.d_name));
H A Dftp_fopen_wrapper.c626 if (!php_stream_get_line(innerstream, ent->d_name, sizeof(ent->d_name), &tmp_len)) {
630 basename = php_basename(ent->d_name, tmp_len, NULL, 0);
632 tmp_len = MIN(sizeof(ent->d_name), ZSTR_LEN(basename) - 1);
633 memcpy(ent->d_name, ZSTR_VAL(basename), tmp_len);
634 ent->d_name[tmp_len - 1] = '\0';
639 (ent->d_name[tmp_len - 1] == '\n' || ent->d_name[tmp_len - 1] == '\r' ||
640 ent->d_name[tmp_len - 1] == '\t' || ent->d_name[tmp_le
[all...]
/PHP_TRUNK/win32/
H A Dreaddir.c83 strlcpy(dp->dent.d_name, dp->fileinfo.cFileName, _MAX_FNAME+1);
85 dp->dent.d_reclen = (unsigned short)strlen(dp->dent.d_name);
107 strlcpy(dp->dent.d_name, dp->fileinfo.cFileName, _MAX_FNAME+1);
109 dp->dent.d_reclen = (unsigned short)strlen(dp->dent.d_name);
H A Dglob.c664 if (dp->d_name[0] == DOT && *pattern != DOT)
667 sc = (u_char *) dp->d_name;
H A Dreaddir.h27 unsigned short d_reclen; /* length of d_name */
28 char d_name[_MAX_FNAME + 1]; /* filename (null terminated) */ member in struct:dirent
/PHP_TRUNK/ext/phar/
H A Ddirstream.c112 memcpy(((php_stream_dirent *) buf)->d_name, ZSTR_VAL(str_key), to_read);
113 ((php_stream_dirent *) buf)->d_name[to_read + 1] = '\0';
H A Dphar_object.c1480 fname_len = spprintf(&fname, 0, "%s%c%s", test, DEFAULT_SLASH, intern->u.dir.entry.d_name);
/PHP_TRUNK/ext/session/
H A Dmod_files.c303 if (!strncmp(entry->d_name, FILE_PREFIX, sizeof(FILE_PREFIX) - 1)) {
304 size_t entry_len = strlen(entry->d_name);
309 memcpy(buf + dirname_len + 1, entry->d_name, entry_len);
/PHP_TRUNK/ext/odbc/
H A Dphp_odbc.c2654 UCHAR d_name[32]; local
2659 d_name, sizeof(d_name), &len);
/PHP_TRUNK/ext/spl/
H A Dspl_directory.c208 slash, intern->u.dir.entry.d_name);
216 intern->u.dir.entry.d_name[0] = '\0';
226 static inline int spl_filesystem_is_dot(const char * d_name) /* {{{ */ argument
228 return !strcmp(d_name, ".") || !strcmp(d_name, "..");
250 intern->u.dir.entry.d_name[0] = '\0';
259 } while (skip_dots && spl_filesystem_is_dot(intern->u.dir.entry.d_name));
357 } while (skip_dots && spl_filesystem_is_dot(intern->u.dir.entry.d_name));
472 if (!source->u.dir.entry.d_name[0]) {
558 static int spl_filesystem_is_invalid_or_dot(const char * d_name) /* {{{ */ argument
[all...]

Completed in 58 milliseconds