]> git.ipfire.org Git - thirdparty/glibc.git/commit
Linux: Define MMAP_CALL_INTERNAL
authorFlorian Weimer <fweimer@redhat.com>
Wed, 4 May 2022 13:37:21 +0000 (15:37 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 17 May 2022 06:08:52 +0000 (08:08 +0200)
commitd66cca3fbb12539aa72a4c24c2f5b2bb0197b306
tree1abbf4c31fdb3bd587120ab824e20ae6ce034ede
parenta7b122a7b45d0cffebbe94e7aedf8634f74d84b9
Linux: Define MMAP_CALL_INTERNAL

Unlike MMAP_CALL, this avoids a TCB dependency for an errno update
on failure.

<mmap_internal.h> cannot be included as is on several architectures
due to the definition of page_unit, so introduce a separate header
file for the definition of MMAP_CALL and MMAP_CALL_INTERNAL,
<mmap_call.h>.

Reviewed-by: Stefan Liebler <stli@linux.ibm.com>
(cherry picked from commit c1b68685d438373efe64e5f076f4215723004dfb)
sysdeps/unix/sysv/linux/mmap_call.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/mmap_internal.h
sysdeps/unix/sysv/linux/s390/mmap_call.h [moved from sysdeps/unix/sysv/linux/s390/mmap_internal.h with 78% similarity]