2 * See the file LICENSE for redistribution information.
4 * Copyright (c) 1997-2009 Oracle. All rights reserved.
15 * Open a file descriptor (including page size and log size information).
18 __os_open(env, name, page_size, flags, mode, fhpp)
21 u_int32_t page_size, flags;
28 COMPQUIET(page_size, 0);
31 (DB_OSO_ABSMODE | DB_OSO_CREATE | DB_OSO_DIRECT | DB_OSO_DSYNC |\
32 DB_OSO_EXCL | DB_OSO_RDONLY | DB_OSO_REGION | DB_OSO_SEQ | \
33 DB_OSO_TEMP | DB_OSO_TRUNC)
34 if ((ret = __db_fchk(env, "__os_open", flags, OKFLAGS)) != 0)
38 if (LF_ISSET(DB_OSO_CREATE))
39 oflags |= _OFM_CREATE;
41 if (LF_ISSET(DB_OSO_RDONLY))
44 oflags |= _OFM_READWRITE;
46 if ((ret = __os_openhandle(env, name, oflags, mode, fhpp)) != 0)
48 if (LF_ISSET(DB_OSO_REGION))
49 F_SET(fhp, DB_FH_REGION);