aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/smbfs/mount_smbfs/mntopts.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/smbfs/mount_smbfs/mntopts.h')
-rw-r--r--contrib/smbfs/mount_smbfs/mntopts.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/contrib/smbfs/mount_smbfs/mntopts.h b/contrib/smbfs/mount_smbfs/mntopts.h
index 5b6d52e69fee..c14b27cf04de 100644
--- a/contrib/smbfs/mount_smbfs/mntopts.h
+++ b/contrib/smbfs/mount_smbfs/mntopts.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)mntopts.h 8.7 (Berkeley) 3/29/95
- * $Id: mntopts.h,v 1.1 2000/03/29 01:26:41 bp Exp $
+ * $Id: mntopts.h,v 1.2 2001/08/22 03:32:52 bp Exp $
*/
struct mntopt {
@@ -43,19 +43,25 @@ struct mntopt {
/* User-visible MNT_ flags. */
#define MOPT_ASYNC { "async", 0, MNT_ASYNC, 0 }
+#ifndef APPLE
#define MOPT_NOATIME { "atime", 1, MNT_NOATIME, 0 }
+#endif
#define MOPT_NODEV { "dev", 1, MNT_NODEV, 0 }
#define MOPT_NOEXEC { "exec", 1, MNT_NOEXEC, 0 }
#define MOPT_NOSUID { "suid", 1, MNT_NOSUID, 0 }
+#ifndef APPLE
#define MOPT_NOSYMFOLLOW { "symfollow", 1, MNT_NOSYMFOLLOW, 0 }
+#endif
#define MOPT_RDONLY { "rdonly", 0, MNT_RDONLY, 0 }
#define MOPT_SYNC { "sync", 0, MNT_SYNCHRONOUS, 0 }
#define MOPT_UNION { "union", 0, MNT_UNION, 0 }
#define MOPT_USERQUOTA { "userquota", 0, 0, 0 }
#define MOPT_GROUPQUOTA { "groupquota", 0, 0, 0 }
+#ifndef APPLE
#define MOPT_NOCLUSTERR { "clusterr", 1, MNT_NOCLUSTERR, 0 }
#define MOPT_NOCLUSTERW { "clusterw", 1, MNT_NOCLUSTERW, 0 }
#define MOPT_SUIDDIR { "suiddir", 0, MNT_SUIDDIR, 0 }
+#endif
/* Control flags. */
#define MOPT_FORCE { "force", 0, MNT_FORCE, 0 }
@@ -72,6 +78,17 @@ struct mntopt {
MOPT_AUTO
/* Standard options which all mounts can understand. */
+#ifdef APPLE
+#define MOPT_STDOPTS \
+ MOPT_USERQUOTA, \
+ MOPT_GROUPQUOTA, \
+ MOPT_FSTAB_COMPAT, \
+ MOPT_NODEV, \
+ MOPT_NOEXEC, \
+ MOPT_NOSUID, \
+ MOPT_RDONLY, \
+ MOPT_UNION
+#else
#define MOPT_STDOPTS \
MOPT_USERQUOTA, \
MOPT_GROUPQUOTA, \
@@ -86,6 +103,7 @@ struct mntopt {
MOPT_UNION, \
MOPT_NOCLUSTERR, \
MOPT_NOCLUSTERW
+#endif /* APPLE */
void getmntopts __P((const char *, const struct mntopt *, int *, int *));
extern int getmnt_silent;