Lines Matching refs:hs
149 static void unlisten( httpd_server* hs );
157 free( (void*) hs->cwd );
158 if ( hs->cgi_pattern != (char*) 0 )
159 free( (void*) hs->cgi_pattern );
160 + if ( hs->php_pattern != (char*) 0 )
161 + free( (void*) hs->php_pattern );
162 + if ( hs->phps_pattern != (char*) 0 )
163 + free( (void*) hs->phps_pattern );
164 if ( hs->charset != (char*) 0 )
165 free( (void*) hs->charset );
166 if ( hs->url_pattern != (char*) 0 )
168 if ( hs->local_pattern != (char*) 0 )
169 free( (void*) hs->local_pattern );
170 free( (void*) hs );
183 httpd_server* hs;
188 hs->port = port;
189 + hs->php_pattern = strdup(php_pattern);
190 + hs->phps_pattern = strdup(phps_pattern);
192 hs->cgi_pattern = (char*) 0;
195 while ( ( cp = strstr( hs->cgi_pattern, "|/" ) ) != (char*) 0 )
198 - hs->charset = strdup( charset );
199 + hs->charset = strdup( charset );
200 hs->cwd = strdup( cwd );
201 if ( hs->cwd == (char*) 0 )
210 if ( hs->binding_hostname == (char*) 0 )
211 syslog( LOG_INFO, "%.80s starting on port %d", SERVER_SOFTWARE, hs->port );
273 - fixed_type, sizeof(fixed_type), type, hc->hs->charset );
304 + smart_str_appends(&s, hc->hs->charset);
491 httpd_get_conn( httpd_server* hs, int listen_fd, httpd_conn* hc )
524 hc->hs = hs;
733 match( hc->hs->cgi_pattern, hc->expnfilename ) )
736 + if ( hc->hs->php_pattern != (char*) 0 &&
737 + match( hc->hs->php_pattern, hc->expnfilename)) {
741 + if ( hc->hs->phps_pattern != (char*) 0 &&
742 + match( hc->hs->phps_pattern, hc->expnfilename)) {
816 if ( hc->hs->no_log )
836 - if ( hc->hs->vhost && ! hc->tildemapped )
839 - hc->hostname == (char*) 0 ? hc->hs->server_hostname : hc->hostname,
852 if ( hc->hs->logfp != (FILE*) 0 )
889 - (void) fprintf( hc->hs->logfp,
894 - (void) fflush( hc->hs->logfp ); /* don't need to flush every time */
909 + smart_str_appendl(&bentries, hc->hs->log_date, hc->hs->log_date_len);
914 + if (hc->hs->vhost && ! hc->tildemapped) {
919 + smart_str_appends(&bentries, hc->hs->server_hostname);
940 + int fd = fileno(hc->hs->logfp);
996 httpd_server* hs;
1026 extern void httpd_set_logfp( httpd_server* hs, FILE* logfp );
1480 static httpd_server* hs = (httpd_server*) 0;
1562 if ( hs == (httpd_server*) 0 )
2316 + hs->log_date_len = sprintf( hs->log_date, "%s %c%04d", date_nozone, sign,