/netbsd-6-1-5-RELEASE/libexec/httpd/ |
H A D | daemon-bozo.c | 98 create_pidfile(bozohttpd_t *httpd) argument 104 if (httpd->pidfile == NULL) 108 bozo_err(httpd, 1, "Failed to install pidfile handler"); 110 if ((file = fopen(httpd->pidfile, "w")) == NULL) 111 bozo_err(httpd, 1, "Failed to create pidfile '%s'", 112 httpd->pidfile); 116 pidfile_path = httpd->pidfile; 119 debug((httpd, DEBUG_FAT, "Created pid file '%s' for pid %d", 124 bozo_daemon_init(bozohttpd_t *httpd) argument 130 if (!httpd 186 bozo_daemon_closefds(bozohttpd_t *httpd) argument 195 daemon_runchild(bozohttpd_t *httpd, int fd) argument 207 daemon_poll_err(bozohttpd_t *httpd, int fd, int idx) argument 238 bozo_daemon_fork(bozohttpd_t *httpd) argument [all...] |
H A D | main.c | 59 usage(bozohttpd_t *httpd, char *progname) argument 61 bozo_warn(httpd, "usage: %s [options] slashdir [virtualhostname]", 63 bozo_warn(httpd, "options:"); 65 bozo_warn(httpd, " -d\t\t\tenable debug support"); 67 bozo_warn(httpd, " -s\t\t\talways log to stderr"); 69 bozo_warn(httpd, " -u\t\t\tenable ~user/public_html support"); 70 bozo_warn(httpd, " -p dir\t\tchange `public_html' directory name]"); 73 bozo_warn(httpd, " -M arg t c c11\tadd this mime extenstion"); 77 bozo_warn(httpd, " -C arg prog\t\tadd this CGI handler"); 79 bozo_warn(httpd, 126 bozohttpd_t httpd; local [all...] |
H A D | dir-index-bozo.c | 49 directory_hr(bozohttpd_t *httpd) argument 52 bozo_printf(httpd, 62 bozohttpd_t *httpd = request->hr_httpd; local 72 if (!isindex || !httpd->dir_indexing) 75 if (strlen(dirname) <= strlen(httpd->index_html)) 78 file = bozostrdup(httpd, dirname); 80 file[strlen(file) - strlen(httpd->index_html)] = '\0'; 83 debug((httpd, DEBUG_FAT, "bozo_dir_index: dirname ``%s''", dirname)); 87 (void)bozo_http_error(httpd, 403, request, 90 (void)bozo_http_error(httpd, 40 [all...] |
H A D | tilde-luzah-bozo.c | 60 bozohttpd_t *httpd = request->hr_httpd; local 72 debug((httpd, DEBUG_OBESE, "looking for user %s", 79 (void)bozo_http_error(httpd, 404, request, "no such user"); 83 debug((httpd, DEBUG_OBESE, "user %s dir %s/%s uid %d gid %d", 84 pw->pw_name, pw->pw_dir, httpd->public_html, 88 bozo_warn(httpd, "chdir1 error: %s: %s", pw->pw_dir, 90 (void)bozo_http_error(httpd, 404, request, 94 if (chdir(httpd->public_html) < 0) { 95 bozo_warn(httpd, "chdir2 error: %s: %s", httpd [all...] |
H A D | cgi-bozo.c | 64 content_cgihandler(bozohttpd_t *httpd, bozo_httpreq_t *request, argument 70 debug((httpd, DEBUG_FAT, "content_cgihandler: trying file %s", file)); 71 map = bozo_match_content_map(httpd, file, 0); 78 parse_header(bozohttpd_t *httpd, const char *str, ssize_t len, char **hdr_str, argument 87 value = bozostrdup(httpd, str); 112 finish_cgi_output(bozohttpd_t *httpd, bozo_httpreq_t *request, int in, int nph) argument 127 (str = bozodgetln(httpd, in, &len, bozo_read)) != NULL) { 130 if (parse_header(httpd, str, len, &hdr_name, &hdr_value)) 145 debug((httpd, DEBUG_OBESE, 148 bozo_printf(httpd, " 205 append_index_html(bozohttpd_t *httpd, char **url) argument 215 bozo_cgi_setbin(bozohttpd_t *httpd, const char *path) argument 224 bozo_setenv(bozohttpd_t *httpd, const char *env, const char *val, char **envp) argument 245 bozohttpd_t *httpd = request->hr_httpd; local 506 bozo_add_content_map_cgi(bozohttpd_t *httpd, const char *arg, const char *cgihandler) argument [all...] |
H A D | ssl-bozo.c | 68 bozo_ssl_err(bozohttpd_t *httpd, int code, const char *fmt, ...) argument 73 if (httpd->logstderr || isatty(STDERR_FILENO)) { 84 if (httpd->logstderr || isatty(STDERR_FILENO)) { 100 bozo_ssl_printf(bozohttpd_t *httpd, const char * fmt, va_list ap) argument 106 sslinfo = httpd->sslinfo; 117 bozo_ssl_read(bozohttpd_t *httpd, int fd, void *buf, size_t nbytes) argument 123 sslinfo = httpd->sslinfo; 129 bozo_warn(httpd, "SSL_ERROR_WANT_READ"); 131 bozo_warn(httpd, "SSL_ERROR OTHER"); 138 bozo_ssl_write(bozohttpd_t *httpd, in argument 152 bozo_ssl_flush(bozohttpd_t *httpd, FILE *fp) argument 161 bozo_ssl_init(bozohttpd_t *httpd) argument 198 bozo_ssl_accept(bozohttpd_t *httpd) argument 212 bozo_ssl_destroy(bozohttpd_t *httpd) argument 222 bozo_ssl_set_opts(bozohttpd_t *httpd, const char *cert, const char *priv) argument 246 bozo_printf(bozohttpd_t *httpd, const char *fmt, ...) argument 265 bozo_read(bozohttpd_t *httpd, int fd, void *buf, size_t len) argument 276 bozo_write(bozohttpd_t *httpd, int fd, const void *buf, size_t len) argument 287 bozo_flush(bozohttpd_t *httpd, FILE *fp) argument [all...] |
H A D | bozohttpd.c | 36 * bozohttpd.c: minimal httpd; provides only these features: 272 parse_request(bozohttpd_t *httpd, char *in, char **method, char **file, argument 278 USE_ARG(httpd); 279 debug((httpd, DEBUG_EXPLODING, "parse in: %s", in)); 312 *file = bozostrdup(httpd, *file); 314 *query = bozostrdup(httpd, *query); 316 debug((httpd, DEBUG_FAT, 508 bozo_read_request(bozohttpd_t *httpd) argument 528 if (bozo_daemon_fork(httpd)) 530 bozo_ssl_accept(httpd); 769 mmap_and_write_part(bozohttpd_t *httpd, int fd, off_t first_byte_pos, size_t sz) argument 855 bozo_escape_rfc3986(bozohttpd_t *httpd, const char *url) argument 959 bozohttpd_t *httpd = request->hr_httpd; local 1035 bozohttpd_t *httpd = request->hr_httpd; local 1228 bozohttpd_t *httpd = request->hr_httpd; local 1314 bozohttpd_t *httpd = request->hr_httpd; local 1533 bozohttpd_t *httpd = request->hr_httpd; local 1674 bozohttpd_t *httpd = request->hr_httpd; local 1694 bozohttpd_t *httpd = request->hr_httpd; local 1734 debug__(bozohttpd_t *httpd, int level, const char *fmt, ...) argument 1757 bozo_warn(bozohttpd_t *httpd, const char *fmt, ...) argument 1772 bozo_err(bozohttpd_t *httpd, int code, const char *fmt, ...) argument 1796 bozo_escape_html(bozohttpd_t *httpd, const char *url) argument 1894 bozo_http_error(bozohttpd_t *httpd, int code, bozo_httpreq_t *request, const char *msg) argument 2004 bozodgetln(bozohttpd_t *httpd, int fd, ssize_t *lenp, ssize_t (*readfn)(bozohttpd_t *, int, void *, size_t)) argument 2073 bozorealloc(bozohttpd_t *httpd, void *ptr, size_t size) argument 2087 bozomalloc(bozohttpd_t *httpd, size_t size) argument 2101 bozostrdup(bozohttpd_t *httpd, const char *str) argument 2116 bozo_init_httpd(bozohttpd_t *httpd) argument 2159 bozo_set_defaults(bozohttpd_t *httpd, bozoprefs_t *prefs) argument 2166 bozo_setup(bozohttpd_t *httpd, bozoprefs_t *prefs, const char *vhost, const char *root) argument [all...] |
H A D | lua-bozo.c | 49 #define LUA_HTTPDLIBNAME "httpd" 57 bozohttpd_t *httpd; local 61 httpd = lua_touserdata(L, -1); 64 bozo_flush(httpd, stdout); 71 bozohttpd_t *httpd; local 75 httpd = lua_touserdata(L, -1); 78 bozo_printf(httpd, "%s\r\n", lua_tostring(L, -1)); 85 bozohttpd_t *httpd; local 91 httpd = lua_touserdata(L, -1); 95 data = bozomalloc(httpd, le 111 bozohttpd_t *httpd; local 136 bozohttpd_t *httpd; local 182 bozo_add_lua_map(bozohttpd_t *httpd, const char *prefix, const char *script) argument 299 bozohttpd_t *httpd = request->hr_httpd; local [all...] |
H A D | content-bozo.c | 105 { ".cgi", 4, "application/x-httpd-cgi", "", "", NULL }, 192 bozo_match_content_map(bozohttpd_t *httpd, const char *name, argument 199 if ((map = search_map(httpd->dynamic_content_map, name, len)) != NULL) { 217 bozohttpd_t *httpd = request->hr_httpd; local 220 map = bozo_match_content_map(httpd, file, 0); 223 return httpd->consts.text_plain; 232 bozohttpd_t *httpd = request->hr_httpd; local 235 map = bozo_match_content_map(httpd, file, 0); 237 return (request->hr_proto == httpd->consts.http_11) ? 245 bozo_get_content_map(bozohttpd_t *httpd, cons argument 280 bozo_add_content_map_mime(bozohttpd_t *httpd, const char *cmap0, const char *cmap1, const char *cmap2, const char *cmap3) argument [all...] |
H A D | auth-bozo.c | 58 bozohttpd_t *httpd = request->hr_httpd; local 75 request->hr_authrealm = bozostrdup(httpd, dir); 79 return bozo_http_error(httpd, 404, request, 83 debug((httpd, DEBUG_NORMAL, 89 return bozo_http_error(httpd, 403, request, 91 debug((httpd, DEBUG_NORMAL, 102 debug((httpd, DEBUG_NORMAL, 117 return bozo_http_error(httpd, 401, request, "bad auth"); 134 bozohttpd_t *httpd = request->hr_httpd; local 150 return bozo_http_error(httpd, 40 168 bozohttpd_t *httpd = request->hr_httpd; local 179 bozohttpd_t *httpd = request->hr_httpd; local 193 bozohttpd_t *httpd = request->hr_httpd; local [all...] |
H A D | printenv.lua | 3 -- this small Lua script demonstrates the use of Lua in (bozo)httpd 11 local httpd = require 'httpd' 32 print('module version: ' .. httpd._VERSION .. '<br>') 84 httpd.register_handler('printenv', printenv) 85 httpd.register_handler('form', form)
|
H A D | Makefile | 23 PROG= httpd 24 MAN= httpd.8 25 BUILDSYMLINKS+=bozohttpd.8 httpd.8
|
H A D | bozohttpd.h | 173 /* helper to access the "active" host name from a httpd/request pair */ 224 char *bozo_escape_rfc3986(bozohttpd_t *httpd, const char *url); 225 char *bozo_escape_html(bozohttpd_t *httpd, const char *url);
|
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/lib/isc/ |
H A D | httpd.c | 26 #include <isc/httpd.h> 98 * Flags on the httpd client. 138 /*% lightweight socket manager for httpd output */ 221 static void reset_client(isc_httpd_t *httpd); 236 isc_httpd_t *httpd = *httpdp; local 237 isc_httpdmgr_t *httpdmgr = httpd->mgr; 243 isc_socket_detach(&httpd->sock); 244 ISC_LIST_UNLINK(httpdmgr->running, httpd, link); 246 if (httpd->headerlen > 0) 247 isc_mem_put(httpdmgr->mctx, httpd 264 isc_httpdmgr_t *httpd; local 384 process_request(isc_httpd_t *httpd, int length) argument 522 isc_httpd_t *httpd; local 666 isc_httpd_t *httpd = ev->ev_arg; local 774 isc_httpd_t *httpd; local 799 grow_headerspace(isc_httpd_t *httpd) argument 821 isc_httpd_response(isc_httpd_t *httpd) argument 844 isc_httpd_addheader(isc_httpd_t *httpd, const char *name, const char *val) argument 874 isc_httpd_endheaders(isc_httpd_t *httpd) argument 891 isc_httpd_addheaderuint(isc_httpd_t *httpd, const char *name, int val) argument 919 isc_httpd_t *httpd = ev->ev_arg; local 981 reset_client(isc_httpd_t *httpd) argument [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/lib/isc/ |
H A D | httpd.c | 19 /* Id: httpd.c,v 1.16 2008/08/08 05:06:49 marka Exp */ 26 #include <isc/httpd.h> 98 * Flags on the httpd client. 138 /*% lightweight socket manager for httpd output */ 220 static void reset_client(isc_httpd_t *httpd); 230 isc_httpd_t *httpd = *httpdp; local 231 isc_httpdmgr_t *httpdmgr = httpd->mgr; 237 isc_socket_detach(&httpd->sock); 238 ISC_LIST_UNLINK(httpdmgr->running, httpd, link); 240 if (httpd 258 isc_httpdmgr_t *httpd; local 377 process_request(isc_httpd_t *httpd, int length) argument 515 isc_httpd_t *httpd; local 633 isc_httpd_t *httpd = ev->ev_arg; local 733 isc_httpd_t *httpd; local 758 grow_headerspace(isc_httpd_t *httpd) argument 780 isc_httpd_response(isc_httpd_t *httpd) argument 803 isc_httpd_addheader(isc_httpd_t *httpd, const char *name, const char *val) argument 833 isc_httpd_endheaders(isc_httpd_t *httpd) argument 850 isc_httpd_addheaderuint(isc_httpd_t *httpd, const char *name, int val) argument 878 isc_httpd_t *httpd = ev->ev_arg; local 940 reset_client(isc_httpd_t *httpd) argument [all...] |
/netbsd-6-1-5-RELEASE/libexec/httpd/lua/ |
H A D | glue.c | 73 bozohttpd_t *httpd; local 75 httpd = lua_newuserdata(L, sizeof(*httpd)); 76 (void) memset(httpd, 0x0, sizeof(*httpd)); 80 /* initialise(httpd) */ 84 bozohttpd_t *httpd; local 86 httpd = lua_touserdata(L, 1); 87 lua_pushnumber(L, bozo_init_httpd(httpd)); 131 /* bozo_setup(httpd, pref 135 bozohttpd_t *httpd; local 156 bozohttpd_t *httpd; local 169 bozohttpd_t *httpd; local 194 bozohttpd_t *httpd; local 211 bozohttpd_t *httpd; local 226 bozohttpd_t *httpd; local 240 bozohttpd_t *httpd; local [all...] |
H A D | bozo.lua | 71 httpd = bozohttpd.new() 72 bozohttpd.init_httpd(httpd) 98 bozohttpd.dynamic_mime(httpd, suffix, type, s1, s2) 105 bozohttpd.dynamic_mime(httpd, cert, priv) 126 bozohttpd.cgi_setbin(httpd, options.cgibin) 130 bozohttpd.cgi_map(httpd, name, handler) 153 bozohttpd.setup(httpd, prefs, vhost, args[1]) 158 req = bozohttpd.read_request(httpd) 159 bozohttpd.process_request(httpd, req)
|
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/lib/isc/include/isc/ |
H A D | httpd.h | 19 /* Id: httpd.h,v 1.9 2008/08/08 05:06:49 marka Exp */ 55 isc_httpd_response(isc_httpd_t *httpd); 58 isc_httpd_addheader(isc_httpd_t *httpd, const char *name, 62 isc_httpd_addheaderuint(isc_httpd_t *httpd, const char *name, int val); 64 isc_result_t isc_httpd_endheaders(isc_httpd_t *httpd);
|
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/lib/isc/include/isc/ |
H A D | httpd.h | 19 /* Id: httpd.h,v 1.9 2008/08/08 05:06:49 marka Exp */ 55 isc_httpd_response(isc_httpd_t *httpd); 58 isc_httpd_addheader(isc_httpd_t *httpd, const char *name, 62 isc_httpd_addheaderuint(isc_httpd_t *httpd, const char *name, int val); 64 isc_result_t isc_httpd_endheaders(isc_httpd_t *httpd);
|
/netbsd-6-1-5-RELEASE/libexec/ |
H A D | Makefile | 7 comsat fingerd ftpd getty httpd identd ld.aout_so \
|
/netbsd-6-1-5-RELEASE/tests/lib/librumphijack/ |
H A D | t_tcpip.sh | 34 atf_set "descr" "Start hijacked httpd and get webpage from it" 44 /usr/libexec/httpd -P ./httpd.pid -b -s $(atf_get_srcdir) 63 if [ -f httpd.pid ]; then 64 kill -9 "$(cat httpd.pid)" 65 rm -f httpd.pid
|
/netbsd-6-1-5-RELEASE/etc/rc.d/ |
H A D | Makefile | 24 hostapd httpd \
|
/netbsd-6-1-5-RELEASE/external/bsd/bind/lib/libisc/ |
H A D | Makefile | 27 hash.c heap.c hex.c hmacmd5.c hmacsha.c httpd.c inet_aton.c \
|
/netbsd-6-1-5-RELEASE/etc/defaults/ |
H A D | rc.conf | 233 httpd=NO httpd_flags=""
|
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/lib/isc/win32/ |
H A D | libisc.mak | 141 -@erase "$(INTDIR)\httpd.obj"
256 "$(INTDIR)\httpd.obj" \
358 -@erase "$(INTDIR)\httpd.obj"
359 -@erase "$(INTDIR)\httpd.sbr"
525 "$(INTDIR)\httpd.sbr" \
613 "$(INTDIR)\httpd.obj" \
1387 SOURCE=..\httpd.c
1392 "$(INTDIR)\httpd.obj" : $(SOURCE) "$(INTDIR)"
1399 "$(INTDIR)\httpd.obj" "$(INTDIR)\httpd [all...] |