am_compat.h (82794) | am_compat.h (119679) |
---|---|
1/* 2 * am_compat.h: 3 * 4 * This file contains compatibility functions and macros, all of which 5 * should be auto-discovered, but for one reason or another (mostly 6 * brain-damage on the part of system designers and header files) they cannot. 7 * 8 * Each compatibility macro/function must include instructions on how/when --- 141 unchanged lines hidden (view full) --- 150#endif /* defined(MNT2_GEN_OPT_OVERLAY) && !defined(MNTTAB_OPT_OVERLAY) */ 151 152/* 153 * Complete MNTTAB_OPT_* options and their inverse based on MNT2_GEN_OPT_* 154 * options. 155 */ 156#if defined(MNT2_GEN_OPT_NODEV) && !defined(MNTTAB_OPT_NODEV) 157# define MNTTAB_OPT_NODEV "nodev" | 1/* 2 * am_compat.h: 3 * 4 * This file contains compatibility functions and macros, all of which 5 * should be auto-discovered, but for one reason or another (mostly 6 * brain-damage on the part of system designers and header files) they cannot. 7 * 8 * Each compatibility macro/function must include instructions on how/when --- 141 unchanged lines hidden (view full) --- 150#endif /* defined(MNT2_GEN_OPT_OVERLAY) && !defined(MNTTAB_OPT_OVERLAY) */ 151 152/* 153 * Complete MNTTAB_OPT_* options and their inverse based on MNT2_GEN_OPT_* 154 * options. 155 */ 156#if defined(MNT2_GEN_OPT_NODEV) && !defined(MNTTAB_OPT_NODEV) 157# define MNTTAB_OPT_NODEV "nodev" |
158/* this is missing under some versions of Linux */ 159# ifndef MNTTAB_OPT_DEV 160# define MNTTAB_OPT_DEV "dev" 161# endif /* not MNTTAB_OPT_DEV */ | |
162#endif /* defined(MNT2_GEN_OPT_NODEV) && !defined(MNTTAB_OPT_NODEV) */ 163 164#if defined(MNT2_GEN_OPT_NOEXEC) && !defined(MNTTAB_OPT_NOEXEC) 165# define MNTTAB_OPT_NOEXEC "noexec" 166/* this is missing under some versions of Linux */ 167# ifndef MNTTAB_OPT_EXEC 168# define MNTTAB_OPT_EXEC "exec" 169# endif /* not MNTTAB_OPT_EXEC */ --- 66 unchanged lines hidden (view full) --- 236 * hsfs_args should be a single integer used as a bit-field for options. 237 * so this code has to be fixed later. -Erez. 238 */ 239struct hsfs_args { 240 char *fspec; /* name of filesystem to mount */ 241 int norrip; 242}; 243# define cdfs_args_t struct hsfs_args | 158#endif /* defined(MNT2_GEN_OPT_NODEV) && !defined(MNTTAB_OPT_NODEV) */ 159 160#if defined(MNT2_GEN_OPT_NOEXEC) && !defined(MNTTAB_OPT_NOEXEC) 161# define MNTTAB_OPT_NOEXEC "noexec" 162/* this is missing under some versions of Linux */ 163# ifndef MNTTAB_OPT_EXEC 164# define MNTTAB_OPT_EXEC "exec" 165# endif /* not MNTTAB_OPT_EXEC */ --- 66 unchanged lines hidden (view full) --- 232 * hsfs_args should be a single integer used as a bit-field for options. 233 * so this code has to be fixed later. -Erez. 234 */ 235struct hsfs_args { 236 char *fspec; /* name of filesystem to mount */ 237 int norrip; 238}; 239# define cdfs_args_t struct hsfs_args |
244# define HAVE_FIELD_CDFS_ARGS_T_NORRIP | 240# define HAVE_CDFS_ARGS_T_NORRIP |
245#endif /* not cdfs_args_t */ 246 247/* 248 * if does not define struct pc_args, assume integer bit-field (irix6) 249 */ 250#if defined(HAVE_FS_PCFS) && !defined(pcfs_args_t) 251# define pcfs_args_t u_int 252#endif /* defined(HAVE_FS_PCFS) && !defined(pcfs_args_t) */ --- 7 unchanged lines hidden (view full) --- 260 261/* 262 * if does not define struct efs_args, assume integer bit-field (linux) 263 */ 264#if defined(HAVE_FS_EFS) && !defined(efs_args_t) 265# define efs_args_t u_int 266#endif /* defined(HAVE_FS_EFS) && !defined(efs_args_t) */ 267 | 241#endif /* not cdfs_args_t */ 242 243/* 244 * if does not define struct pc_args, assume integer bit-field (irix6) 245 */ 246#if defined(HAVE_FS_PCFS) && !defined(pcfs_args_t) 247# define pcfs_args_t u_int 248#endif /* defined(HAVE_FS_PCFS) && !defined(pcfs_args_t) */ --- 7 unchanged lines hidden (view full) --- 256 257/* 258 * if does not define struct efs_args, assume integer bit-field (linux) 259 */ 260#if defined(HAVE_FS_EFS) && !defined(efs_args_t) 261# define efs_args_t u_int 262#endif /* defined(HAVE_FS_EFS) && !defined(efs_args_t) */ 263 |
268#if defined(HAVE_FS_AUTOFS) && defined(MOUNT_TYPE_AUTOFS) && !defined(MNTTYPE_AUTOFS) 269# define MNTTYPE_AUTOFS "autofs" 270#endif /* defined(HAVE_FS_AUTOFS) && defined(MOUNT_TYPE_AUTOFS) && !defined(MNTTYPE_AUTOFS) */ | 264/* 265 * if does not define struct xfs_args, assume integer bit-field (linux) 266 */ 267#if defined(HAVE_FS_XFS) && !defined(xfs_args_t) 268# define xfs_args_t u_int 269#endif /* defined(HAVE_FS_XFS) && !defined(xfs_args_t) */ |
271 272/* 273 * If NFS3, then make sure that "proto" and "vers" mnttab options 274 * are available. 275 */ 276#ifdef HAVE_FS_NFS3 277# ifndef MNTTAB_OPT_VERS 278# define MNTTAB_OPT_VERS "vers" 279# endif /* not MNTTAB_OPT_VERS */ 280# ifndef MNTTAB_OPT_PROTO 281# define MNTTAB_OPT_PROTO "proto" 282# endif /* not MNTTAB_OPT_PROTO */ 283#endif /* not HAVE_FS_NFS3 */ 284 285#endif /* not _AM_COMPAT_H */ | 270 271/* 272 * If NFS3, then make sure that "proto" and "vers" mnttab options 273 * are available. 274 */ 275#ifdef HAVE_FS_NFS3 276# ifndef MNTTAB_OPT_VERS 277# define MNTTAB_OPT_VERS "vers" 278# endif /* not MNTTAB_OPT_VERS */ 279# ifndef MNTTAB_OPT_PROTO 280# define MNTTAB_OPT_PROTO "proto" 281# endif /* not MNTTAB_OPT_PROTO */ 282#endif /* not HAVE_FS_NFS3 */ 283 284#endif /* not _AM_COMPAT_H */ |