fs.h 445 字节
Newer Older
1 2
#ifndef __API_FS__
#define __API_FS__
3

4 5 6 7 8 9 10 11
/*
 * On most systems <limits.h> would have given us this, but  not on some systems
 * (e.g. GNU/Hurd).
 */
#ifndef PATH_MAX
#define PATH_MAX 4096
#endif

12 13
const char *sysfs__mountpoint(void);
const char *procfs__mountpoint(void);
14
const char *debugfs__mountpoint(void);
15 16

int filename__read_int(const char *filename, int *value);
17
int sysctl__read_int(const char *sysctl, int *value);
18
#endif /* __API_FS__ */