Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
6ed6a045
Commit
6ed6a045
authored
6 years ago
by
Daniel Black
Committed by
Sergei Golubchik
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-8743: use mkostemp when available with O_CLOEXEC
Closes #639
parent
d9747268
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
1 deletion
+6
-1
cmake/os/WindowsCache.cmake
cmake/os/WindowsCache.cmake
+1
-0
config.h.cmake
config.h.cmake
+1
-0
configure.cmake
configure.cmake
+1
-0
mysys/mf_tempfile.c
mysys/mf_tempfile.c
+3
-1
No files found.
cmake/os/WindowsCache.cmake
View file @
6ed6a045
...
@@ -100,6 +100,7 @@ SET(HAVE_MEMCPY 1 CACHE INTERNAL "")
...
@@ -100,6 +100,7 @@ SET(HAVE_MEMCPY 1 CACHE INTERNAL "")
SET
(
HAVE_MEMMOVE 1 CACHE INTERNAL
""
)
SET
(
HAVE_MEMMOVE 1 CACHE INTERNAL
""
)
SET
(
HAVE_MEMORY_H 1 CACHE INTERNAL
""
)
SET
(
HAVE_MEMORY_H 1 CACHE INTERNAL
""
)
SET
(
HAVE_MKSTEMP CACHE INTERNAL
""
)
SET
(
HAVE_MKSTEMP CACHE INTERNAL
""
)
SET
(
HAVE_MKOSTEMP CACHE INTERNAL
""
)
SET
(
HAVE_MLOCK CACHE INTERNAL
""
)
SET
(
HAVE_MLOCK CACHE INTERNAL
""
)
SET
(
HAVE_MLOCKALL CACHE INTERNAL
""
)
SET
(
HAVE_MLOCKALL CACHE INTERNAL
""
)
SET
(
HAVE_MMAP CACHE INTERNAL
""
)
SET
(
HAVE_MMAP CACHE INTERNAL
""
)
...
...
This diff is collapsed.
Click to expand it.
config.h.cmake
View file @
6ed6a045
...
@@ -181,6 +181,7 @@
...
@@ -181,6 +181,7 @@
#cmakedefine HAVE_MEMCPY 1
#cmakedefine HAVE_MEMCPY 1
#cmakedefine HAVE_MEMMOVE 1
#cmakedefine HAVE_MEMMOVE 1
#cmakedefine HAVE_MKSTEMP 1
#cmakedefine HAVE_MKSTEMP 1
#cmakedefine HAVE_MKOSTEMP 1
#cmakedefine HAVE_MLOCKALL 1
#cmakedefine HAVE_MLOCKALL 1
#cmakedefine HAVE_MMAP 1
#cmakedefine HAVE_MMAP 1
#cmakedefine HAVE_MMAP64 1
#cmakedefine HAVE_MMAP64 1
...
...
This diff is collapsed.
Click to expand it.
configure.cmake
View file @
6ed6a045
...
@@ -370,6 +370,7 @@ CHECK_FUNCTION_EXISTS (mallinfo HAVE_MALLINFO)
...
@@ -370,6 +370,7 @@ CHECK_FUNCTION_EXISTS (mallinfo HAVE_MALLINFO)
CHECK_FUNCTION_EXISTS
(
memcpy HAVE_MEMCPY
)
CHECK_FUNCTION_EXISTS
(
memcpy HAVE_MEMCPY
)
CHECK_FUNCTION_EXISTS
(
memmove HAVE_MEMMOVE
)
CHECK_FUNCTION_EXISTS
(
memmove HAVE_MEMMOVE
)
CHECK_FUNCTION_EXISTS
(
mkstemp HAVE_MKSTEMP
)
CHECK_FUNCTION_EXISTS
(
mkstemp HAVE_MKSTEMP
)
CHECK_FUNCTION_EXISTS
(
mkostemp HAVE_MKOSTEMP
)
CHECK_FUNCTION_EXISTS
(
mlock HAVE_MLOCK
)
CHECK_FUNCTION_EXISTS
(
mlock HAVE_MLOCK
)
CHECK_FUNCTION_EXISTS
(
mlockall HAVE_MLOCKALL
)
CHECK_FUNCTION_EXISTS
(
mlockall HAVE_MLOCKALL
)
CHECK_FUNCTION_EXISTS
(
mmap HAVE_MMAP
)
CHECK_FUNCTION_EXISTS
(
mmap HAVE_MMAP
)
...
...
This diff is collapsed.
Click to expand it.
mysys/mf_tempfile.c
View file @
6ed6a045
...
@@ -22,7 +22,9 @@
...
@@ -22,7 +22,9 @@
#include <paths.h>
#include <paths.h>
#endif
#endif
#ifdef HAVE_MKOSTEMP
#define mkstemp(A) mkostemp(A, O_CLOEXEC)
#endif
/*
/*
@brief
@brief
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment