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
0800d942
Commit
0800d942
authored
Aug 10, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
system/fd_util: remove unused function socket_cloexec_nonblock()
parent
4e113a70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
32 deletions
+0
-32
fd_util.c
src/system/fd_util.c
+0
-20
fd_util.h
src/system/fd_util.h
+0
-12
No files found.
src/system/fd_util.c
View file @
0800d942
...
...
@@ -149,26 +149,6 @@ pipe_cloexec_nonblock(int fd[2])
}
int
socket_cloexec_nonblock
(
int
domain
,
int
type
,
int
protocol
)
{
int
fd
;
#if defined(SOCK_CLOEXEC) && defined(SOCK_NONBLOCK)
fd
=
socket
(
domain
,
type
|
SOCK_CLOEXEC
|
SOCK_NONBLOCK
,
protocol
);
if
(
fd
>=
0
||
errno
!=
EINVAL
)
return
fd
;
#endif
fd
=
socket
(
domain
,
type
,
protocol
);
if
(
fd
>=
0
)
{
fd_set_cloexec
(
fd
,
true
);
fd_set_nonblock
(
fd
);
}
return
fd
;
}
int
accept_cloexec_nonblock
(
int
fd
,
struct
sockaddr
*
address
,
size_t
*
address_length_r
)
{
...
...
src/system/fd_util.h
View file @
0800d942
...
...
@@ -71,18 +71,6 @@ open_cloexec(const char *path_fs, int flags, int mode);
int
pipe_cloexec_nonblock
(
int
fd
[
2
]);
#ifdef ENABLE_LIBMPDCLIENT
/* Avoid symbol conflict with statically linked libmpdclient */
#define socket_cloexec_nonblock socket_cloexec_nonblock_noconflict
#endif
/**
* Wrapper for socket(), which sets the CLOEXEC and the NONBLOCK flag
* (atomically if supported by the OS).
*/
int
socket_cloexec_nonblock
(
int
domain
,
int
type
,
int
protocol
);
/**
* Wrapper for accept(), which sets the CLOEXEC and the NONBLOCK flags
* (atomically if supported by the OS).
...
...
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