Loading...
Searching...
No Matches
node_file.h
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2016, Olivier MATZ <zer0@droids-corp.org>
*/
#pragma once
#include <dirent.h>
#include <sys/stat.h>
#include <ecoli/node.h>
struct ec_node_file_ops {
int (*lstat)(const char *pathname, struct stat *buf);
DIR *(*opendir)(const char *name);
struct dirent *(*readdir)(DIR *dirp);
int (*closedir)(DIR *dirp);
int (*dirfd)(DIR *dirp);
int (*fstatat)(int dirfd, const char *pathname, struct stat *buf, int flags);
};
void ec_node_file_set_ops(const struct ec_node_file_ops *ops);
ec_node_file_set_ops
void ec_node_file_set_ops(const struct ec_node_file_ops *ops)
Set custom file operations for testing.
ec_node_file_ops
Definition node_file.h:21