~ubuntu-branches/ubuntu/edgy/rpm/edgy

« back to all changes in this revision

Viewing changes to db/os_win32/os_finit.c

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2002-01-22 20:56:57 UTC
  • Revision ID: james.westby@ubuntu.com-20020122205657-l74j50mr9z8ofcl5
Tags: upstream-4.0.3
ImportĀ upstreamĀ versionĀ 4.0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-
 
2
 * See the file LICENSE for redistribution information.
 
3
 *
 
4
 * Copyright (c) 1999-2001
 
5
 *      Sleepycat Software.  All rights reserved.
 
6
 */
 
7
 
 
8
#include "db_config.h"
 
9
 
 
10
#ifndef lint
 
11
static const char revid[] = "$Id: os_finit.c,v 11.11 2001/06/01 18:35:55 bostic Exp $";
 
12
#endif /* not lint */
 
13
 
 
14
#include "db_int.h"
 
15
 
 
16
/*
 
17
 * __os_fs_notzero --
 
18
 *      Return 1 if allocated filesystem blocks are not zeroed.
 
19
 *
 
20
 * PUBLIC: int __os_fs_notzero __P((void));
 
21
 */
 
22
int
 
23
__os_fs_notzero()
 
24
{
 
25
        /*
 
26
         * Windows/NT zero-fills pages that were never explicitly written to
 
27
         * the file.  Windows 95/98 gives you random garbage, and that breaks
 
28
         * Berkeley DB.
 
29
         */
 
30
        return (__os_is_winnt() ? 0 : 1);
 
31
}