fs.h 445 B

123456789101112131415161718
  1. #ifndef __API_FS__
  2. #define __API_FS__
  3. /*
  4. * On most systems <limits.h> would have given us this, but not on some systems
  5. * (e.g. GNU/Hurd).
  6. */
  7. #ifndef PATH_MAX
  8. #define PATH_MAX 4096
  9. #endif
  10. const char *sysfs__mountpoint(void);
  11. const char *procfs__mountpoint(void);
  12. const char *debugfs__mountpoint(void);
  13. int filename__read_int(const char *filename, int *value);
  14. int sysctl__read_int(const char *sysctl, int *value);
  15. #endif /* __API_FS__ */