#define _GNU_SOURCE #include "sourcefs.h" #include static struct source_files_handle { int root_fd; } handle; int source_init(const char *root_path) { int root_fd = open(root_path, O_PATH); if (root_fd == -1) { return -1; } handle.root_fd = root_fd; return 0; }