mirror of
https://github.com/isar/libmdbx.git
synced 2025-04-24 18:02:25 +08:00
mdbx: portability - rename lck-posix.c to lck-linux.c
Change-Id: I0ecee2b1a5d8e664eb795e5f5df2fa2d3cb73c83
This commit is contained in:
parent
6eebac1510
commit
4adb1ab2d8
@ -1,26 +1,19 @@
|
|||||||
CMakeLists.txt
|
|
||||||
README-RU.md
|
|
||||||
pcrf_test/CMakeLists.txt
|
|
||||||
src/tools/CMakeLists.txt
|
|
||||||
test/CMakeLists.txt
|
|
||||||
test/append.cc
|
|
||||||
test/copy.cc
|
|
||||||
test/ttl.cc
|
|
||||||
tutorial/CMakeLists.txt
|
|
||||||
tutorial/sample-mdbx.c
|
|
||||||
AUTHORS
|
AUTHORS
|
||||||
|
CMakeLists.txt
|
||||||
LICENSE
|
LICENSE
|
||||||
Makefile
|
Makefile
|
||||||
|
README-RU.md
|
||||||
README.md
|
README.md
|
||||||
TODO.md
|
TODO.md
|
||||||
mdbx.h
|
mdbx.h
|
||||||
src/bits.h
|
src/bits.h
|
||||||
src/defs.h
|
src/defs.h
|
||||||
src/lck-posix.c
|
src/lck-linux.c
|
||||||
src/lck-windows.c
|
src/lck-windows.c
|
||||||
src/mdbx.c
|
src/mdbx.c
|
||||||
src/osal.c
|
src/osal.c
|
||||||
src/osal.h
|
src/osal.h
|
||||||
|
src/tools/CMakeLists.txt
|
||||||
src/tools/mdbx_chk.c
|
src/tools/mdbx_chk.c
|
||||||
src/tools/mdbx_copy.1
|
src/tools/mdbx_copy.1
|
||||||
src/tools/mdbx_copy.c
|
src/tools/mdbx_copy.c
|
||||||
@ -33,11 +26,16 @@ src/tools/mdbx_stat.c
|
|||||||
src/tools/wingetopt.c
|
src/tools/wingetopt.c
|
||||||
src/tools/wingetopt.h
|
src/tools/wingetopt.h
|
||||||
src/version.c
|
src/version.c
|
||||||
|
test/CMakeLists.txt
|
||||||
test/actor.cc
|
test/actor.cc
|
||||||
|
test/append.cc
|
||||||
test/base.h
|
test/base.h
|
||||||
|
test/cases.cc
|
||||||
test/chrono.cc
|
test/chrono.cc
|
||||||
test/chrono.h
|
test/chrono.h
|
||||||
|
test/config.cc
|
||||||
test/config.h
|
test/config.h
|
||||||
|
test/copy.cc
|
||||||
test/dead.cc
|
test/dead.cc
|
||||||
test/hill.cc
|
test/hill.cc
|
||||||
test/jitter.cc
|
test/jitter.cc
|
||||||
@ -46,16 +44,18 @@ test/keygen.h
|
|||||||
test/log.cc
|
test/log.cc
|
||||||
test/log.h
|
test/log.h
|
||||||
test/main.cc
|
test/main.cc
|
||||||
test/config.cc
|
|
||||||
test/cases.cc
|
|
||||||
test/osal-unix.cc
|
test/osal-unix.cc
|
||||||
test/osal-windows.cc
|
test/osal-windows.cc
|
||||||
test/osal.h
|
test/osal.h
|
||||||
|
test/pcrf/CMakeLists.txt
|
||||||
test/test.cc
|
test/test.cc
|
||||||
test/test.h
|
test/test.h
|
||||||
test/try.cc
|
test/try.cc
|
||||||
|
test/ttl.cc
|
||||||
test/utils.cc
|
test/utils.cc
|
||||||
test/utils.h
|
test/utils.h
|
||||||
|
tutorial/CMakeLists.txt
|
||||||
tutorial/README.md
|
tutorial/README.md
|
||||||
tutorial/sample-bdb.txt
|
tutorial/sample-bdb.txt
|
||||||
tutorial/sample-mdb.txt
|
tutorial/sample-mdb.txt
|
||||||
|
tutorial/sample-mdbx.c
|
||||||
|
@ -2,5 +2,3 @@
|
|||||||
src
|
src
|
||||||
src/tools
|
src/tools
|
||||||
test
|
test
|
||||||
pcrf_test
|
|
||||||
tutorial
|
|
||||||
|
@ -3,8 +3,8 @@ set(TARGET mdbx)
|
|||||||
project(${TARGET})
|
project(${TARGET})
|
||||||
|
|
||||||
set(MDBX_VERSION_MAJOR 0)
|
set(MDBX_VERSION_MAJOR 0)
|
||||||
set(MDBX_VERSION_MINOR 2)
|
set(MDBX_VERSION_MINOR 3)
|
||||||
set(MDBX_VERSION_RELEASE 0)
|
set(MDBX_VERSION_RELEASE 1)
|
||||||
set(MDBX_VERSION_REVISION 0)
|
set(MDBX_VERSION_REVISION 0)
|
||||||
|
|
||||||
set(MDBX_VERSION_STRING ${MDBX_VERSION_MAJOR}.${MDBX_VERSION_MINOR}.${MDBX_VERSION_RELEASE})
|
set(MDBX_VERSION_STRING ${MDBX_VERSION_MAJOR}.${MDBX_VERSION_MINOR}.${MDBX_VERSION_RELEASE})
|
||||||
@ -83,7 +83,7 @@ set(${TARGET}_SRC
|
|||||||
mdbx.h
|
mdbx.h
|
||||||
src/bits.h
|
src/bits.h
|
||||||
src/defs.h
|
src/defs.h
|
||||||
src/lck-posix.c
|
src/lck-linux.c
|
||||||
src/mdbx.c
|
src/mdbx.c
|
||||||
src/osal.c
|
src/osal.c
|
||||||
src/osal.h
|
src/osal.h
|
||||||
|
@ -12,6 +12,12 @@
|
|||||||
* <http://www.OpenLDAP.org/license.html>.
|
* <http://www.OpenLDAP.org/license.html>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !(defined(__linux__) || defined(__gnu_linux__))
|
||||||
|
#error "This implementation of locking only supports Linux,\
|
||||||
|
where is no interaction between the types of lock placed\
|
||||||
|
by flock() and fcntl()."
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "./bits.h"
|
#include "./bits.h"
|
||||||
|
|
||||||
/* Some platforms define the EOWNERDEAD error code
|
/* Some platforms define the EOWNERDEAD error code
|
Loading…
x
Reference in New Issue
Block a user