Lines Matching refs:st

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()
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()
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()