* sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
widening __hurd_fail value.
This commit is contained in:
parent
f899db6094
commit
b82006e0b5
|
@ -1,3 +1,8 @@
|
||||||
|
2002-04-08 Roland McGrath <roland@frob.com>
|
||||||
|
|
||||||
|
* sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
|
||||||
|
widening __hurd_fail value.
|
||||||
|
|
||||||
2002-04-07 Roland McGrath <roland@frob.com>
|
2002-04-07 Roland McGrath <roland@frob.com>
|
||||||
|
|
||||||
* sysdeps/mach/hurd/alpha/trampoline.c: Don't include
|
* sysdeps/mach/hurd/alpha/trampoline.c: Don't include
|
||||||
|
|
|
@ -448,7 +448,7 @@ __mmap (__ptr_t addr, size_t len, int prot, int flags, int fd, off_t offset)
|
||||||
assert (!(flags & MAP_SHARED));
|
assert (!(flags & MAP_SHARED));
|
||||||
err = __io_map ((mach_port_t) fd, &memobj_rd, &memobj_wr);
|
err = __io_map ((mach_port_t) fd, &memobj_rd, &memobj_wr);
|
||||||
if (err)
|
if (err)
|
||||||
return (__ptr_t) __hurd_fail (err);
|
return __hurd_fail (err), MAP_FAILED;
|
||||||
__mach_port_deallocate (__mach_task_self (), memobj_wr);
|
__mach_port_deallocate (__mach_task_self (), memobj_wr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue