Lines Matching refs:sbuf
160 struct stat sbuf; in ps_files_open() local
190 …if(PG(open_basedir) && lstat(buf, &sbuf) == 0 && S_ISLNK(sbuf.st_mode) && php_check_open_basedir(b… in ps_files_open()
206 …if (zend_fstat(data->fd, &sbuf) || (sbuf.st_uid != 0 && sbuf.st_uid != getuid() && sbuf.st_uid != … in ps_files_open()
289 zend_stat_t sbuf; in ps_files_cleanup_dir() local
329 if (VCWD_STAT(buf, &sbuf) == 0 && in ps_files_cleanup_dir()
330 (now - sbuf.st_mtime) > maxlifetime) { in ps_files_cleanup_dir()
346 zend_stat_t sbuf; in ps_files_key_exists() local
351 if (VCWD_STAT(buf, &sbuf)) { in ps_files_key_exists()
479 zend_stat_t sbuf; in PS_READ_FUNC() local
487 if (zend_fstat(data->fd, &sbuf)) { in PS_READ_FUNC()
491 data->st_size = sbuf.st_size; in PS_READ_FUNC()
493 if (sbuf.st_size == 0) { in PS_READ_FUNC()
498 *val = zend_string_alloc(sbuf.st_size, 0); in PS_READ_FUNC()
525 if (n != (zend_long)sbuf.st_size) { in PS_READ_FUNC()