findfs.h 497 B

1234567891011121314151617181920212223
  1. #ifndef __API_FINDFS_H__
  2. #define __API_FINDFS_H__
  3. #include <stdbool.h>
  4. #define _STR(x) #x
  5. #define STR(x) _STR(x)
  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
  13. const char *find_mountpoint(const char *fstype, long magic,
  14. char *mountpoint, int len,
  15. const char * const *known_mountpoints);
  16. int valid_mountpoint(const char *mount, long magic);
  17. #endif /* __API_FINDFS_H__ */