1/*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 1998,2008 Oracle.  All rights reserved.
5 *
6 * $Id: os_config.c,v 12.11 2008/03/12 18:19:06 sue Exp $
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 * PUBLIC: int __os_fs_notzero __P((void));
18 */
19int
20__os_fs_notzero()
21{
22	/* Most filesystems zero out implicitly created pages. */
23	return (0);
24}
25
26/*
27 * __os_support_direct_io --
28 *	Return 1 if we support direct I/O.
29 *
30 * PUBLIC: int __os_support_direct_io __P((void));
31 */
32int
33__os_support_direct_io()
34{
35	int ret;
36
37	ret = 0;
38
39#ifdef HAVE_O_DIRECT
40	ret = 1;
41#endif
42#if defined(HAVE_DIRECTIO) && defined(DIRECTIO_ON)
43	ret = 1;
44#endif
45	return (ret);
46}
47
48/*
49 * __os_support_db_register --
50 *	Return 1 if the system supports DB_REGISTER.
51 *
52 * PUBLIC: int __os_support_db_register __P((void));
53 */
54int
55__os_support_db_register()
56{
57	return (1);
58}
59
60/*
61 * __os_support_replication --
62 *	Return 1 if the system supports replication.
63 *
64 * PUBLIC: int __os_support_replication __P((void));
65 */
66int
67__os_support_replication()
68{
69	return (1);
70}
71