mountlist.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* mountlist.h -- declarations for list of mounted filesystems
  2. Copyright (C) 1991, 1992, 1998, 2000 Free Software Foundation, Inc.
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 2, or (at your option)
  6. any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software Foundation,
  13. Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
  14. /* A mount table entry. */
  15. struct mount_entry
  16. {
  17. char *me_devname; /* Device node pathname, including "/dev/". */
  18. char *me_mountdir; /* Mount point directory pathname. */
  19. char *me_type; /* "nfs", "4.2", etc. */
  20. dev_t me_dev; /* Device number of me_mountdir. */
  21. unsigned int me_dummy : 1; /* Nonzero for dummy filesystems. */
  22. unsigned int me_remote : 1; /* Nonzero for remote fileystems. */
  23. struct mount_entry *me_next;
  24. };
  25. #ifndef PARAMS
  26. # if defined PROTOTYPES || (defined __STDC__ && __STDC__)
  27. # define PARAMS(Args) Args
  28. # else
  29. # define PARAMS(Args) ()
  30. # endif
  31. #endif
  32. struct mount_entry *read_filesystem_list PARAMS ((int need_fs_type));
  33. #ifndef ME_DUMMY
  34. # define ME_DUMMY(fs_name, fs_type) \
  35. (!strcmp (fs_type, "auto") \
  36. || !strcmp (fs_type, "autofs") \
  37. /* for Irix 6.5 */ \
  38. || !strcmp (fs_type, "ignore"))
  39. #endif
  40. #ifndef ME_REMOTE
  41. # define ME_REMOTE(fs_name, fs_type) (strchr (fs_name, ':') != 0)
  42. #endif