Update.
[glibc.git] / db2 / os / db_os_unlink.c
blob872beba3cf60d837bf5887d6993f9cc62469df08
1 /*-
2 * See the file LICENSE for redistribution information.
4 * Copyright (c) 1997
5 * Sleepycat Software. All rights reserved.
6 */
8 #include "config.h"
10 #ifndef lint
11 static const char sccsid[] = "@(#)db_os_unlink.c 10.2 (Sleepycat) 6/28/97";
12 #endif /* not lint */
14 #ifndef NO_SYSTEM_INCLUDES
15 #include <sys/types.h>
17 #include <errno.h>
18 #include <unistd.h>
19 #endif
21 #include "db_int.h"
22 #include "os_ext.h"
25 * __db_unlink --
26 * Remove a file.
28 * PUBLIC: int __db_unlink __P((const char *));
30 int
31 __db_unlink(path)
32 const char *path;
34 return (unlink(path) == -1 ? errno : 0);