summaryrefslogtreecommitdiff
path: root/test3-a.c
diff options
context:
space:
mode:
authoreroen2015-07-13 00:08:15 +0200
committereroen2015-07-13 00:11:05 +0200
commit6b97d2952aca4692c7d1464d9ac901fef8b52ea9 (patch)
treec8415496d839b3a560c64c2b281b957e925be389 /test3-a.c
parent1ff4e0626696cce79347cea1f8af03ff0df5c3fd (diff)
downloaddynsymlink-master.tar.gz
dynsymlink-master.tar.bz2
dynsymlink-master.tar.xz
Shabbily implement overlay for open()HEADmaster
Diffstat (limited to 'test3-a.c')
-rw-r--r--test3-a.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/test3-a.c b/test3-a.c
new file mode 100644
index 0000000..632967f
--- /dev/null
+++ b/test3-a.c
@@ -0,0 +1,25 @@
+/*
+ * test3
+ */
+
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <unistd.h>
+
+int main(int argc, char *argv[])
+{
+ printf("This is test3-a\n");
+ int f;
+ f = open(argv[1], O_RDONLY);
+ if(f < 0) {
+ perror("");
+ return 1;
+ }
+ if(close(f) != 0) {
+ perror("");
+ return 1;
+ }
+ return 0;
+}