irqchip: Fix dependencies for archs w/o HAS_IOMEM
[linux/fpc-iii.git] / tools / lib / api / fs / fs.h
blobd024a7f682f69b27a4bba1aed7b8f1894d07b50f
1 #ifndef __API_FS__
2 #define __API_FS__
4 #include <stdbool.h>
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
14 #define FS(name) \
15 const char *name##__mountpoint(void); \
16 const char *name##__mount(void); \
17 bool name##__configured(void); \
19 FS(sysfs)
20 FS(procfs)
21 FS(debugfs)
22 FS(tracefs)
24 #undef FS
27 int filename__read_int(const char *filename, int *value);
28 int filename__read_ull(const char *filename, unsigned long long *value);
30 int sysctl__read_int(const char *sysctl, int *value);
31 int sysfs__read_int(const char *entry, int *value);
32 int sysfs__read_ull(const char *entry, unsigned long long *value);
33 #endif /* __API_FS__ */