14 int mkdir(const char *pathname, mode_t mode)
16 static int (*mkdir_orig)(const char *pathname, mode_t mode);
20 mkdir_orig = dlsym(RTLD_NEXT, "mkdir");
22 logfd = open("/tmp/mkdir.log", O_APPEND|O_WRONLY|O_CREAT, 0666);
24 dprintf(logfd, "%-8s %s\n",
25 stat(pathname, &st) == 0? "exist":"notexist",
29 return mkdir_orig(pathname, mode);