Setting tag bootmanager-5.3-3
[bootmanager.git] / source / libc-opendir-hack.c
index e7f6953..182a59d 100644 (file)
@@ -1,4 +1,3 @@
-<<<<<<< .working
 #define _GNU_SOURCE 1
 
 #include <stdio.h>
@@ -10,6 +9,7 @@
 #include <glob.h>
 #include <stdarg.h>
 #include <string.h>
+#include <sys/stat.h>
 
 #define INIT(x)        real_ ## x = dlsym(RTLD_NEXT, #x); \
                if (!real_ ## x) { \
@@ -137,21 +137,3 @@ static void _init()
   INIT(open)
   INIT(fopen)
 }
-=======
-#define _GNU_SOURCE 1
-
-#include <stdio.h>
-#include <sys/types.h>
-#include <fcntl.h>
-#include <dirent.h>
-
-#define NAME   "O_CLOEXEC-vs-O_ATOMICLOOKUP"
-
-DIR *opendir(const char *name)
-{
-  int fd = open(name, O_RDONLY|O_NDELAY|O_DIRECTORY|O_LARGEFILE);
-  if (fd == -1)
-    return NULL;
-  return fdopendir(fd);
-}
->>>>>>> .merge-right.r9766