Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc
Commits
62a4f9f3
Commit
62a4f9f3
authored
Jan 19, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the now broken Maemo 5 poll hack
parent
80d860b6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
96 deletions
+0
-96
bin/vlc.c
bin/vlc.c
+0
-14
include/vlc_fixups.h
include/vlc_fixups.h
+0
-3
src/Makefile.am
src/Makefile.am
+0
-3
src/network/poll.c
src/network/poll.c
+0
-76
No files found.
bin/vlc.c
View file @
62a4f9f3
...
...
@@ -55,13 +55,6 @@ extern void LocaleFree (const char *);
extern
char
*
FromLocale
(
const
char
*
);
extern
void
vlc_enable_override
(
void
);
#ifdef HAVE_MAEMO
static
void
dummy_handler
(
int
signum
)
{
(
void
)
signum
;
}
#endif
static
bool
signal_ignored
(
int
signum
)
{
struct
sigaction
sa
;
...
...
@@ -177,13 +170,6 @@ int main( int i_argc, const char *ppsz_argv[] )
* block SIGCHLD in all threads, and dequeue it below. */
sigaddset
(
&
set
,
SIGCHLD
);
#ifdef HAVE_MAEMO
sigaddset
(
&
set
,
SIGRTMIN
);
{
struct
sigaction
act
=
{
.
sa_handler
=
dummy_handler
,
};
sigaction
(
SIGRTMIN
,
&
act
,
NULL
);
}
#endif
/* Block all these signals */
pthread_sigmask
(
SIG_SETMASK
,
&
set
,
NULL
);
...
...
include/vlc_fixups.h
View file @
62a4f9f3
...
...
@@ -276,9 +276,6 @@ struct pollfd
#endif
#ifndef HAVE_POLL
# define poll(a, b, c) vlc_poll(a, b, c)
#elif defined (HAVE_MAEMO)
# include <poll.h>
# define poll(a, b, c) vlc_poll(a, b, c)
#endif
#ifndef HAVE_IF_NAMEINDEX
...
...
src/Makefile.am
View file @
62a4f9f3
...
...
@@ -243,7 +243,6 @@ SOURCES_libvlc_darwin = \
misc/atomic.c
\
posix/filesystem.c
\
posix/plugin.c
\
network/poll.c
\
posix/thread.c
\
posix/darwin_specific.c
\
posix/rand.c
\
...
...
@@ -254,7 +253,6 @@ SOURCES_libvlc_linux = \
misc/atomic.c
\
posix/filesystem.c
\
posix/plugin.c
\
network/poll.c
\
posix/thread.c
\
posix/linux_specific.c
\
posix/rand.c
\
...
...
@@ -294,7 +292,6 @@ SOURCES_libvlc_other = \
posix/dirs.c
\
misc/atomic.c
\
posix/filesystem.c
\
network/poll.c
\
posix/thread.c
\
posix/plugin.c
\
posix/specific.c
\
...
...
src/network/poll.c
deleted
100644 → 0
View file @
80d860b6
/*****************************************************************************
* poll.c: I/O event multiplexing
*****************************************************************************
* Copyright © 2007 Rémi Denis-Courmont
* $Id$
*
* Author: Rémi Denis-Courmont
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <vlc_common.h>
#ifdef HAVE_MAEMO
# include <vlc_network.h>
# include <signal.h>
# include <errno.h>
# include <poll.h>
int
vlc_poll
(
struct
pollfd
*
fds
,
unsigned
nfds
,
int
timeout
)
{
struct
timespec
tsbuf
,
*
ts
;
sigset_t
set
;
int
canc
,
ret
;
if
(
timeout
!=
-
1
)
{
div_t
d
=
div
(
timeout
,
1000
);
tsbuf
.
tv_sec
=
d
.
quot
;
tsbuf
.
tv_nsec
=
d
.
rem
*
1000000
;
ts
=
&
tsbuf
;
}
else
ts
=
NULL
;
pthread_sigmask
(
SIG_BLOCK
,
NULL
,
&
set
);
sigdelset
(
&
set
,
SIGRTMIN
);
canc
=
vlc_savecancel
();
ret
=
ppoll
(
fds
,
nfds
,
ts
,
&
set
);
vlc_restorecancel
(
canc
);
vlc_testcancel
();
return
ret
;
}
#elif defined (HAVE_POLL)
# include <vlc_network.h>
struct
pollfd
;
int
vlc_poll
(
struct
pollfd
*
fds
,
unsigned
nfds
,
int
timeout
)
{
(
void
)
fds
;
(
void
)
nfds
;
(
void
)
timeout
;
abort
();
}
#else
# error poll() not implemented!
#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