Lines Matching refs:sce

493     stat_cache_entry * const sce = *(stat_cache_entry **)lua_touserdata(L, -2);  in magnet_stat_field()  local
499 const buffer *content_type = stat_cache_content_type_get(sce, r); in magnet_stat_field()
509 const buffer *etag = stat_cache_etag_get(sce, r->conf.etag_flags); in magnet_stat_field()
521 http_response_send_file(r, &sce->name, sce); in magnet_stat_field()
530 lua_pushboolean(L, S_ISBLK(sce->st.st_mode)); in magnet_stat_field()
536 lua_pushboolean(L, S_ISCHR(sce->st.st_mode)); in magnet_stat_field()
542 lua_pushboolean(L, S_ISDIR(sce->st.st_mode)); in magnet_stat_field()
548 lua_pushboolean(L, S_ISREG(sce->st.st_mode)); in magnet_stat_field()
552 lua_pushboolean(L, S_ISFIFO(sce->st.st_mode)); in magnet_stat_field()
558 lua_pushboolean(L, S_ISLNK(sce->st.st_mode)); in magnet_stat_field()
564 lua_pushboolean(L, S_ISSOCK(sce->st.st_mode)); in magnet_stat_field()
577 lua_pushinteger(L, TIME64_CAST(sce->st.st_atime)); in magnet_stat_field()
581 lua_pushinteger(L, TIME64_CAST(sce->st.st_atime)); in magnet_stat_field()
584 lua_pushinteger(L, sce->st.st_atimespec.tv_nsec); in magnet_stat_field()
586 lua_pushinteger(L, sce->st.st_atim.tv_nsec); in magnet_stat_field()
597 lua_pushinteger(L, TIME64_CAST(sce->st.st_ctime)); in magnet_stat_field()
601 lua_pushinteger(L, TIME64_CAST(sce->st.st_ctime)); in magnet_stat_field()
604 lua_pushinteger(L, sce->st.st_ctimespec.tv_nsec); in magnet_stat_field()
606 lua_pushinteger(L, sce->st.st_ctim.tv_nsec); in magnet_stat_field()
617 lua_pushinteger(L, sce->st.st_ino); in magnet_stat_field()
623 lua_pushinteger(L, TIME64_CAST(sce->st.st_mtime)); in magnet_stat_field()
627 lua_pushinteger(L, TIME64_CAST(sce->st.st_mtime)); in magnet_stat_field()
630 lua_pushinteger(L, sce->st.st_mtimespec.tv_nsec); in magnet_stat_field()
632 lua_pushinteger(L, sce->st.st_mtim.tv_nsec); in magnet_stat_field()
641 lua_pushinteger(L, sce->st.st_mode); in magnet_stat_field()
647 lua_pushinteger(L, sce->st.st_gid); in magnet_stat_field()
653 lua_pushinteger(L, sce->st.st_size); in magnet_stat_field()
659 lua_pushinteger(L, sce->st.st_uid); in magnet_stat_field()
713 stat_cache_entry * const sce = (!buffer_is_blank(sb)) in magnet_stat() local
716 if (NULL == sce) { in magnet_stat()
728 *udata = sce; in magnet_stat()
2229 stat_cache_entry * const sce = (!buffer_is_blank(fn)) in magnet_respbody_add() local
2232 if (sce && (sce->fd >= 0 || sce->st.st_size == 0)) { in magnet_respbody_add()
2235 if (off > sce->st.st_size) in magnet_respbody_add()
2236 off = sce->st.st_size; in magnet_respbody_add()
2238 off = sce->st.st_size - off; in magnet_respbody_add()
2241 if (len < 0 || sce->st.st_size - off < len) in magnet_respbody_add()
2242 len = sce->st.st_size - off; in magnet_respbody_add()
2244 http_chunk_append_file_ref_range(r, sce, off, len); in magnet_respbody_add()
2577 stat_cache_entry * const sce = (!buffer_is_blank(fn)) in magnet_attach_content() local
2580 if (sce && (sce->fd >= 0 || sce->st.st_size == 0)) { in magnet_attach_content()
2581 if (len == -1 || sce->st.st_size - off < len) in magnet_attach_content()
2582 len = sce->st.st_size - off; in magnet_attach_content()
2584 http_chunk_append_file_ref_range(r, sce, off, len); in magnet_attach_content()