1
0
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:
H.J. Lu
2015-08-21 09:57:15 -07:00
parent 8c7c251746
commit e5dee2c896
64 changed files with 292 additions and 364 deletions

View File

@ -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)