return ret;
}
-int is_dir(const char *path)
+int lxc_is_dir(const char *path)
{
int ret;
struct stat statbuf;
return move_fd(fd);
}
-bool is_fs_type(const struct statfs *fs, fs_type_magic magic_val)
+bool lxc_is_fs_type(const struct statfs *fs, fs_type_magic magic_val)
{
return (fs->f_type == (fs_type_magic)magic_val);
}
if (ret < 0)
return false;
- return is_fs_type(&sb, magic_val);
+ return lxc_is_fs_type(&sb, magic_val);
}
bool fhas_fs_type(int fd, fs_type_magic magic_val)
if (ret < 0)
return false;
- return is_fs_type(&sb, magic_val);
+ return lxc_is_fs_type(&sb, magic_val);
}
FILE *fopen_cloexec(const char *path, const char *mode)
return f;
}
-int fd_cloexec(int fd, bool cloexec)
+int lxc_fd_cloexec(int fd, bool cloexec)
{
int oflags, nflags;