From 21d9cd11fe5c93963dea276e17cb6a31ac6bbc94 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Wed, 18 Mar 2020 16:16:35 -0400 Subject: [PATCH] chore: flatten http directory --- runtime/include/{http => }/http_parser_settings.h | 4 ++-- runtime/include/{http => }/http_request.h | 0 runtime/include/{http => }/http_response.h | 0 runtime/include/libuv_callbacks.h | 2 +- runtime/include/sandbox.h | 4 ++-- runtime/src/{http => }/http_request.c | 2 +- runtime/src/{http => }/http_response.c | 2 +- runtime/src/libc/uvio.c | 2 +- runtime/src/runtime.c | 4 ++-- 9 files changed, 10 insertions(+), 10 deletions(-) rename runtime/include/{http => }/http_parser_settings.h (98%) rename runtime/include/{http => }/http_request.h (100%) rename runtime/include/{http => }/http_response.h (100%) rename runtime/src/{http => }/http_request.c (94%) rename runtime/src/{http => }/http_response.c (99%) diff --git a/runtime/include/http/http_parser_settings.h b/runtime/include/http_parser_settings.h similarity index 98% rename from runtime/include/http/http_parser_settings.h rename to runtime/include/http_parser_settings.h index f833332..185fb85 100644 --- a/runtime/include/http/http_parser_settings.h +++ b/runtime/include/http_parser_settings.h @@ -1,8 +1,8 @@ #ifndef SRFT_HTTP_PARSER_SETTINGS_H #define SRFT_HTTP_PARSER_SETTINGS_H -#include -#include +#include +#include #include #include diff --git a/runtime/include/http/http_request.h b/runtime/include/http_request.h similarity index 100% rename from runtime/include/http/http_request.h rename to runtime/include/http_request.h diff --git a/runtime/include/http/http_response.h b/runtime/include/http_response.h similarity index 100% rename from runtime/include/http/http_response.h rename to runtime/include/http_response.h diff --git a/runtime/include/libuv_callbacks.h b/runtime/include/libuv_callbacks.h index 42ded7d..ad68546 100644 --- a/runtime/include/libuv_callbacks.h +++ b/runtime/include/libuv_callbacks.h @@ -9,7 +9,7 @@ #include #include #include -#include +#include /** * TODO: is there some weird edge case where a UNICODE character might be split between reads? Do we care? diff --git a/runtime/include/sandbox.h b/runtime/include/sandbox.h index fbfc5a2..8b9cb2b 100644 --- a/runtime/include/sandbox.h +++ b/runtime/include/sandbox.h @@ -6,8 +6,8 @@ #include "arch/context.h" #include "deque.h" -#include -#include +#include +#include #include "module.h" #include "ps_list.h" #include "softint.h" diff --git a/runtime/src/http/http_request.c b/runtime/src/http_request.c similarity index 94% rename from runtime/src/http/http_request.c rename to runtime/src/http_request.c index 88f7124..bff2ee1 100644 --- a/runtime/src/http/http_request.c +++ b/runtime/src/http_request.c @@ -1,4 +1,4 @@ -#include +#include /*************************************************** * General HTTP Request Functions * diff --git a/runtime/src/http/http_response.c b/runtime/src/http_response.c similarity index 99% rename from runtime/src/http/http_response.c rename to runtime/src/http_response.c index d589546..ab2cad0 100644 --- a/runtime/src/http/http_response.c +++ b/runtime/src/http_response.c @@ -1,4 +1,4 @@ -#include +#include #ifdef USE_HTTP_UVIO #include diff --git a/runtime/src/libc/uvio.c b/runtime/src/libc/uvio.c index d8ca440..ab11c6c 100644 --- a/runtime/src/libc/uvio.c +++ b/runtime/src/libc/uvio.c @@ -1,7 +1,7 @@ #include #include #include -#include +#include #include // What should we tell the child program its UID and GID are? diff --git a/runtime/src/runtime.c b/runtime/src/runtime.c index 1f0c536..e5f82d1 100644 --- a/runtime/src/runtime.c +++ b/runtime/src/runtime.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include "sandbox_request.h" @@ -264,7 +264,7 @@ worker_thread__pull_and_process_sandbox_requests(void) while (total_sandboxes_pulled < SBOX_PULL_MAX) { sandbox_request_t *sandbox_request; - if ((sandbox_request = sandbox_request__steal_from_global_dequeue()) == NULL) break; + if ((sandbox_request = sandbox_request__steal_from_dequeue()) == NULL) break; // Actually allocate the sandbox for the requests that we've pulled struct sandbox *sandbox = sandbox__allocate(sandbox_request->module, sandbox_request->arguments, sandbox_request->socket_descriptor,