Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
d4ce9c0d
Commit
d4ce9c0d
authored
Jul 13, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
system/FileDescriptor: no-op implementation of *CloseOnExec() on Windows
Fixes the NFS client build, closes #305.
parent
680fdb03
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
SocketDescriptor.hxx
src/net/SocketDescriptor.hxx
+3
-2
FileDescriptor.hxx
src/system/FileDescriptor.hxx
+4
-1
UniqueFileDescriptor.hxx
src/system/UniqueFileDescriptor.hxx
+3
-2
No files found.
src/net/SocketDescriptor.hxx
View file @
d4ce9c0d
...
...
@@ -90,11 +90,12 @@ public:
return
SocketDescriptor
(
FileDescriptor
::
Undefined
());
}
using
FileDescriptor
::
EnableCloseOnExec
;
using
FileDescriptor
::
DisableCloseOnExec
;
#ifndef _WIN32
using
FileDescriptor
::
SetNonBlocking
;
using
FileDescriptor
::
SetBlocking
;
using
FileDescriptor
::
EnableCloseOnExec
;
using
FileDescriptor
::
DisableCloseOnExec
;
using
FileDescriptor
::
Duplicate
;
using
FileDescriptor
::
Close
;
#else
...
...
src/system/FileDescriptor.hxx
View file @
d4ce9c0d
...
...
@@ -115,7 +115,10 @@ public:
static
bool
CreatePipe
(
FileDescriptor
&
r
,
FileDescriptor
&
w
)
noexcept
;
#ifndef _WIN32
#ifdef _WIN32
void
EnableCloseOnExec
()
noexcept
{}
void
DisableCloseOnExec
()
noexcept
{}
#else
static
bool
CreatePipeNonBlock
(
FileDescriptor
&
r
,
FileDescriptor
&
w
)
noexcept
;
...
...
src/system/UniqueFileDescriptor.hxx
View file @
d4ce9c0d
...
...
@@ -97,14 +97,15 @@ public:
using
FileDescriptor
::
SetNonBlocking
;
using
FileDescriptor
::
SetBlocking
;
using
FileDescriptor
::
EnableCloseOnExec
;
using
FileDescriptor
::
DisableCloseOnExec
;
using
FileDescriptor
::
Duplicate
;
using
FileDescriptor
::
CheckDuplicate
;
static
bool
CreatePipe
(
FileDescriptor
&
r
,
FileDescriptor
&
w
);
#endif
using
FileDescriptor
::
EnableCloseOnExec
;
using
FileDescriptor
::
DisableCloseOnExec
;
#ifdef USE_EVENTFD
using
FileDescriptor
::
CreateEventFD
;
#endif
...
...
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