mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Revert "Add INLINE_SYSCALL_RETURN/INLINE_SYSCALL_ERROR_RETURN"
This reverts commit 0c5b8b5941
.
This commit is contained in:
@ -46,9 +46,15 @@ __mmap64 (void *addr, size_t len, int prot, int flags, int fd, off64_t offset)
|
||||
}
|
||||
#endif
|
||||
if (offset & ((1 << page_shift) - 1))
|
||||
return INLINE_SYSCALL_ERROR_RETURN (-EINVAL, void *, MAP_FAILED);
|
||||
return INLINE_SYSCALL_RETURN (mmap2, 6, void *, addr,
|
||||
len, prot, flags, fd,
|
||||
(off_t) (offset >> page_shift));
|
||||
{
|
||||
__set_errno (EINVAL);
|
||||
return MAP_FAILED;
|
||||
}
|
||||
void *result;
|
||||
result = (void *)
|
||||
INLINE_SYSCALL (mmap2, 6, addr,
|
||||
len, prot, flags, fd,
|
||||
(off_t) (offset >> page_shift));
|
||||
return result;
|
||||
}
|
||||
weak_alias (__mmap64, mmap64)
|
||||
|
Reference in New Issue
Block a user