summaryrefslogtreecommitdiff
path: root/db/os/os_config.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-07-16 16:48:14 +0300
committerPanu Matilainen <pmatilai@redhat.com>2007-07-16 16:48:14 +0300
commit2cfd3012bfcb5c5c61bbaf662ef084e0ab789d79 (patch)
treee12ee52087506ac8c7a5eee83b17497d98df2d40 /db/os/os_config.c
parentb754fe19fd387ca5fe8e7c00ddaa25c898fa192f (diff)
downloadlibrpm-tizen-2cfd3012bfcb5c5c61bbaf662ef084e0ab789d79.tar.gz
librpm-tizen-2cfd3012bfcb5c5c61bbaf662ef084e0ab789d79.tar.bz2
librpm-tizen-2cfd3012bfcb5c5c61bbaf662ef084e0ab789d79.zip
Update internal BDB to version 4.5.20
Diffstat (limited to 'db/os/os_config.c')
-rw-r--r--db/os/os_config.c56
1 files changed, 49 insertions, 7 deletions
diff --git a/db/os/os_config.c b/db/os/os_config.c
index dcde0dca9..80ddc3d46 100644
--- a/db/os/os_config.c
+++ b/db/os/os_config.c
@@ -1,18 +1,14 @@
/*-
* See the file LICENSE for redistribution information.
*
- * Copyright (c) 1998-2004
- * Sleepycat Software. All rights reserved.
+ * Copyright (c) 1998-2006
+ * Oracle Corporation. All rights reserved.
*
- * $Id: os_config.c,v 11.15 2004/01/28 03:36:18 bostic Exp $
+ * $Id: os_config.c,v 12.6 2006/08/24 14:46:17 bostic Exp $
*/
#include "db_config.h"
-#ifndef NO_SYSTEM_INCLUDES
-#include <sys/types.h>
-#endif
-
#include "db_int.h"
/*
@@ -27,3 +23,49 @@ __os_fs_notzero()
/* Most filesystems zero out implicitly created pages. */
return (0);
}
+
+/*
+ * __os_support_direct_io --
+ * Return 1 if we support direct I/O.
+ *
+ * PUBLIC: int __os_support_direct_io __P((void));
+ */
+int
+__os_support_direct_io()
+{
+ int ret;
+
+ ret = 0;
+
+#ifdef HAVE_O_DIRECT
+ ret = 1;
+#endif
+#if defined(HAVE_DIRECTIO) && defined(DIRECTIO_ON)
+ ret = 1;
+#endif
+ return (ret);
+}
+
+/*
+ * __os_support_db_register --
+ * Return 1 if the system supports DB_REGISTER.
+ *
+ * PUBLIC: int __os_support_db_register __P((void));
+ */
+int
+__os_support_db_register()
+{
+ return (1);
+}
+
+/*
+ * __os_support_replication --
+ * Return 1 if the system supports replication.
+ *
+ * PUBLIC: int __os_support_replication __P((void));
+ */
+int
+__os_support_replication()
+{
+ return (1);
+}