Home
last modified time | relevance | path

Searched refs:whole_path (Results 1 – 1 of 1) sorted by relevance

/external/libevent/sample/
Dhttp-server.c167 char *whole_path = NULL; in send_document_cb() local
203 if (!(whole_path = malloc(len))) { in send_document_cb()
207 evutil_snprintf(whole_path, len, "%s/%s", docroot, decoded_path); in send_document_cb()
209 if (stat(whole_path, &st)<0) { in send_document_cb()
234 dirlen = strlen(whole_path); in send_document_cb()
236 memcpy(pattern, whole_path, dirlen); in send_document_cb()
245 if (!(d = opendir(whole_path))) in send_document_cb()
290 if ((fd = open(whole_path, O_RDONLY)) < 0) { in send_document_cb()
317 if (whole_path) in send_document_cb()
318 free(whole_path); in send_document_cb()