Home
last modified time | relevance | path

Searched refs:st (Results 1 – 25 of 39) sorted by relevance

12

/mOS-networking-stack/samples/lighttpd-1.4.32/
H A Dmissing81 "$@"; st=$?
84 test $st -eq 0 && exit 0
89 case $2 in --version|--help) exit $st;; esac
94 if test $st -eq 63; then
96 elif test $st -eq 127; then
101 exit $st
207 exit $st
/mOS-networking-stack/samples/lighttpd-1.4.32/src/
H A Dmod_compress.c225 struct stat st; in SETDEFAULTS_FUNC() local
421 if ((off_t)(sce->st.st_size * 1.1) < sce->st.st_size) return -1; in deflate_file_to_file()
511 start = malloc(sce->st.st_size); in deflate_file_to_file()
512 if (NULL == start || sce->st.st_size != read(ifd, start, sce->st.st_size)) { in deflate_file_to_file()
532 ret = deflate_file_to_buffer_gzip(srv, con, p, start, sce->st.st_size, sce->st.st_mtime); in deflate_file_to_file()
561 munmap(start, sce->st.st_size); in deflate_file_to_file()
590 if ((off_t)(sce->st.st_size * 1.1) < sce->st.st_size) return -1; in deflate_file_to_buffer()
614 start = malloc(sce->st.st_size); in deflate_file_to_buffer()
615 if (NULL == start || sce->st.st_size != read(ifd, start, sce->st.st_size)) { in deflate_file_to_buffer()
628 ret = deflate_file_to_buffer_gzip(srv, con, p, start, sce->st.st_size, sce->st.st_mtime); in deflate_file_to_buffer()
[all …]
H A Dmod_cml_funcs.c69 struct stat st; in f_file_mtime() local
82 if (-1 == stat(lua_tostring(L, 1), &st)) { in f_file_mtime()
87 lua_pushnumber(L, st.st_mtime); in f_file_mtime()
137 struct stat st; in f_file_isreg() local
150 if (-1 == stat(lua_tostring(L, 1), &st)) { in f_file_isreg()
155 lua_pushnumber(L, S_ISREG(st.st_mode)); in f_file_isreg()
161 struct stat st; in f_file_isdir() local
174 if (-1 == stat(lua_tostring(L, 1), &st)) { in f_file_isdir()
179 lua_pushnumber(L, S_ISDIR(st.st_mode)); in f_file_isdir()
H A Dmod_staticfile.c169 end = sce->st.st_size - 1; in http_response_parse_range()
196 end = sce->st.st_size - 1; in http_response_parse_range()
197 start = sce->st.st_size + le; in http_response_parse_range()
202 end = sce->st.st_size - 1; in http_response_parse_range()
203 start = sce->st.st_size + le; in http_response_parse_range()
219 end = sce->st.st_size - 1; in http_response_parse_range()
226 end = sce->st.st_size - 1; in http_response_parse_range()
276 if (end > sce->st.st_size - 1) end = sce->st.st_size - 1; in http_response_parse_range()
278 if (start > sce->st.st_size - 1) { in http_response_parse_range()
301 buffer_append_off_t(b, sce->st.st_size); in http_response_parse_range()
[all …]
H A Detag.c17 int etag_create(buffer *etag, struct stat *st,etag_flags_t flags) { in etag_create() argument
23 buffer_append_off_t(etag, st->st_ino); in etag_create()
28 buffer_append_off_t(etag, st->st_size); in etag_create()
33 buffer_append_long(etag, st->st_mtime); in etag_create()
H A Dnetwork_write.c105 if (offset > sce->st.st_size) { in network_write_chunkqueue_write()
118 if (MAP_FAILED == (p = mmap(0, sce->st.st_size, PROT_READ, MAP_SHARED, ifd, 0))) { in network_write_chunkqueue_write()
135 munmap(p, sce->st.st_size); in network_write_chunkqueue_write()
140 munmap(p, sce->st.st_size); in network_write_chunkqueue_write()
146 munmap(p, sce->st.st_size); in network_write_chunkqueue_write()
H A Dmod_cml_lua.c32 stream st; member
43 *size = rm->st.size; in load_file()
45 return rm->st.start; in load_file()
216 stream_open(&rm.st, fn); in cache_parse_lua()
377 chunkqueue_append_file(con->write_queue, b, 0, sce->st.st_size); in cache_parse_lua()
378 if (sce->st.st_mtime > mtime) mtime = sce->st.st_mtime; in cache_parse_lua()
449 stream_close(&rm.st); in cache_parse_lua()
H A Dstream.c16 struct stat st; in stream_open() local
26 if (-1 == stat(fn->ptr, &st)) { in stream_open()
30 f->size = st.st_size; in stream_open()
H A Dmod_magnet.c279 lua_pushboolean(L, S_ISREG(sce->st.st_mode)); in magnet_stat()
282 lua_pushboolean(L, S_ISDIR(sce->st.st_mode)); in magnet_stat()
285 lua_pushboolean(L, S_ISCHR(sce->st.st_mode)); in magnet_stat()
300 lua_pushinteger(L, sce->st.st_mtime); in magnet_stat()
303 lua_pushinteger(L, sce->st.st_ctime); in magnet_stat()
306 lua_pushinteger(L, sce->st.st_atime); in magnet_stat()
309 lua_pushinteger(L, sce->st.st_uid); in magnet_stat()
312 lua_pushinteger(L, sce->st.st_gid); in magnet_stat()
315 lua_pushinteger(L, sce->st.st_size); in magnet_stat()
318 lua_pushinteger(L, sce->st.st_ino); in magnet_stat()
[all …]
H A Dstat_cache.c366 struct stat st; in stat_cache_get_entry() local
484 if (-1 == stat(name->ptr, &st)) { in stat_cache_get_entry()
489 if (S_ISREG(st.st_mode)) { in stat_cache_get_entry()
530 sce->st = st; in stat_cache_get_entry()
597 if (S_ISREG(st.st_mode)) { in stat_cache_get_entry()
622 etag_create(sce->etag, &(sce->st), con->etag_flags); in stat_cache_get_entry()
623 } else if (S_ISDIR(st.st_mode)) { in stat_cache_get_entry()
624 etag_create(sce->etag, &(sce->st), con->etag_flags); in stat_cache_get_entry()
H A Dmod_ssi.c446 buffer_copy_long(b, sce->st.st_uid); in process_ssi_stmt()
451 buffer_copy_long(b, sce->st.st_uid); in process_ssi_stmt()
456 time_t t = sce->st.st_mtime; in process_ssi_stmt()
525 struct stat st; in process_ssi_stmt() local
591 if (0 == stat(p->stat_fn->ptr, &st)) { in process_ssi_stmt()
592 time_t t = st.st_mtime; in process_ssi_stmt()
601 off_t s = st.st_size; in process_ssi_stmt()
608 buffer_copy_off_t(b, st.st_size); in process_ssi_stmt()
623 if (st.st_mtime > include_file_last_mtime) in process_ssi_stmt()
624 include_file_last_mtime = st.st_mtime; in process_ssi_stmt()
[all …]
H A Dmod_webdav.c589 struct stat st; in webdav_delete_dir() local
609 } else if (S_ISDIR(st.st_mode)) { in webdav_delete_dir()
752 struct stat st; in webdav_copy_dir() local
777 } else if (S_ISDIR(st.st_mode)) { in webdav_copy_dir()
811 } else if (S_ISREG(st.st_mode)) { in webdav_copy_dir()
842 if (S_ISDIR(sce->st.st_mode)) { in webdav_get_live_property()
847 if (S_ISDIR(sce->st.st_mode)) { in webdav_get_live_property()
1217 struct stat st; in URIHANDLER_FUNC() local
1553 } else if (S_ISDIR(st.st_mode)) { in URIHANDLER_FUNC()
1901 } else if (S_ISDIR(st.st_mode)) { in URIHANDLER_FUNC()
[all …]
H A Dnetwork_mtcp_writev.c171 if (abs_offset > sce->st.st_size) {
424 if (offset > sce->st.st_size) { in network_write_chunkqueue_mtcp_writev()
438 if (MAP_FAILED == (p = mmap(0, sce->st.st_size, PROT_READ, MAP_SHARED, ifd, 0))) { in network_write_chunkqueue_mtcp_writev()
455 munmap(p, sce->st.st_size); in network_write_chunkqueue_mtcp_writev()
460 munmap(p, sce->st.st_size); in network_write_chunkqueue_mtcp_writev()
466 munmap(p, sce->st.st_size); in network_write_chunkqueue_mtcp_writev()
H A Dmod_rrdtool.c229 struct stat st; in mod_rrdtool_create_rrd() local
233 if (0 == stat(s->path_rrd->ptr, &st)) { in mod_rrdtool_create_rrd()
235 if (!S_ISREG(st.st_mode)) { in mod_rrdtool_create_rrd()
242 if (st.st_size > 0) { in mod_rrdtool_create_rrd()
H A Dmod_userdir.c278 struct stat st; in URIHANDLER_FUNC() local
281 ret = stat(p->temp_path->ptr, &st); in URIHANDLER_FUNC()
282 if (ret < 0 || S_ISDIR(st.st_mode) != 1) { in URIHANDLER_FUNC()
H A Dmod_status.c626 array *st = srv->status; in mod_status_handle_server_statistics() local
629 if (0 == st->used) { in mod_status_handle_server_statistics()
639 for (i = 0; i < st->used; i++) { in mod_status_handle_server_statistics()
640 size_t ndx = st->sorted[i]; in mod_status_handle_server_statistics()
642 buffer_append_string_buffer(b, st->data[ndx]->key); in mod_status_handle_server_statistics()
644 buffer_append_long(b, ((data_integer *)(st->data[ndx]))->value); in mod_status_handle_server_statistics()
H A Detag.h13 int etag_create(buffer *etag, struct stat *st, etag_flags_t flags);
H A Dmod_dirlisting.c636 struct stat st; in http_list_directory() local
755 if (stat(path, &st) != 0) in http_list_directory()
759 if (S_ISDIR(st.st_mode)) in http_list_directory()
769 tmp->mtime = st.st_mtime; in http_list_directory()
770 tmp->size = st.st_size; in http_list_directory()
932 if (!S_ISDIR(sce->st.st_mode)) return HANDLER_GO_ON; in URIHANDLER_FUNC()
H A Dmod_flv_streaming.c240 if (start > sce->st.st_size) { in URIHANDLER_FUNC()
248 http_chunk_append_file(srv, con, con->physical.path, start, sce->st.st_size - start); in URIHANDLER_FUNC()
H A Dresponse.c587 if (S_ISDIR(sce->st.st_mode)) { in http_response_prepare()
596 } else if (!S_ISREG(sce->st.st_mode) && !sce->is_symlink) { in http_response_prepare()
598 } else if (!S_ISREG(sce->st.st_mode)) { in http_response_prepare()
656 found = S_ISREG(sce->st.st_mode); in http_response_prepare()
H A Dnetwork_freebsd_sendfile.c186 if (offset >= sce->st.st_size) { in network_write_chunkqueue_freebsdsendfile()
H A Dnetwork_solaris_sendfilev.c156 if (offset > sce->st.st_size) { in network_write_chunkqueue_solarissendfilev()
H A Dnetwork_linux_sendfile.c185 if (offset > sce->st.st_size) { in network_write_chunkqueue_linuxsendfile()
/mOS-networking-stack/samples/epwget/
H A Depwget.c495 struct wget_stat *st; in PrintStats() local
501 st = g_stat[i]; in PrintStats()
502 if (!st) in PrintStats()
504 avg_resp_time = st->completes? st->sum_resp_time / st->completes : 0; in PrintStats()
506 total.waits += st->waits; in PrintStats()
507 total.events += st->events; in PrintStats()
508 total.connects += st->connects; in PrintStats()
509 total.reads += st->reads; in PrintStats()
510 total.writes += st->writes; in PrintStats()
515 total.errors += st->errors; in PrintStats()
[all …]
H A Depwget-mp.c493 struct wget_stat *st; in PrintStats() local
499 st = g_stat[i]; in PrintStats()
500 if (!st) in PrintStats()
502 avg_resp_time = st->completes? st->sum_resp_time / st->completes : 0; in PrintStats()
504 total.waits += st->waits; in PrintStats()
505 total.events += st->events; in PrintStats()
506 total.connects += st->connects; in PrintStats()
507 total.reads += st->reads; in PrintStats()
508 total.writes += st->writes; in PrintStats()
513 total.errors += st->errors; in PrintStats()
[all …]

12