From 8a4694de398cbcfc1f058daf75065da492f9eea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Tom=C3=A1s?= Date: Wed, 25 Mar 2020 06:02:43 -0300 Subject: Go! Go! Go! --- .gitignore | 1 + Makefile | 2 ++ jet.c | 13 +++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 jet.c diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2edc120 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +jet diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e2197f6 --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +jet: Makefile *.c + gcc -ggdb -O0 -fno-builtin -Wall -lcurses jet.c -o jet diff --git a/jet.c b/jet.c new file mode 100644 index 0000000..d600ffc --- /dev/null +++ b/jet.c @@ -0,0 +1,13 @@ +#include +#include +#include +#include +#include + +int main(int argc, char *argv[]) { + if (argc > 1) { + int file_descriptor = open(argv[1], O_RDWR); + close(file_descriptor); + } + return 0; +} -- cgit v1.2.3