Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
ce3960e8
Commit
ce3960e8
authored
Sep 05, 2011
by
Rafaël Carré
Committed by
Rafaël Carré
Sep 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
android: Implement pipe2
parent
d3c189eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
src/posix/filesystem.c
src/posix/filesystem.c
+14
-0
No files found.
src/posix/filesystem.c
View file @
ce3960e8
...
@@ -374,6 +374,20 @@ int vlc_dup (int oldfd)
...
@@ -374,6 +374,20 @@ int vlc_dup (int oldfd)
return
newfd
;
return
newfd
;
}
}
#ifdef __ANDROID__
/* && we support android < 2.3 */
/* pipe2() is declared and available since android-9 NDK,
* although it is available in libc.a since android-3
* We redefine the function here in order to be able to run
* on versions of Android older than 2.3
*/
#include <sys/syscall.h>
//#include <sys/linux-syscalls.h> // fucking brokeness
int
pipe2
(
int
fds
[
2
],
int
flags
)
{
return
syscall
(
/*__NR_pipe2 */
359
,
fds
,
flags
);
}
#endif
/* __ANDROID__ */
/**
/**
* Creates a pipe (see "man pipe" for further reference).
* Creates a pipe (see "man pipe" for further reference).
*/
*/
...
...
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