f654bcb99d1e9b7a7823279135d97420b45b7861
[deliverable/linux.git] / tools / lib / api / fs / fs.h
1 #ifndef __API_FS__
2 #define __API_FS__
3
4 #include <stdbool.h>
5
6 /*
7 * On most systems <limits.h> would have given us this, but not on some systems
8 * (e.g. GNU/Hurd).
9 */
10 #ifndef PATH_MAX
11 #define PATH_MAX 4096
12 #endif
13
14 #define FS(name) \
15 const char *name##__mountpoint(void); \
16 const char *name##__mount(void); \
17 bool name##__configured(void); \
18
19 FS(sysfs)
20 FS(procfs)
21 FS(debugfs)
22 FS(tracefs)
23
24 #undef FS
25
26
27 int filename__read_int(const char *filename, int *value);
28 int sysctl__read_int(const char *sysctl, int *value);
29 #endif /* __API_FS__ */
This page took 0.030617 seconds and 4 git commands to generate.