1/*- 2 * See the file LICENSE for redistribution information. 3 * 4 * Copyright (c) 1999,2008 Oracle. All rights reserved. 5 * 6 * $Id: os_vx_config.c,v 12.9 2008/01/08 20:58:45 bostic 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 */ 17int 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 */ 32int 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 */ 42int 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 */ 52int 53__os_support_replication() 54{ 55 return (1); 56} 57