From 5c8326ae953eee1cd36711a7769cff624f312864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Tom=C3=A1s?= Date: Fri, 10 Jul 2020 21:24:20 -0300 Subject: Implement file reading using read syscall --- jet.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'jet.cpp') diff --git a/jet.cpp b/jet.cpp index c4e997c..1a2e9c9 100644 --- a/jet.cpp +++ b/jet.cpp @@ -3,6 +3,8 @@ #include #include +#include +#include #include #include #include @@ -48,7 +50,7 @@ void parse_command(char *command, Client *client) { int main() { Buffer scratch("scratch"); - scratch.read("LICENSE"); + scratch.read_file("LICENSE"); int listener = create_listener(); -- cgit v1.2.3