Changeset 16 for Whitix/trunk/memory/mmap.c
- Timestamp:
- 03/12/08 21:07:23 (8 months ago)
- Files:
-
- 1 modified
-
Whitix/trunk/memory/mmap.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/trunk/memory/mmap.c
r11 r16 599 599 }else if (!vNode) 600 600 { 601 int err=NameToVNode(&vNode,DEVICES_PATH "Zero",0);602 if ( err)601 /* Map to the zero file, so we can use the existing infrastructure. */ 602 if (NameToVNode(&vNode,DEVICES_PATH "Zero",0)) 603 603 return 0; 604 604 } … … 762 762 if (!(vNode=MMapGetVNode(fd))) 763 763 return 0; 764 764 765 765 return MMapDo(current,vNode,PAGE_ALIGN(address),PAGE_ALIGN_UP(length),protection,offset,flags); 766 766 }
