aboutsummaryrefslogtreecommitdiffstats
path: root/conf/trap/trap_hpux.h
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2016-08-31 00:08:49 +0000
committerCy Schubert <cy@FreeBSD.org>2016-08-31 00:08:49 +0000
commitca57057f598bfc7119f79f71bf38ec88244ab396 (patch)
tree051f78ef258707b493cc7cb21569b6949915f6c7 /conf/trap/trap_hpux.h
parente66b16bf080ead1c51f321eaf56710c771778706 (diff)
downloadsrc-vendor/amd.tar.gz
src-vendor/amd.zip
Import am-utils 6.2,vendor/amd/6.2vendor/amd
Suggested by: pfg@ Obtained from: ftp://ftp.am-utils.org/pub/am-utils/
Notes
Notes: svn path=/vendor/amd/dist/; revision=305100 svn path=/vendor/amd/6.2/; revision=305101; tag=vendor/amd/6.2
Diffstat (limited to 'conf/trap/trap_hpux.h')
-rw-r--r--conf/trap/trap_hpux.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/conf/trap/trap_hpux.h b/conf/trap/trap_hpux.h
new file mode 100644
index 000000000000..ba6352afa497
--- /dev/null
+++ b/conf/trap/trap_hpux.h
@@ -0,0 +1,15 @@
+/* $srcdir/conf/trap/trap_hpux.h */
+extern int mount_hpux(MTYPE_TYPE type, const char *dir, int flags, caddr_t data);
+#define MOUNT_TRAP(type, mnt, flags, mnt_data) mount_hpux(type, mnt->mnt_dir, flags, mnt_data)
+
+/*
+ * HPUX 9.x does is not even consistently inconsistent with itself.
+ * It defines an integer mount type for PCFS, but not a string type as
+ * with all other mount types.
+ *
+ * XXX: remove this ugly hack when HPUX 9.0 is defunct.
+ */
+#if MOUNT_TYPE_PCFS == MOUNT_PC
+# undef MOUNT_TYPE_PCFS
+# define MOUNT_TYPE_PCFS "pcfs"
+#endif /* MOUNT_TYPE_PCFS == MOUNT_PC */