summaryrefslogtreecommitdiff
path: root/src/os_vxworks/os_vx_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os_vxworks/os_vx_config.c')
-rw-r--r--src/os_vxworks/os_vx_config.c56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/os_vxworks/os_vx_config.c b/src/os_vxworks/os_vx_config.c
new file mode 100644
index 00000000..649a3b4a
--- /dev/null
+++ b/src/os_vxworks/os_vx_config.c
@@ -0,0 +1,56 @@
+/*-
+ * See the file LICENSE for redistribution information.
+ *
+ * Copyright (c) 1999, 2012 Oracle and/or its affiliates. All rights reserved.
+ *
+ * $Id$
+ */
+
+#include "db_config.h"
+
+#include "db_int.h"
+
+/*
+ * __os_fs_notzero --
+ * Return 1 if allocated filesystem blocks are not zeroed.
+ */
+int
+__os_fs_notzero()
+{
+ /*
+ * Some VxWorks FS drivers do not zero-fill pages that were never
+ * explicitly written to the file, they give you random garbage,
+ * and that breaks Berkeley DB.
+ */
+ return (1);
+}
+
+/*
+ * __os_support_direct_io --
+ * Return 1 if we support direct I/O.
+ */
+int
+__os_support_direct_io()
+{
+ return (0);
+}
+
+/*
+ * __os_support_db_register --
+ * Return 1 if the system supports DB_REGISTER.
+ */
+int
+__os_support_db_register()
+{
+ return (0);
+}
+
+/*
+ * __os_support_replication --
+ * Return 1 if the system supports replication.
+ */
+int
+__os_support_replication()
+{
+ return (1);
+}