source: trunk/third/rpm/db/os_win32/os_config.c @ 19079

Revision 19079, 624 bytes checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r19078, which included commits to RCS files with non-trunk default branches.
Line 
1/*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 1999-2002
5 *      Sleepycat Software.  All rights reserved.
6 */
7
8#include "db_config.h"
9
10#ifndef lint
11static const char revid[] = "Id: os_config.c,v 11.13 2002/01/11 15:53:06 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 */
20int
21__os_fs_notzero()
22{
23        /*
24         * Windows/NT zero-fills pages that were never explicitly written to
25         * the file.  Windows 95/98 gives you random garbage, and that breaks
26         * Berkeley DB.
27         */
28        return (__os_is_winnt() ? 0 : 1);
29}
Note: See TracBrowser for help on using the repository browser.