Cross Reference: os_unlink.c
xref
: /
osnet-11
/
usr
/
src
/
cmd
/
sendmail
/
db
/
os
/
os_unlink.c
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
1
N/A
/*-
1
N/A
* See the file LICENSE for redistribution information.
1
N/A
*
1
N/A
* Copyright (c) 1997, 1998
1
N/A
* Sleepycat Software. All rights reserved.
1
N/A
*/
1
N/A
1
N/A
#
include
"
config.h
"
1
N/A
1
N/A
#
ifndef
lint
1
N/A
static
const
char
sccsid
[] =
"@(#)
os_unlink.c
10.7 (Sleepycat) 10/12/98"
;
1
N/A
#
endif
/* not lint */
1
N/A
1
N/A
#
ifndef
NO_SYSTEM_INCLUDES
1
N/A
#
include
<
sys
/
types.h
>
1
N/A
1
N/A
#
include
<
errno.h
>
1
N/A
#
include
<
unistd.h
>
1
N/A
#
endif
1
N/A
1
N/A
#
include
"
db_int.h
"
1
N/A
#
include
"
os_jump.h
"
1
N/A
1
N/A
/*
1
N/A
* __os_unlink --
1
N/A
* Remove a file.
1
N/A
*
1
N/A
* PUBLIC: int __os_unlink __P((const char *));
1
N/A
*/
1
N/A
int
1
N/A
__os_unlink
(
path
)
1
N/A
const
char
*
path
;
1
N/A
{
1
N/A
int
ret
;
1
N/A
1
N/A
ret
=
__db_jump
.
j_unlink
!=
NULL
?
1
N/A
__db_jump
.
j_unlink
(
path
) :
unlink
(
path
);
1
N/A
return
(
ret
== -
1
?
errno
: 0);
1
N/A
}