Remove definition of builtin function
[platform/upstream/db4.git] / os_vxworks / os_vx_config.c
1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 1999-2009 Oracle.  All rights reserved.
5  *
6  * $Id$
7  */
8
9 #include "db_config.h"
10
11 #include "db_int.h"
12
13 /*
14  * __os_fs_notzero --
15  *      Return 1 if allocated filesystem blocks are not zeroed.
16  */
17 int
18 __os_fs_notzero()
19 {
20         /*
21          * Some VxWorks FS drivers do not zero-fill pages that were never
22          * explicitly written to the file, they give you random garbage,
23          * and that breaks Berkeley DB.
24          */
25         return (1);
26 }
27
28 /*
29  * __os_support_direct_io --
30  *      Return 1 if we support direct I/O.
31  */
32 int
33 __os_support_direct_io()
34 {
35         return (0);
36 }
37
38 /*
39  * __os_support_db_register --
40  *      Return 1 if the system supports DB_REGISTER.
41  */
42 int
43 __os_support_db_register()
44 {
45         return (0);
46 }
47
48 /*
49  * __os_support_replication --
50  *      Return 1 if the system supports replication.
51  */
52 int
53 __os_support_replication()
54 {
55         return (1);
56 }