Libecoli
0.11.1
Extensible COmmand LIne library
Loading...
Searching...
No Matches
node_file.h
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright 2016, Olivier MATZ <zer0@droids-corp.org>
3
*/
4
12
13
#pragma once
14
15
#include <dirent.h>
16
#include <sys/stat.h>
17
18
#include <ecoli/node.h>
19
21
struct
ec_node_file_ops
{
22
int (*lstat)(
const
char
*pathname,
struct
stat *buf);
23
DIR *(*opendir)(
const
char
*name);
24
struct
dirent *(*readdir)(DIR *dirp);
25
int (*closedir)(DIR *dirp);
26
int (*dirfd)(DIR *dirp);
27
int (*fstatat)(
int
dirfd,
const
char
*pathname,
struct
stat *buf,
int
flags);
28
};
29
34
void
ec_node_file_set_ops
(
const
struct
ec_node_file_ops
*ops);
35
ec_node_file_set_ops
void ec_node_file_set_ops(const struct ec_node_file_ops *ops)
ec_node_file_ops
Definition
node_file.h:21
include
ecoli
node_file.h
Generated by
1.14.0