8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / sendmail / db / os / os_unlink.c
blobaa484de8435c761b44862f78808b21eefe05b10c
1 /*-
2 * See the file LICENSE for redistribution information.
4 * Copyright (c) 1997, 1998
5 * Sleepycat Software. All rights reserved.
6 */
8 #include "config.h"
10 #ifndef lint
11 static const char sccsid[] = "@(#)os_unlink.c 10.7 (Sleepycat) 10/12/98";
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_jump.h"
25 * __os_unlink --
26 * Remove a file.
28 * PUBLIC: int __os_unlink __P((const char *));
30 int
31 __os_unlink(path)
32 const char *path;
34 int ret;
36 ret = __db_jump.j_unlink != NULL ?
37 __db_jump.j_unlink(path) : unlink(path);
38 return (ret == -1 ? errno : 0);