Lines Matching refs:size
44 static char *mapfile(const char *fn, size_t *size)
62 *size = st.st_size;
73 static void unmapfile(char *map, size_t size)
76 munmap(map, roundup(size, ps));
83 jsmntok_t *parse_json(const char *fn, char **map, size_t *size, int *len)
90 *map = mapfile(fn, size);
94 sz = *size * 16;
99 res = jsmn_parse(&parser, *map, *size, tokens,
111 unmapfile(*map, *size);
115 void free_json(char *map, size_t size, jsmntok_t *tokens)
118 unmapfile(map, size);