fs.h 392 B

1234567891011121314151617
  1. #ifndef __API_FS__
  2. #define __API_FS__
  3. #ifndef SYSFS_MAGIC
  4. #define SYSFS_MAGIC 0x62656572
  5. #endif
  6. #ifndef PROC_SUPER_MAGIC
  7. #define PROC_SUPER_MAGIC 0x9fa0
  8. #endif
  9. const char *sysfs__mountpoint(void);
  10. const char *procfs__mountpoint(void);
  11. int filename__read_int(const char *filename, int *value);
  12. int sysctl__read_int(const char *sysctl, int *value);
  13. #endif /* __API_FS__ */