mmap() fails with ENODEV on NTFS under Linux.

oldstable
Stas Sergeev 2000-06-07 03:16:01 +00:00 committed by Alexandre Julliard
parent 4c5af80c6a
commit feb71a6950
1 changed files with 2 additions and 2 deletions

View File

@ -1610,10 +1610,10 @@ LPVOID FILE_dommap( int unix_handle, LPVOID start,
/* mmap() failed; if this is because the file offset is not */
/* page-aligned (EINVAL), or because the underlying filesystem */
/* does not support mmap() (ENOEXEC), we do it by hand. */
/* does not support mmap() (ENOEXEC,ENODEV), we do it by hand. */
if (unix_handle == -1) return ret;
if ((errno != ENOEXEC) && (errno != EINVAL)) return ret;
if ((errno != ENOEXEC) && (errno != EINVAL) && (errno != ENODEV)) return ret;
if (prot & PROT_WRITE)
{
/* We cannot fake shared write mappings */