| /PHP_TRUNK/TSRM/ |
| H A D | readdir.h | 34 char *dir; /* the dir we are reading */ member in struct:__anon3
|
| H A D | tsrm_virtual_cwd.c | 1180 * This can happen under solaris when a dir does not have read permissions 1870 char *ptr, *dir; local 1876 dir = CWDG(cwd).cwd; 1878 if (*dir == '\'') extra+=3; 1879 dir++; 1883 dir = CWDG(cwd).cwd; 1897 switch (*dir) { 1904 *ptr++ = *dir; 1906 dir++;
|
| /PHP_TRUNK/ext/phar/tests/files/ |
| H A D | pear2coverage.phar.php | 573 $dir = $testpath; 575 $globdirs = glob($dir . '/*', GLOB_ONLYDIR); variable 578 $dir = $dirs[$index++]; 582 $dir = $dirs[$index]; 589 foreach ($dirs as $dir) { 590 $globbie = glob($dir . '/*.xdebug'); 855 $dir = $testpath; 857 $globdirs = glob($dir . '/*', GLOB_ONLYDIR); variable 860 $dir = $dirs[$index++]; 864 $dir 570 $dir = $testpath; variable 579 $dir = $dirs[$index]; variable 852 $dir = $testpath; variable 861 $dir = $dirs[$index]; variable [all...] |
| /PHP_TRUNK/ext/spl/examples/ |
| H A D | phar_from_dir.php | 33 $dir = new RecursiveDirectoryIterator($argv[2]); variable 34 $dir = new RecursiveIteratorIterator($dir); variable 37 $dir = new RegexIterator($dir, '/'.$argv[3].'/'); variable 42 foreach($dir as $file)
|
| /PHP_TRUNK/win32/ |
| H A D | readdir.c | 22 DIR *opendir(const char *dir) argument 31 if (!VCWD_REALPATH(dir, resolved_path_buff)) { 63 dp->dir = strdup(resolved_path_buff); 128 if (dp->dir) 129 free(dp->dir); 148 filespec = (char *)malloc(strlen(dp->dir) + 2 + 1); 153 strcpy(filespec, dp->dir);
|
| H A D | readdir.h | 38 char *dir; /* the dir we are reading */ member in struct:__anon567
|
| /PHP_TRUNK/ext/fileinfo/libmagic/ |
| H A D | apptype.c | 49 char path[_MAX_PATH], drive[_MAX_DRIVE], dir[_MAX_DIR], local 61 _splitpath(filename, drive, dir, fname, ext); 63 (*dir == '\0') ? "./" : dir,
|
| H A D | cdf.c | 595 const cdf_sat_t *sat, cdf_dir_t *dir) 608 dir->dir_len = ns * nd; 609 dir->dir_tab = CAST(cdf_directory_t *, 610 calloc(dir->dir_len, sizeof(dir->dir_tab[0]))); 611 if (dir->dir_tab == NULL) 615 free(dir->dir_tab); 621 DPRINTF(("Read dir loop limit")); 630 cdf_unpack_dir(&dir->dir_tab[i * nd + j], 636 for (i = 0; i < dir 594 cdf_read_dir(const cdf_info_t *info, const cdf_header_t *h, const cdf_sat_t *sat, cdf_dir_t *dir) argument 690 cdf_read_short_stream(const cdf_info_t *info, const cdf_header_t *h, const cdf_sat_t *sat, const cdf_dir_t *dir, cdf_stream_t *scn) argument 728 cdf_read_summary_info(const cdf_info_t *info, const cdf_header_t *h, const cdf_sat_t *sat, const cdf_sat_t *ssat, const cdf_stream_t *sst, const cdf_dir_t *dir, cdf_stream_t *scn) argument 1140 cdf_dump_dir(const cdf_info_t *info, const cdf_header_t *h, const cdf_sat_t *sat, const cdf_sat_t *ssat, const cdf_stream_t *sst, const cdf_dir_t *dir) argument 1302 cdf_dir_t dir; local [all...] |
| H A D | readcdf.c | 229 cdf_dir_t dir; local 261 if ((i = cdf_read_dir(&info, &h, &sat, &dir)) == -1) { 266 if ((i = cdf_read_short_stream(&info, &h, &sat, &dir, &sst)) == -1) { 271 cdf_dump_dir(&info, &h, &sat, &ssat, &sst, &dir); 274 if ((i = cdf_read_summary_info(&info, &h, &sat, &ssat, &sst, &dir, 294 for (j = 0; j < dir.dir_len; j++) { 295 d = &dir.dir_tab[j]; 315 free(dir.dir_tab);
|
| /PHP_TRUNK/ext/gd/libgd/ |
| H A D | gd_topal.c | 1381 int dir; /* +1 or -1 depending on direction */ local 1382 int dir3; /* 3*dir, for advancing inptr & errorptr */ 1413 dir = -1; 1423 dir = 1; 1449 inptr += dir; 1450 outptr += dir; 1554 inptr += dir; /* Advance pixel pointers to next column */ 1556 outptr += dir;
|
| H A D | gdft.c | 353 char *name, *path=NULL, *dir; local 391 for (dir = strtok (path, PATHSEPARATOR); dir; dir = strtok (0, PATHSEPARATOR)) { 392 if (!strcmp(dir, ".")) { 395 dir = VCWD_GETCWD(cur_dir, MAXPATHLEN); 397 dir = VCWD_GETWD(cur_dir); 399 if (!dir) { 405 snprintf(fullname, sizeof(fullname) - 1, "%s/%s%s", dir, name, ext); \
|
| /PHP_TRUNK/ext/ftp/ |
| H A D | ftp.c | 487 ftp_chdir(ftpbuf_t *ftp, const char *dir) argument 498 if (!ftp_putcmd(ftp, "CWD", dir)) { 535 ftp_mkdir(ftpbuf_t *ftp, const char *dir) argument 542 if (!ftp_putcmd(ftp, "MKD", dir)) { 548 /* copy out the dir from response */ 550 mkd = estrdup(dir); 567 ftp_rmdir(ftpbuf_t *ftp, const char *dir) argument 572 if (!ftp_putcmd(ftp, "RMD", dir)) {
|
| H A D | php_ftp.c | 486 char *dir; local 489 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &z_ftp, &dir, &dir_len) == FAILURE) { 496 if (!ftp_chdir(ftp, dir)) { 556 char *dir, *tmp; local 559 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &z_ftp, &dir, &dir_len) == FAILURE) { 566 if (NULL == (tmp = ftp_mkdir(ftp, dir))) { 581 char *dir; local 584 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &z_ftp, &dir, &dir_len) == FAILURE) { 591 if (!ftp_rmdir(ftp, dir)) { 660 char **nlist, **ptr, *dir; local 688 char **llist, **ptr, *dir; local [all...] |
| /PHP_TRUNK/ext/gettext/ |
| H A D | gettext.c | 55 ZEND_ARG_INFO(0, dir) 244 /* {{{ proto string bindtextdomain(string domain_name, string dir) 245 Bind to the text domain domain_name, looking for translations in dir. Returns the current domain */ 248 char *domain, *dir; local 252 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &domain, &domain_len, &dir, &dir_len) == FAILURE) { 263 if (dir[0] != '\0' && strcmp(dir, "0")) { 264 if (!VCWD_REALPATH(dir, dir_name)) {
|
| /PHP_TRUNK/ext/spl/ |
| H A D | spl_directory.h | 86 } dir; member in union:_spl_filesystem_object::__anon200
|
| /PHP_TRUNK/ext/standard/ |
| H A D | php_dir.h | 25 PHP_MINIT_FUNCTION(dir); variable 26 PHP_RINIT_FUNCTION(dir); variable
|
| H A D | file.c | 798 /* {{{ proto string tempnam(string dir, string prefix) 802 char *dir, *prefix; local 809 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ps", &dir, &dir_len, &prefix, &prefix_len) == FAILURE) { 813 if (php_check_open_basedir(dir TSRMLS_CC)) { 824 if ((fd = php_open_temporary_fd_ex(dir, p, &opened_path, 1 TSRMLS_CC)) >= 0) { 1287 PHPAPI int php_mkdir_ex(char *dir, long mode, int options TSRMLS_DC) argument 1291 if (php_check_open_basedir(dir TSRMLS_CC)) { 1295 if ((ret = VCWD_MKDIR(dir, (mode_t)mode)) < 0 && (options & REPORT_ERRORS)) { 1302 PHPAPI int php_mkdir(char *dir, long mode TSRMLS_DC) argument 1304 return php_mkdir_ex(dir, mod 1312 char *dir; local 1333 char *dir; local [all...] |
| /PHP_TRUNK/main/streams/ |
| H A D | plain_wrapper.c | 184 PHPAPI php_stream *_php_stream_fopen_temporary_file(const char *dir, const char *pfx, char **opened_path STREAMS_DC TSRMLS_DC) argument 186 int fd = php_open_temporary_fd(dir, pfx, opened_path TSRMLS_CC); 816 DIR *dir = (DIR*)stream->abstract; local 826 if (php_readdir_r(dir, (struct dirent *)entry, &result) == 0 && result) { 847 "dir", 857 DIR *dir = NULL; local 870 dir = VCWD_OPENDIR(path); 873 if (!dir) { 877 if (dir && dir 1150 php_plain_files_mkdir(php_stream_wrapper *wrapper, char *dir, int mode, int options, php_stream_context *context TSRMLS_DC) argument [all...] |
| /PHP_TRUNK/sapi/roxen/ |
| H A D | roxen.c | 577 char *dir; local
|
| /PHP_TRUNK/ext/phar/ |
| H A D | dirstream.c | 33 "phar dir", 190 * a list of files/directories that are "in" the directory represented by dir 192 static php_stream *phar_make_dirstream(char *dir, HashTable *manifest TSRMLS_DC) /* {{{ */ argument 195 int dirlen = strlen(dir); 204 if ((*dir == '/' && dirlen == 1 && (manifest->nNumOfElements == 0)) || (dirlen >= sizeof(".phar")-1 && !memcmp(dir, ".phar", sizeof(".phar")-1))) { 207 efree(dir); 221 if (keylen < (uint)dirlen || !strncmp(str_key, dir, dirlen)) { 230 if (*dir == '/') { 256 if (0 != memcmp(str_key, dir, dirle [all...] |
| H A D | util.c | 1467 phar_entry_info *phar_get_entry_info_dir(phar_archive_data *phar, char *path, int path_len, char dir, char **error, int security TSRMLS_DC) /* {{{ */ argument 1490 if (!path_len && !dir) { 1520 if (entry->is_dir && !dir) { 1526 if (!entry->is_dir && dir == 2) { 1536 if (dir) { 1595 if (ssb.sb.st_mode & S_IFDIR && !dir) { 1603 if ((ssb.sb.st_mode & S_IFDIR) == 0 && dir) {
|
| /PHP_TRUNK/main/ |
| H A D | php_open_temporary_file.c | 262 * Unlike tempnam(), the supplied dir argument takes precedence 267 PHPAPI int php_open_temporary_fd_ex(const char *dir, const char *pfx, char **opened_path_p, zend_bool open_basedir_check TSRMLS_DC) argument 279 if (!dir || *dir == '\0') { 291 fd = php_do_open_temporary_file(dir, pfx, opened_path_p TSRMLS_CC); 299 PHPAPI int php_open_temporary_fd(const char *dir, const char *pfx, char **opened_path_p TSRMLS_DC) argument 301 return php_open_temporary_fd_ex(dir, pfx, opened_path_p, 0 TSRMLS_CC); 304 PHPAPI FILE *php_open_temporary_file(const char *dir, const char *pfx, char **opened_path_p TSRMLS_DC) argument 307 int fd = php_open_temporary_fd(dir, pfx, opened_path_p TSRMLS_CC);
|
| /PHP_TRUNK/ext/session/ |
| H A D | mod_files.c | 205 DIR *dir; local 214 dir = opendir(dirname); 215 if (!dir) { 228 while (php_readdir_r(dir, (struct dirent *) dentry, &entry) == 0 && entry) { 251 closedir(dir); 268 /* if save path is an empty string, determine the temporary dir */
|
| /PHP_TRUNK/ext/mysqli/ |
| H A D | mysqli_nonapi.c | 997 const char *name = NULL, *collation = NULL, *dir = NULL, *comment = NULL; local 1015 dir = (char *)cs.dir; 1039 add_property_string(return_value, "dir", (dir) ? (char *)dir : "", 1);
|
| /PHP_TRUNK/ext/date/lib/ |
| H A D | parse_iso_intervals.c | 160 timelib_ull dir = 1; local 172 dir *= -1; 176 return dir * timelib_get_nr(ptr, max_length);
|