Searched defs:dir (Results 1 - 25 of 28) sorted by relevance

12

/PHP_5_4/TSRM/
H A Dreaddir.h34 char *dir; /* the dir we are reading */ member in struct:__anon3
H A Dtsrm_virtual_cwd.c1180 * 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_5_4/ext/phar/tests/files/
H A Dpear2coverage.phar.php573 $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_5_4/ext/spl/examples/
H A Dphar_from_dir.php33 $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_5_4/win32/
H A Dreaddir.h38 char *dir; /* the dir we are reading */ member in struct:__anon554
H A Dreaddir.c22 DIR *opendir(const char *dir) argument
31 if (!VCWD_REALPATH(dir, resolved_path_buff)) {
64 dp->dir = strdup(resolved_path_buff);
129 if (dp->dir)
130 free(dp->dir);
149 filespec = (char *)malloc(strlen(dp->dir) + 2 + 1);
154 strcpy(filespec, dp->dir);
/PHP_5_4/ext/fileinfo/libmagic/
H A Dapptype.c49 char path[_MAX_PATH], drive[_MAX_DRIVE], dir[_MAX_DIR], local
61 _splitpath(filename, drive, dir, fname, ext);
63 (*dir == '\0') ? "./" : dir,
H A Dreadcdf.c233 cdf_dir_t dir; local
265 if ((i = cdf_read_dir(&info, &h, &sat, &dir)) == -1) {
270 if ((i = cdf_read_short_stream(&info, &h, &sat, &dir, &sst)) == -1) {
275 cdf_dump_dir(&info, &h, &sat, &ssat, &sst, &dir);
278 if ((i = cdf_read_summary_info(&info, &h, &sat, &ssat, &sst, &dir,
298 for (j = 0; j < dir.dir_len; j++) {
299 d = &dir.dir_tab[j];
319 free(dir.dir_tab);
H A Dcdf.c598 const cdf_sat_t *sat, cdf_dir_t *dir)
611 dir->dir_len = ns * nd;
612 dir->dir_tab = CAST(cdf_directory_t *,
613 calloc(dir->dir_len, sizeof(dir->dir_tab[0])));
614 if (dir->dir_tab == NULL)
618 free(dir->dir_tab);
624 DPRINTF(("Read dir loop limit"));
633 cdf_unpack_dir(&dir->dir_tab[i * nd + j],
639 for (i = 0; i < dir
597 cdf_read_dir(const cdf_info_t *info, const cdf_header_t *h, const cdf_sat_t *sat, cdf_dir_t *dir) argument
693 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
731 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
1145 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
1307 cdf_dir_t dir; local
[all...]
/PHP_5_4/ext/gd/libgd/
H A Dgd_topal.c1381 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 Dgdft.c353 char *name, *path=NULL, *dir; local
392 for (dir = gd_strtok_r (path, PATHSEPARATOR, &strtok_ptr_path); dir;
393 dir = gd_strtok_r (0, PATHSEPARATOR, &strtok_ptr_path)) {
394 if (!strcmp(dir, ".")) {
397 dir = VCWD_GETCWD(cur_dir, MAXPATHLEN);
399 dir = VCWD_GETWD(cur_dir);
401 if (!dir) {
407 snprintf(fullname, sizeof(fullname) - 1, "%s/%s%s", dir, name, ext); \
/PHP_5_4/ext/phar/
H A Ddirstream.c33 "phar dir",
186 * a list of files/directories that are "in" the directory represented by dir
188 static php_stream *phar_make_dirstream(char *dir, HashTable *manifest TSRMLS_DC) /* {{{ */ argument
191 int dirlen = strlen(dir);
200 if ((*dir == '/' && dirlen == 1 && (manifest->nNumOfElements == 0)) || (dirlen >= sizeof(".phar")-1 && !memcmp(dir, ".phar", sizeof(".phar")-1))) {
203 efree(dir);
217 if (keylen < (uint)dirlen || !strncmp(str_key, dir, dirlen)) {
226 if (*dir == '/') {
252 if (0 != memcmp(str_key, dir, dirle
[all...]
H A Dutil.c1469 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
1492 if (!path_len && !dir) {
1522 if (entry->is_dir && !dir) {
1528 if (!entry->is_dir && dir == 2) {
1538 if (dir) {
1597 if (ssb.sb.st_mode & S_IFDIR && !dir) {
1605 if ((ssb.sb.st_mode & S_IFDIR) == 0 && dir) {
/PHP_5_4/ext/spl/
H A Dspl_directory.h86 } dir; member in union:_spl_filesystem_object::__anon213
/PHP_5_4/ext/standard/
H A Dphp_dir.h25 PHP_MINIT_FUNCTION(dir); variable
26 PHP_RINIT_FUNCTION(dir); variable
H A Dfile.c805 /* {{{ proto string tempnam(string dir, string prefix)
809 char *dir, *prefix; local
816 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ps", &dir, &dir_len, &prefix, &prefix_len) == FAILURE) {
820 if (php_check_open_basedir(dir TSRMLS_CC)) {
831 if ((fd = php_open_temporary_fd_ex(dir, p, &opened_path, 1 TSRMLS_CC)) >= 0) {
1292 PHPAPI int php_mkdir_ex(char *dir, long mode, int options TSRMLS_DC) argument
1296 if (php_check_open_basedir(dir TSRMLS_CC)) {
1300 if ((ret = VCWD_MKDIR(dir, (mode_t)mode)) < 0 && (options & REPORT_ERRORS)) {
1307 PHPAPI int php_mkdir(char *dir, long mode TSRMLS_DC) argument
1309 return php_mkdir_ex(dir, mod
1317 char *dir; local
1338 char *dir; local
[all...]
/PHP_5_4/main/
H A Dphp_open_temporary_file.c247 * Unlike tempnam(), the supplied dir argument takes precedence
252 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
264 if (!dir || *dir == '\0') {
276 fd = php_do_open_temporary_file(dir, pfx, opened_path_p TSRMLS_CC);
284 PHPAPI int php_open_temporary_fd(const char *dir, const char *pfx, char **opened_path_p TSRMLS_DC) argument
286 return php_open_temporary_fd_ex(dir, pfx, opened_path_p, 0 TSRMLS_CC);
289 PHPAPI FILE *php_open_temporary_file(const char *dir, const char *pfx, char **opened_path_p TSRMLS_DC) argument
292 int fd = php_open_temporary_fd(dir, pfx, opened_path_p TSRMLS_CC);
/PHP_5_4/main/streams/
H A Dplain_wrapper.c186 PHPAPI php_stream *_php_stream_fopen_temporary_file(const char *dir, const char *pfx, char **opened_path STREAMS_DC TSRMLS_DC) argument
188 int fd = php_open_temporary_fd(dir, pfx, opened_path TSRMLS_CC);
818 DIR *dir = (DIR*)stream->abstract; local
828 if (php_readdir_r(dir, (struct dirent *)entry, &result) == 0 && result) {
849 "dir",
859 DIR *dir = NULL; local
872 dir = VCWD_OPENDIR(path);
875 if (!dir) {
879 if (dir && dir
1143 php_plain_files_mkdir(php_stream_wrapper *wrapper, char *dir, int mode, int options, php_stream_context *context TSRMLS_DC) argument
[all...]
/PHP_5_4/ext/date/lib/
H A Dparse_iso_intervals.c162 timelib_ull dir = 1; local
174 dir *= -1;
178 return dir * timelib_get_nr(ptr, max_length);
/PHP_5_4/ext/ftp/
H A Dftp.c493 ftp_chdir(ftpbuf_t *ftp, const char *dir) argument
504 if (!ftp_putcmd(ftp, "CWD", dir)) {
541 ftp_mkdir(ftpbuf_t *ftp, const char *dir) argument
548 if (!ftp_putcmd(ftp, "MKD", dir)) {
554 /* copy out the dir from response */
556 mkd = estrdup(dir);
573 ftp_rmdir(ftpbuf_t *ftp, const char *dir) argument
578 if (!ftp_putcmd(ftp, "RMD", dir)) {
H A Dphp_ftp.c486 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_5_4/ext/gettext/
H A Dgettext.c55 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_5_4/ext/mysqli/
H A Dmysqli_nonapi.c999 const char *name = NULL, *collation = NULL, *dir = NULL, *comment = NULL; local
1017 dir = (char *)cs.dir;
1041 add_property_string(return_value, "dir", (dir) ? (char *)dir : "", 1);
/PHP_5_4/sapi/roxen/
H A Droxen.c577 char *dir; local
/PHP_5_4/ext/session/
H A Dmod_files.c216 DIR *dir; local
225 dir = opendir(dirname);
226 if (!dir) {
239 while (php_readdir_r(dir, (struct dirent *) dentry, &entry) == 0 && entry) {
262 closedir(dir);
279 /* if save path is an empty string, determine the temporary dir */

Completed in 45 milliseconds

12