Lines Matching refs:st
610 struct stat st; in SETDEFAULTS_FUNC() local
611 has_proc_self_fd = (0 == stat("/proc/self/fd", &st)); in SETDEFAULTS_FUNC()
2356 webdav_if_match_or_unmodified_since (request_st * const r, struct stat *st) in webdav_if_match_or_unmodified_since() argument
2375 if (NULL == st) in webdav_if_match_or_unmodified_since()
2376 st = (0 == lstat(r->physical.path.ptr, &stp)) ? &stp : NULL; in webdav_if_match_or_unmodified_since()
2380 if (NULL != st && (NULL != im || NULL != inm)) { in webdav_if_match_or_unmodified_since()
2381 http_etag_create(etagb, st, r->conf.etag_flags); in webdav_if_match_or_unmodified_since()
2385 if (NULL == st || !http_etag_matches(etagb, im->ptr, 0)) in webdav_if_match_or_unmodified_since()
2390 if (NULL == st in webdav_if_match_or_unmodified_since()
2397 if (NULL == st) in webdav_if_match_or_unmodified_since()
2399 if (http_date_if_modified_since(BUF_PTR_LEN(ius), st->st_mtime)) in webdav_if_match_or_unmodified_since()
2408 webdav_response_etag (request_st * const r, struct stat *st) in webdav_response_etag() argument
2414 http_etag_create(etagb, st, r->conf.etag_flags); in webdav_response_etag()
2416 stat_cache_update_entry(BUF_PTR_LEN(&r->physical.path), st, etagb); in webdav_response_etag()
2536 struct stat st; in webdav_delete_dir() local
2537 if (0 != fstatat(dfd, de->d_name, &st, AT_SYMLINK_NOFOLLOW)) in webdav_delete_dir()
2541 s_isdir = S_ISDIR(st.st_mode); in webdav_delete_dir()
2556 struct stat st; in webdav_delete_dir() local
2557 if (0 != stat(dst->path.ptr, &st)) { in webdav_delete_dir()
2562 s_isdir = S_ISDIR(st.st_mode); in webdav_delete_dir()
2725 struct stat st; in webdav_copytmp_rename() local
2729 if (0 != fstat(ifd, &st) || !S_ISREG(st.st_mode)) { in webdav_copytmp_rename()
2769 if (0 == st.st_size) in webdav_copytmp_rename()
2776 off_t ilen = st.st_size; in webdav_copytmp_rename()
2837 rc = webdav_fcopyfile_sz(ifd, ofd, st.st_size); in webdav_copytmp_rename()
2920 struct stat st; in webdav_copymove_file() local
2921 if (0 == lstat(dst->path.ptr, &st) || errno != ENOENT) in webdav_copymove_file()
3017 struct stat st; in webdav_mkdir() local
3020 status = lstat(dst->path.ptr, &st); in webdav_mkdir()
3028 if (S_ISDIR(st.st_mode)) in webdav_mkdir()
3096 struct stat st; in webdav_copymove_dir() local
3105 if (0 == lstat(dst->path.ptr, &st) || errno != ENOENT) { in webdav_copymove_dir()
3145 status = lstat(dst->path.ptr, &st); in webdav_copymove_dir()
3148 if (S_ISDIR(st.st_mode)) { in webdav_copymove_dir()
3238 if (0 != fstatat(dfd, de->d_name, &st, AT_SYMLINK_NOFOLLOW)) in webdav_copymove_dir()
3240 d_type = st.st_mode; in webdav_copymove_dir()
3258 if (0 != stat(src->path.ptr, &st)) { in webdav_copymove_dir()
3265 d_type = st.st_mode; in webdav_copymove_dir()
3335 struct stat st; member
3433 if (__builtin_expect( (NULL != gmtime64_r(&pb->st.st_ctime, &tm)), 1)) { in webdav_propfind_live_props()
3467 buffer_append_int(b, pb->st.st_size); in webdav_propfind_live_props()
3488 if (S_ISDIR(pb->st.st_mode)) { in webdav_propfind_live_props()
3516 http_etag_create(etagb, &pb->st, pb->r->conf.etag_flags); in webdav_propfind_live_props()
3531 http_date_time_append(b, pb->st.st_mtime); in webdav_propfind_live_props()
3545 if (S_ISDIR(pb->st.st_mode)) in webdav_propfind_live_props()
3778 if (0 != fstatat(dfd, de->d_name, &pb->st, pb->atflags)) in webdav_propfind_dir()
3788 if (0 != stat(dst->path.ptr, &pb->st)) { in webdav_propfind_dir()
3794 if (S_ISDIR(pb->st.st_mode)) { in webdav_propfind_dir()
3799 if (S_ISDIR(pb->st.st_mode) && -1 == pb->depth) in webdav_propfind_dir()
4071 struct stat st; in webdav_has_lock() local
4072 if (0 != lstat(r->physical.path.ptr, &st)) { in webdav_has_lock()
4077 if (S_ISDIR(st.st_mode)) continue;/*we ignore etag if dir*/ in webdav_has_lock()
4079 http_etag_create(etagb, &st, r->conf.etag_flags); in webdav_has_lock()
4232 ? 0 != lstat(r->physical.path.ptr, &pb.st) in mod_webdav_propfind()
4233 : 0 != stat(r->physical.path.ptr, &pb.st)) { /* non-standard */ in mod_webdav_propfind()
4237 else if (S_ISDIR(pb.st.st_mode)) { in mod_webdav_propfind()
4426 struct stat st; in mod_webdav_delete() local
4427 if (-1 == lstat(r->physical.path.ptr, &st)) { in mod_webdav_delete()
4432 if (0 != webdav_if_match_or_unmodified_since(r, &st)) { in mod_webdav_delete()
4437 if (S_ISDIR(st.st_mode)) { in mod_webdav_delete()
4572 struct stat st; in mod_webdav_put_0() local
4573 if (0 == fstat(fd, &st)) webdav_response_etag(r, &st); in mod_webdav_put_0()
4715 struct stat st; in mod_webdav_put_linkat_rename() local
4724 http_status_set_fin(r, 0 == lstat(r->physical.path.ptr, &st) in mod_webdav_put_linkat_rename()
4742 if (0 == fstat(c->file.fd, &st)) in mod_webdav_put_linkat_rename()
4743 webdav_response_etag(r, &st); in mod_webdav_put_linkat_rename()
4782 struct stat st; in mod_webdav_put_range() local
4786 || 0 != fstat(ifd,&st) || st.st_size != offset || st.st_nlink > 1)){ in mod_webdav_put_range()
4889 if (0 != fstat(fd, &st)) r->conf.etag_flags = 0; in mod_webdav_put_range()
4898 if (0 != r->conf.etag_flags) webdav_response_etag(r, &st); in mod_webdav_put_range()
5002 struct stat st; in mod_webdav_put() local
5005 if (0 != fstat(fd, &st)) r->conf.etag_flags = 0; in mod_webdav_put()
5020 if (0 != r->conf.etag_flags) webdav_response_etag(r, &st); in mod_webdav_put()
5214 struct stat st; in mod_webdav_copymove_b() local
5215 if (-1 == lstat(r->physical.path.ptr, &st)) { in mod_webdav_copymove_b()
5221 if (0 != webdav_if_match_or_unmodified_since(r, &st)) { in mod_webdav_copymove_b()
5226 if (S_ISDIR(st.st_mode)) { in mod_webdav_copymove_b()
5257 if (0 == lstat(dst_path->ptr, &st)) { in mod_webdav_copymove_b()
5258 if (S_ISDIR(st.st_mode)) in mod_webdav_copymove_b()
5320 int rc = lstat(dst_path->ptr, &st); in mod_webdav_copymove_b()
5321 if (0 == rc && S_ISDIR(st.st_mode)) { in mod_webdav_copymove_b()
5338 rc = lstat(dst_path->ptr, &st); in mod_webdav_copymove_b()
5352 if (0 == lstat(dst_path->ptr, &st) && S_ISDIR(st.st_mode)) { in mod_webdav_copymove_b()
5374 else if (S_ISDIR(st.st_mode)) { in mod_webdav_copymove_b()
5435 struct stat st; in mod_webdav_proppatch() local
5436 if (0 != lstat(r->physical.path.ptr, &st)) { in mod_webdav_proppatch()
5441 if (0 != webdav_if_match_or_unmodified_since(r, &st)) { in mod_webdav_proppatch()
5446 if (S_ISDIR(st.st_mode)) { in mod_webdav_proppatch()
5791 struct stat st; in mod_webdav_lock() local
5792 if (0 != lstat(r->physical.path.ptr, &st)) { in mod_webdav_lock()
5824 if (0 != fstat(fd, &st)) r->conf.etag_flags = 0; in mod_webdav_lock()
5833 else if (0 != lstat(r->physical.path.ptr, &st)) { in mod_webdav_lock()
5841 if (0 != webdav_if_match_or_unmodified_since(r, &st)) { in mod_webdav_lock()
5849 else if (S_ISDIR(st.st_mode)) { in mod_webdav_lock()
5885 if (0 != r->conf.etag_flags && !S_ISDIR(st.st_mode)) in mod_webdav_lock()
5886 webdav_response_etag(r, &st); in mod_webdav_lock()