| /lighttpd1.4/src/ |
| H A D | http_etag.c | 69 http_etag_create (buffer * const etag, const struct stat * const st, const int flags) in http_etag_create() argument 77 x[len++] = (uint64_t)st->st_ino; in http_etag_create() 80 x[len++] = (uint64_t)st->st_size; in http_etag_create() 83 x[len++] = (uint64_t)st->st_mtime; in http_etag_create() 86 x[len++] = (uint64_t)st->st_mtimespec.tv_nsec; in http_etag_create() 88 x[len++] = (uint64_t)st->st_mtim.tv_nsec; in http_etag_create()
|
| H A D | stat_cache.c | 705 st = &lst; in fam_dir_monitor() 718 if (st->st_dev != fam_dir->st_dev || st->st_ino != fam_dir->st_ino) { in fam_dir_monitor() 1072 if (S_ISREG(sce->st.st_mode) || S_ISDIR(sce->st.st_mode)) { in stat_cache_etag_get() 1109 if (!stat_cache_stat_eq(&sce->st, st)) { in stat_cache_update_entry() 1128 sce->st = *st; in stat_cache_update_entry() 1328 struct stat st; in stat_cache_get_entry() local 1361 if (sce->fd >= 0 && !stat_cache_stat_eq(&sce->st, &st)) { in stat_cache_get_entry() 1374 sce->st = st; /*(copy prior to calling fam_dir_monitor())*/ in stat_cache_get_entry() 1398 if (sce->st.st_size > 0) { in stat_cache_get_entry_open() 1446 struct stat st; in stat_cache_path_contains_symlink() local [all …]
|
| H A D | mod_webdav.c | 610 struct stat st; in SETDEFAULTS_FUNC() local 2375 if (NULL == st) in webdav_if_match_or_unmodified_since() 2725 struct stat st; in webdav_copytmp_rename() local 2729 if (0 != fstat(ifd, &st) || !S_ISREG(st.st_mode)) { in webdav_copytmp_rename() 3017 struct stat st; in webdav_mkdir() local 3096 struct stat st; in webdav_copymove_dir() local 3335 struct stat st; member 4426 struct stat st; in mod_webdav_delete() local 4573 if (0 == fstat(fd, &st)) webdav_response_etag(r, &st); in mod_webdav_put_0() 4782 struct stat st; in mod_webdav_put_range() local [all …]
|
| H A D | stat_cache.h | 24 struct stat st; member 55 void stat_cache_update_entry(const char *name, uint32_t len, const struct stat *st, const buffer *e… 67 int stat_cache_open_rdonly_fstat (const buffer *name, struct stat *st, int symlinks);
|
| H A D | mod_ssi.c | 770 if (NULL == (pw = getpwuid(st->st_uid))) { in process_ssi_stmt() 771 buffer_append_int(tb, st->st_uid); in process_ssi_stmt() 776 buffer_append_int(tb, st->st_uid); in process_ssi_stmt() 788 ? st->st_mtime in process_ssi_stmt() 1428 process_ssi_stmt(r, p, (const char **)l, 1+(n>>1), st); in mod_ssi_parse_ssi_stmt() 1486 mod_ssi_parse_ssi_stmt(r, p, buf+prelen, len, st); in mod_ssi_read_fd() 1564 mod_ssi_read_fd(r, p, st, fd); in mod_ssi_process_file() 1572 struct stat st; in mod_ssi_handle_request() local 1584 if (mod_ssi_process_file(r, p, &st)) return -1; in mod_ssi_handle_request() 1600 st.st_mtime = include_file_last_mtime; in mod_ssi_handle_request() [all …]
|
| H A D | mod_magnet.c | 617 lua_pushinteger(L, sce->st.st_ino); 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() 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() 2242 len = sce->st.st_size - off; in magnet_respbody_add() 2581 if (len == -1 || sce->st.st_size - off < len) in magnet_attach_content() [all …]
|
| H A D | mod_dirlisting.c | 599 if (NULL == sce || sce->fd < 0 || 0 == sce->st.st_size) in http_list_directory_include_file() 616 buffer * const out = sce->st.st_size <= 32768 in http_list_directory_include_file() 1036 struct stat st; in http_read_directory() local 1079 if (stat(p->path, &st) != 0) in http_read_directory() 1083 if (0 != fstatat(p->dfd, d_name, &st, 0)) in http_read_directory() 1098 if (!S_ISDIR(st.st_mode)) { in http_read_directory() 1110 ,{ sstr, li_itostrn(sstr, sizeof(sstr), st.st_size) } in http_read_directory() 1125 tmp->mtime = st.st_mtime; in http_read_directory() 1126 tmp->size = st.st_size; in http_read_directory() 1601 struct stat st; in mod_dirlisting_cache_add() local [all …]
|
| H A D | fdevent.c | 616 struct stat st; in fdevent_load_file() local 617 if (0 != fstat(fd, &st)) break; in fdevent_load_file() 618 if ((sizeof(off_t) > sizeof(size_t) && st.st_size >= (off_t)~(size_t)0u) in fdevent_load_file() 619 || (*lim != 0 && st.st_size >= *lim)) { in fdevent_load_file() 624 sz = st.st_size; in fdevent_load_file()
|
| H A D | mod_rrdtool.c | 258 struct stat st; in mod_rrdtool_create_rrd() local 261 if (0 == stat(s->path_rrd->ptr, &st)) { in mod_rrdtool_create_rrd() 263 if (!S_ISREG(st.st_mode)) { in mod_rrdtool_create_rrd() 270 if (st.st_size > 0) { in mod_rrdtool_create_rrd()
|
| H A D | http-header-glue.c | 322 || (__builtin_expect( (sce->fd < 0), 0) && 0 != sce->st.st_size)) { in http_response_send_file() 330 if (sce->fd < 0 && __builtin_expect( (0 != sce->st.st_size), 0)) { in http_response_send_file() 353 if (__builtin_expect( (!S_ISREG(sce->st.st_mode)), 0)) { in http_response_send_file() 396 ? http_response_set_last_modified(r, sce->st.st_mtime) in http_response_send_file() 400 && HANDLER_FINISHED == http_response_handle_cachable(r, lmod, sce->st.st_mtime)) in http_response_send_file() 410 if (0 == sce->st.st_size || 0 == http_chunk_append_file_ref(r, sce)) { in http_response_send_file() 417 sce->st.st_size); in http_response_send_file() 550 } else if (!S_ISREG(sce->st.st_mode)) { in http_response_xsendfile2() 559 end_range = sce->st.st_size - 1; in http_response_xsendfile2()
|
| H A D | mod_expire.c | 268 const stat_cache_st * const st = stat_cache_path_stat(&r->physical.path); in mod_expire_set_header() local 270 if (NULL == st) return HANDLER_GO_ON; in mod_expire_set_header() 271 expires += TIME64_CAST(st->st_mtime); in mod_expire_set_header()
|
| H A D | mod_indexfile.c | 95 const stat_cache_st * const st = stat_cache_path_stat(b); in __attribute_nonnull__() local 99 if (NULL == st) { in __attribute_nonnull__()
|
| H A D | http_etag.h | 24 void http_etag_create (buffer *etag, const struct stat *st, int flags);
|
| H A D | server.c | 1366 struct stat st; in server_main_setup() local 1367 if (0 != fstat(oneshot_fd, &st)) { in server_main_setup() 1372 if (S_ISFIFO(st.st_mode)) { in server_main_setup() 1379 else if (!S_ISSOCK(st.st_mode)) { in server_main_setup() 1400 struct stat st; in server_main_setup() local 1415 errfd = (0 == fstat(STDERR_FILENO, &st)) ? -1 : devnull; in server_main_setup() 1479 struct stat st; in server_main_setup() local 1486 if (0 != stat(pidfile, &st)) { in server_main_setup() 1491 if (!S_ISREG(st.st_mode)) { in server_main_setup()
|
| H A D | mod_rewrite.c | 339 const stat_cache_st * const st = stat_cache_path_stat(&r->physical.path); in URIHANDLER_FUNC() local 340 if (st && S_ISREG(st->st_mode)) return HANDLER_GO_ON; in URIHANDLER_FUNC()
|
| H A D | mod_status.c | 655 const array * const st = &plugin_stats; in mod_status_handle_server_statistics() local 656 if (0 == st->used) { in mod_status_handle_server_statistics() 664 for (uint32_t i = 0; i < st->used; ++i) { in mod_status_handle_server_statistics() 665 buffer_append_str2(b, BUF_PTR_LEN(&st->sorted[i]->key), in mod_status_handle_server_statistics() 667 buffer_append_int(b, ((data_integer *)st->sorted[i])->value); in mod_status_handle_server_statistics()
|
| H A D | http_chunk.c | 94 if (sce->st.st_size - offset < len) in http_chunk_append_file_ref_range() 95 len = sce->st.st_size - offset; in http_chunk_append_file_ref_range() 142 const off_t sz = sce->st.st_size; in http_chunk_append_file_ref()
|
| H A D | mod_cgi.c | 984 const stat_cache_st *st; in URIHANDLER_FUNC() local 1000 st = r->tmp_sce && buffer_is_equal(&r->tmp_sce->name, &r->physical.path) in URIHANDLER_FUNC() 1001 ? &r->tmp_sce->st in URIHANDLER_FUNC() 1003 if (NULL == st) return HANDLER_GO_ON; in URIHANDLER_FUNC() 1006 if (!S_ISREG(st->st_mode)) return HANDLER_GO_ON; in URIHANDLER_FUNC() 1007 …if (p->conf.execute_x_only == 1 && (st->st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) == 0) return HAND… in URIHANDLER_FUNC()
|
| H A D | response.c | 270 if (!S_ISDIR(sce->st.st_mode)) break; in http_response_physical_path_check() 273 if (NULL == pathinfo || !S_ISREG(sce->st.st_mode)) { in http_response_physical_path_check() 315 if (S_ISREG(sce->st.st_mode)) /*(common case)*/ in http_response_physical_path_check() 318 if (S_ISDIR(sce->st.st_mode)) { in http_response_physical_path_check()
|
| H A D | mod_magnet_cache.c | 63 const off_t sz = sce->st.st_size; in script_cache_load_script()
|
| H A D | mod_gnutls.c | 373 struct stat st; in mod_gnutls_session_ticket_key_check() local 374 if (0 == stat(p->ssl_stek_file, &st) in mod_gnutls_session_ticket_key_check() 375 && TIME64_CAST(st.st_mtime) > stek_rotate_ts in mod_gnutls_session_ticket_key_check() 1023 struct stat st; in mod_gnutls_refresh_stapling_file() local 1024 if (0 != stat(pc->ssl_stapling_file->ptr, &st) in mod_gnutls_refresh_stapling_file() 1025 || TIME64_CAST(st.st_mtime) <= pc->ssl_stapling_loadts) { in mod_gnutls_refresh_stapling_file()
|
| H A D | mod_wolfssl.c | 431 struct stat st; in mod_openssl_session_ticket_key_check() local 432 if (0 == stat(p->ssl_stek_file, &st) in mod_openssl_session_ticket_key_check() 433 && TIME64_CAST(st.st_mtime) > stek_rotate_ts) in mod_openssl_session_ticket_key_check() 1553 struct stat st; in mod_openssl_refresh_stapling_file() local 1554 if (0 != stat(pc->ssl_stapling_file->ptr, &st) in mod_openssl_refresh_stapling_file() 1555 || TIME64_CAST(st.st_mtime) <= pc->ssl_stapling_loadts) { in mod_openssl_refresh_stapling_file()
|
| /lighttpd1.4/src/t/ |
| H A D | test_mod_ssi.c | 42 struct stat st; in test_mod_ssi_read_fd() local 50 if (0 != fstat(fd, &st)) { in test_mod_ssi_read_fd() 63 mod_ssi_read_fd(r, hctx, &st, fd); in test_mod_ssi_read_fd() 73 mod_ssi_read_fd(r, hctx, &st, fd); in test_mod_ssi_read_fd() 79 mod_ssi_read_fd(r, hctx, &st, fd); in test_mod_ssi_read_fd() 125 mod_ssi_read_fd(r, hctx, &st, fd); in test_mod_ssi_read_fd()
|
| H A D | test_mod_indexfile.c | 53 struct stat st; in test_mod_indexfile_tryfiles() local 54 if (0 != fstat(fd, &st)) { in test_mod_indexfile_tryfiles()
|
| H A D | test_mod_staticfile.c | 384 struct stat st; in test_mod_staticfile() local 385 if (0 != fstat(fd, &st)) { in test_mod_staticfile() 412 test_http_response_send_file(&r, st.st_mtime); in test_mod_staticfile()
|