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
5a495cc1
Commit
5a495cc1
authored
Aug 10, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
system/fd_util: remove unused function close_socket()
parent
9ff47177
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
16 deletions
+4
-16
fd_util.c
src/system/fd_util.c
+4
-10
fd_util.h
src/system/fd_util.h
+0
-6
No files found.
src/system/fd_util.c
View file @
5a495cc1
...
...
@@ -78,6 +78,8 @@ fd_set_cloexec(int fd, bool enable)
#endif
}
#ifndef WIN32
/**
* Enables non-blocking mode for the specified file descriptor. On
* WIN32, this function only works for sockets.
...
...
@@ -101,6 +103,8 @@ fd_set_nonblock(int fd)
#endif
}
#endif
int
pipe_cloexec_nonblock
(
int
fd
[
2
])
{
...
...
@@ -127,13 +131,3 @@ pipe_cloexec_nonblock(int fd[2])
return
ret
;
#endif
}
int
close_socket
(
int
fd
)
{
#ifdef WIN32
return
closesocket
(
fd
);
#else
return
close
(
fd
);
#endif
}
src/system/fd_util.h
View file @
5a495cc1
...
...
@@ -64,12 +64,6 @@ fd_set_cloexec(int fd, bool enable);
int
pipe_cloexec_nonblock
(
int
fd
[
2
]);
/**
* Portable wrapper for close(); use closesocket() on WIN32/WinSock.
*/
int
close_socket
(
int
fd
);
#ifdef __cplusplus
}
/* extern "C" */
#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