Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
8a727887
Commit
8a727887
authored
Feb 21, 2008
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some OSes don't have posix_fadvise
parent
22862929
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
configure.ac
configure.ac
+1
-1
modules/access/mmap.c
modules/access/mmap.c
+4
-0
No files found.
configure.ac
View file @
8a727887
...
...
@@ -469,7 +469,7 @@ dnl Check for system libs needed
need_libc=false
dnl Check for usual libc functions
AC_CHECK_FUNCS([gettimeofday strtod strtol strtof strtoll strtoull strsep isatty vasprintf asprintf swab sigrelse getpwuid memalign posix_memalign if_nametoindex atoll getenv putenv setenv gmtime_r ctime_r localtime_r lrintf daemon scandir fork bsearch lstat strlcpy strdup strndup strnlen atof lldiv])
AC_CHECK_FUNCS([gettimeofday strtod strtol strtof strtoll strtoull strsep isatty vasprintf asprintf swab sigrelse getpwuid memalign posix_memalign if_nametoindex atoll getenv putenv setenv gmtime_r ctime_r localtime_r lrintf daemon scandir fork bsearch lstat strlcpy strdup strndup strnlen atof lldiv
posix_fadvise posix_madvise
])
AC_CHECK_FUNCS(strcasecmp,,[AC_CHECK_FUNCS(stricmp)])
AC_CHECK_FUNCS(strncasecmp,,[AC_CHECK_FUNCS(strnicmp)])
AC_CHECK_FUNCS(strcasestr,,[AC_CHECK_FUNCS(stristr)])
...
...
modules/access/mmap.c
View file @
8a727887
...
...
@@ -131,7 +131,9 @@ static int Open (vlc_object_t *p_this)
p_sys
->
fd
=
fd
;
p_access
->
info
.
i_size
=
st
.
st_size
;
#ifdef HAVE_POSIX_FADVISE
posix_fadvise
(
fd
,
0
,
0
,
POSIX_FADV_SEQUENTIAL
);
#endif
return
VLC_SUCCESS
;
...
...
@@ -212,7 +214,9 @@ static block_t *Block (access_t *p_access)
msleep
(
INPUT_ERROR_SLEEP
);
return
NULL
;
}
#ifdef HAVE_POSIX_MADVISE
posix_madvise
(
addr
,
length
,
POSIX_MADV_SEQUENTIAL
);
#endif
block_t
*
block
=
block_mmap_Alloc
(
addr
,
length
);
if
(
block
==
NULL
)
...
...
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