summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Manuel Tomás <jtomas1815@gmail.com>2020-03-25 06:02:43 -0300
committerJuan Manuel Tomás <jtomas1815@gmail.com>2020-03-25 06:02:43 -0300
commit8a4694de398cbcfc1f058daf75065da492f9eea6 (patch)
treeacdb4631ce87836286be45b8bfeeff9fdad74786
downloadjet-8a4694de398cbcfc1f058daf75065da492f9eea6.tar.gz
jet-8a4694de398cbcfc1f058daf75065da492f9eea6.zip
Go! Go! Go!
-rw-r--r--.gitignore1
-rw-r--r--Makefile2
-rw-r--r--jet.c13
3 files changed, 16 insertions, 0 deletions
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 <stdlib.h>
+#include <stdio.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <unistd.h>
+
+int main(int argc, char *argv[]) {
+ if (argc > 1) {
+ int file_descriptor = open(argv[1], O_RDWR);
+ close(file_descriptor);
+ }
+ return 0;
+}