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
f165077a
Commit
f165077a
authored
Mar 02, 2018
by
Daniel Black
Committed by
Vladislav Vaintroub
May 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-8743: use mkostemp when available with O_CLOEXEC
Closes #639
parent
d5db2f10
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 @
f165077a
...
...
@@ -100,6 +100,7 @@ SET(HAVE_MEMCPY 1 CACHE INTERNAL "")
SET
(
HAVE_MEMMOVE 1 CACHE INTERNAL
""
)
SET
(
HAVE_MEMORY_H 1 CACHE INTERNAL
""
)
SET
(
HAVE_MKSTEMP CACHE INTERNAL
""
)
SET
(
HAVE_MKOSTEMP CACHE INTERNAL
""
)
SET
(
HAVE_MLOCK CACHE INTERNAL
""
)
SET
(
HAVE_MLOCKALL CACHE INTERNAL
""
)
SET
(
HAVE_MMAP CACHE INTERNAL
""
)
...
...
config.h.cmake
View file @
f165077a
...
...
@@ -181,6 +181,7 @@
#cmakedefine HAVE_MEMCPY 1
#cmakedefine HAVE_MEMMOVE 1
#cmakedefine HAVE_MKSTEMP 1
#cmakedefine HAVE_MKOSTEMP 1
#cmakedefine HAVE_MLOCKALL 1
#cmakedefine HAVE_MMAP 1
#cmakedefine HAVE_MMAP64 1
...
...
configure.cmake
View file @
f165077a
...
...
@@ -370,6 +370,7 @@ CHECK_FUNCTION_EXISTS (mallinfo HAVE_MALLINFO)
CHECK_FUNCTION_EXISTS
(
memcpy HAVE_MEMCPY
)
CHECK_FUNCTION_EXISTS
(
memmove HAVE_MEMMOVE
)
CHECK_FUNCTION_EXISTS
(
mkstemp HAVE_MKSTEMP
)
CHECK_FUNCTION_EXISTS
(
mkostemp HAVE_MKOSTEMP
)
CHECK_FUNCTION_EXISTS
(
mlock HAVE_MLOCK
)
CHECK_FUNCTION_EXISTS
(
mlockall HAVE_MLOCKALL
)
CHECK_FUNCTION_EXISTS
(
mmap HAVE_MMAP
)
...
...
mysys/mf_tempfile.c
View file @
f165077a
...
...
@@ -22,7 +22,9 @@
#include <paths.h>
#endif
#ifdef HAVE_MKOSTEMP
#define mkstemp(A) mkostemp(A, O_CLOEXEC)
#endif
/*
@brief
...
...
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