mirror of
https://github.com/isar/libmdbx.git
synced 2025-08-23 09:04:26 +08:00
mdbx-tests: add osal_removefile().
Change-Id: Ifdacd1f799e3ed12f6b83bcdef0effbc0c41011c
This commit is contained in:
committed by
Leo Yuriev
parent
2770e193b6
commit
12174187e8
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
* Copyright 2017-2018 Leonid Yuriev <leo@yuriev.ru>
|
||||
* and other libmdbx authors: please see AUTHORS file.
|
||||
* All rights reserved.
|
||||
@@ -301,3 +301,7 @@ std::string osal_tempdir(void) {
|
||||
return "/dev/shm/";
|
||||
return "";
|
||||
}
|
||||
|
||||
int osal_removefile(const std::string &pathname) {
|
||||
return unlink(pathname.c_str()) ? errno : MDBX_SUCCESS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user