Subversion Repositories HelenOS-historic

Rev

Rev 1653 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1653 Rev 1719
Line 34... Line 34...
34
 
34
 
35
#include <sys/mman.h>
35
#include <sys/mman.h>
36
#include <as.h>
36
#include <as.h>
37
#include <unistd.h>
37
#include <unistd.h>
38
 
38
 
39
void *mmap(void  *start, size_t length, int prot, int flags, int fd,
39
void *mmap(void  *start, size_t length, int prot, int flags, int fd, off_t offset)
40
       off_t offset)
-
 
41
{
40
{
42
    int rc;
-
 
43
 
-
 
44
    if (!start)
41
    if (!start)
45
        start = as_get_mappable_page(length);
42
        start = as_get_mappable_page(length);
46
   
43
   
47
//  if (! ((flags & MAP_SHARED) ^ (flags & MAP_PRIVATE)))
44
//  if (! ((flags & MAP_SHARED) ^ (flags & MAP_PRIVATE)))
48
//      return MAP_FAILED;
45
//      return MAP_FAILED;
Line 58... Line 55...
58
}
55
}
59
 
56
 
60
 
57
 
61
 /** @}
58
/** @}
62
 */
59
 */
63
 
-
 
64
 
-