Lines Matching refs:map

42 #define MAP_FILE_MAGIC_TYPE "application/x-type-map"
203 request_rec *sub_req; /* May be NULL (is, for map files) */
205 const char *file_name; /* Set to 'this' (for map file body content) */
206 apr_off_t body; /* Only for map file body content */
535 /* Given the text of the Content-Languages: line from the var map file,
732 * Parsing type-map files, in Roy's meta/http format augmented with
744 static enum header_state get_header_line(char *buffer, int len, apr_file_t *map)
753 if (apr_file_gets(buffer, MAX_STRING_LEN, map) != APR_SUCCESS) {
780 while (apr_file_getc(&c, map) != APR_EOF) {
783 while (apr_file_getc(&c, map) != APR_EOF && c != '\n') {
794 if(apr_file_getc(&c, map) != APR_SUCCESS)
798 apr_file_ungetc(c, map);
807 && (apr_file_getc(&c, map)) != APR_EOF
819 apr_file_ungetc(c, map);
828 apr_file_t *map)
843 if (apr_file_read(map, buffer, len) != APR_SUCCESS) {
868 if (apr_file_seek(map, APR_CUR, &pos) != APR_SUCCESS) {
920 "Syntax error in type map, no ':' in %s for header %s",
931 "Syntax error in type map --- no header body: %s for %s",
939 static int read_type_map(apr_file_t **map, negotiation_state *neg,
950 if (!map)
951 map = &map_;
956 if ((status = apr_file_open(map, rr->filename, APR_READ | APR_BUFFERED,
959 "cannot access type map file: %s", rr->filename);
972 hstate = get_header_line(buffer, MAX_STRING_LEN, *map);
1003 "Parse error in type map, Content-Length: "
1036 if ((mime_info.body = get_body(buffer, &len, tag, *map)) < 0) {
1038 "Syntax error in type map, no end tag '%s' "
1089 * as the map...
1249 /* If it's a map file, we use that instead of the map
1255 !strcmp(sub_req->handler, "type-map"))) {
1739 /* Determining the content length --- if the map didn't tell us,
2585 * get the variant from a type map. This needs to be fixed
2586 * (without breaking things if the type map specifies a
2737 /* This catches the error that a transparent type map selects a
2740 * XXX: We do not signal an error if a transparent type map
2756 /* This catches the error that a transparent type map recursively
2757 * selects, as the best variant, another type map which itself
2761 * type map recursion. There are some borderline recursive type
2762 * map arrangements which would not produce transparent
2774 * want recursive type map support which ensures propagation of
2775 * type map changes into HTTP/1.1 caches that handle Vary, we
2779 if (sub_req->handler && strcmp(sub_req->handler, "type-map") == 0) {
2839 /* We can't be transparent if we are a map file in the middle
2851 * variant when processing a type map.
2970 apr_file_t *map;
2976 if(strcmp(r->handler,MAP_FILE_MAGIC_TYPE) && strcmp(r->handler,"type-map"))
2980 if ((res = read_type_map(&map, neg, r))) {
3048 apr_brigade_insert_file(bb, map, best->body, best->bytes, r->pool);
3121 /* We got this out of a map file, so we don't actually have