mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-25 13:51:04 +08:00
* 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>
|
||||
|
||||
* 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));
|
||||
err = __io_map ((mach_port_t) fd, &memobj_rd, &memobj_wr);
|
||||
if (err)
|
||||
return (__ptr_t) __hurd_fail (err);
|
||||
return __hurd_fail (err), MAP_FAILED;
|
||||
__mach_port_deallocate (__mach_task_self (), memobj_wr);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user