1N/A * See the file LICENSE for redistribution information. 1N/A * Copyright (c) 1997, 1998 1N/A * Sleepycat Software. All rights reserved. 1N/A#
endif /* not lint */ 1N/A * Open a file descriptor. 1N/A * PUBLIC: int __db_open __P((const char *, u_int32_t, u_int32_t, int, int *)); 1N/A * DB requires the semantic that two files opened at the same time 1N/A * with O_CREAT and O_EXCL set will return failure in at least one. 1N/A * We block every signal we can get our hands on so that the temporary 1N/A * file isn't left around if we're interrupted at the wrong time. Of 1N/A * course, if we drop core in-between the calls we'll hang forever, but 1N/A * that's probably okay. ;-) 1N/A /* Open the file. */ 1N/A /* Delete any temporary file; done for Win32 by _O_TEMPORARY. */ 1N/A * Deny access to any child process. 1N/A * VMS: does not have fd inheritance. 1N/A * Win32: done by O_NOINHERIT. 1N/A * PUBLIC: int __os_open __P((const char *, int, int, int *)); 1N/A * Close a file descriptor. 1N/A * PUBLIC: int __os_close __P((int));