]> sourceware.org Git - glibc.git/blob - db2/os/db_os_unlink.c
Update.
[glibc.git] / db2 / os / db_os_unlink.c
1 /*-
2 * See the file LICENSE for redistribution information.
3 *
4 * Copyright (c) 1997
5 * Sleepycat Software. All rights reserved.
6 */
7
8 #include "config.h"
9
10 #ifndef lint
11 static const char sccsid[] = "@(#)db_os_unlink.c 10.2 (Sleepycat) 6/28/97";
12 #endif /* not lint */
13
14 #ifndef NO_SYSTEM_INCLUDES
15 #include <sys/types.h>
16
17 #include <errno.h>
18 #include <unistd.h>
19 #endif
20
21 #include "db_int.h"
22 #include "os_ext.h"
23
24 /*
25 * __db_unlink --
26 * Remove a file.
27 *
28 * PUBLIC: int __db_unlink __P((const char *));
29 */
30 int
31 __db_unlink(path)
32 const char *path;
33 {
34 return (unlink(path) == -1 ? errno : 0);
35 }
This page took 0.037705 seconds and 5 git commands to generate.