resetting manifest requested domain to floor
[platform/upstream/db4.git] / os_brew / os_unlink.c
1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 1997-2009 Oracle.  All rights reserved.
5  *
6  * $Id$
7  */
8
9 #include "db_config.h"
10
11 #include "db_int.h"
12
13 /*
14  * __os_unlink --
15  *      Remove a file.
16  */
17 int
18 __os_unlink(env, path, overwrite_test)
19         ENV *env;
20         const char *path;
21         int overwrite_test;
22 {
23         IFileMgr *ifmp;
24         int ret;
25
26         FILE_MANAGER_CREATE(env, ifmp, ret);
27         if (ret != 0)
28                 return (ret);
29
30         LAST_PANIC_CHECK_BEFORE_IO(env);
31
32         if (IFILEMGR_Remove(ifmp, path) == EFAILED)
33                 FILE_MANAGER_ERR(env, ifmp, path, "IFILEMGR_Remove", ret);
34
35         IFILEMGR_Release(ifmp);
36
37         COMPQUIET(overwrite_test, 0);
38
39         return (ret);
40 }