1N/A/*-
1N/A * See the file LICENSE for redistribution information.
1N/A *
1N/A * Copyright (c) 1997, 1998
1N/A * Sleepycat Software. All rights reserved.
1N/A */
1N/A
1N/A#include "config.h"
1N/A
1N/A#ifndef lint
1N/Astatic const char sccsid[] = "@(#)os_unlink.c 10.7 (Sleepycat) 10/12/98";
1N/A#endif /* not lint */
1N/A
1N/A#ifndef NO_SYSTEM_INCLUDES
1N/A#include <sys/types.h>
1N/A
1N/A#include <errno.h>
1N/A#include <unistd.h>
1N/A#endif
1N/A
1N/A#include "db_int.h"
1N/A#include "os_jump.h"
1N/A
1N/A/*
1N/A * __os_unlink --
1N/A * Remove a file.
1N/A *
1N/A * PUBLIC: int __os_unlink __P((const char *));
1N/A */
1N/Aint
1N/A__os_unlink(path)
1N/A const char *path;
1N/A{
1N/A int ret;
1N/A
1N/A ret = __db_jump.j_unlink != NULL ?
1N/A __db_jump.j_unlink(path) : unlink(path);
1N/A return (ret == -1 ? errno : 0);
1N/A}