Files
OrangePi_CM5/tools/lib/api/fs/fs.h
T

17 lines
392 B
C
Raw Normal View History

2013-12-09 17:14:24 +01:00
#ifndef __API_FS__
#define __API_FS__
2012-09-11 01:14:58 +03:00
#ifndef SYSFS_MAGIC
#define SYSFS_MAGIC 0x62656572
#endif
2013-11-05 15:14:46 +01:00
#ifndef PROC_SUPER_MAGIC
#define PROC_SUPER_MAGIC 0x9fa0
#endif
2013-12-09 17:14:24 +01:00
const char *sysfs__mountpoint(void);
const char *procfs__mountpoint(void);
int filename__read_int(const char *filename, int *value);
2014-12-11 13:37:10 -03:00
int sysctl__read_int(const char *sysctl, int *value);
2013-12-09 17:14:24 +01:00
#endif /* __API_FS__ */